blob: 66d351af7e5c60380fd12b9ad6ef34c16099ba71 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//common-mk/pkg_config.gni")
group("all") {
deps = [
":arcvideoencoder_test",
]
}
pkg_config("dep_libs") {
pkg_deps = [
"cutils",
"mediandk",
]
}
# For ARC++ test, we does not install Gtest library into the Android
# container. Instead, we build the binary with static library.
config("arc_gtest") {
gtest_config = getenv("GTEST_CONFIG")
lib_dirs = exec_script("//common-mk/args_generator_wrapper.py",
[
gtest_config,
"--libdir",
],
"list lines")
libs = exec_script("//common-mk/arg_prefix_filter_wrapper.py",
[
"--prefix=-l",
gtest_config,
"--libs",
],
"list lines")
include_dirs = exec_script("//common-mk/args_generator_wrapper.py",
[
gtest_config,
"--includedir",
],
"list lines")
cflags_cc = exec_script("//common-mk/args_generator_wrapper.py",
[
gtest_config,
"--cxxflags",
],
"list lines")
}
executable("arcvideoencoder_test") {
configs += [
":arc_gtest",
":dep_libs",
]
sources = [
"arc_video_encoder_e2e_test.cc",
"common.cc",
"mediacodec_encoder.cc",
]
}