aboutsummaryrefslogtreecommitdiff
path: root/files/BUILD.gn
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2017-04-18 11:28:09 -0700
committerFrank Barchard <fbarchard@google.com>2017-04-18 11:28:09 -0700
commitb33a82ffd059f362574ae038458e8dee26ac5a4a (patch)
tree4231a1eec8b9833c69cf6c906f03be758edd4bd3 /files/BUILD.gn
parentcead1e07666bcc5914f8927712c2f89b9b789f9b (diff)
downloadlibyuv-b33a82ffd059f362574ae038458e8dee26ac5a4a.tar.gz
libyuv roll to r1652 for new I422ToRGB565 function
Bug: none Test: I422ToRGB565 unittest Change-Id: I8b4418badf725d3ecb6735effcb782976b27979b
Diffstat (limited to 'files/BUILD.gn')
-rw-r--r--files/BUILD.gn20
1 files changed, 14 insertions, 6 deletions
diff --git a/files/BUILD.gn b/files/BUILD.gn
index 4f56cdc2..a50aab5f 100644
--- a/files/BUILD.gn
+++ b/files/BUILD.gn
@@ -9,6 +9,11 @@
import("libyuv.gni")
import("//testing/test.gni")
+declare_args() {
+ # Set to false to disable building with gflags.
+ libyuv_use_gflags = true
+}
+
config("libyuv_config") {
include_dirs = [ "include" ]
if (is_android && current_cpu == "arm64") {
@@ -28,7 +33,7 @@ group("default") {
if (libyuv_include_tests) {
deps += [
":compare",
- ":convert",
+ ":yuvconvert",
":cpuid",
":libyuv_unittest",
":psnr",
@@ -231,9 +236,14 @@ if (libyuv_include_tests) {
deps = [
":libyuv",
"//testing/gtest",
- "//third_party/gflags",
]
+ defines = []
+ if (libyuv_use_gflags) {
+ defines += [ "LIBYUV_USE_GFLAGS" ]
+ deps += [ "//third_party/gflags" ]
+ }
+
configs += [ ":libyuv_unittest_warnings_config" ]
public_deps = [
@@ -241,8 +251,6 @@ if (libyuv_include_tests) {
]
public_configs = [ ":libyuv_unittest_config" ]
- defines = []
-
if (is_linux) {
cflags = [ "-fexceptions" ]
}
@@ -289,10 +297,10 @@ if (libyuv_include_tests) {
}
}
- executable("convert") {
+ executable("yuvconvert") {
sources = [
# sources
- "util/convert.cc",
+ "util/yuvconvert.cc",
]
deps = [
":libyuv",