Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: BUILD.gn

Issue 2433343002: Only build libsrtp tests if a build flag is set (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 declare_args() {
8 # Tests may not be appropriate for some build environments, e.g. Windows.
9 # Rather than enumerate valid options, we just let clients ask for them.
10 build_libsrtp_tests = false
11 }
12
7 config("libsrtp_config") { 13 config("libsrtp_config") {
8 defines = [ 14 defines = [
9 # Package identity 15 # Package identity
10 "PACKAGE_STRING=\"libsrtp2 2.0.0-pre\"", 16 "PACKAGE_STRING=\"libsrtp2 2.0.0-pre\"",
11 "PACKAGE_VERSION=\"2.0.0-pre\"", 17 "PACKAGE_VERSION=\"2.0.0-pre\"",
12 18
13 # Config 19 # Config
14 "HAVE_CONFIG_H", 20 "HAVE_CONFIG_H",
15 "OPENSSL", 21 "OPENSSL",
16 22
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 "crypto/replay/rdb.c", 113 "crypto/replay/rdb.c",
108 "crypto/replay/rdbx.c", 114 "crypto/replay/rdbx.c",
109 "srtp/ekt.c", 115 "srtp/ekt.c",
110 "srtp/srtp.c", 116 "srtp/srtp.c",
111 ] 117 ]
112 public_deps = [ 118 public_deps = [
113 "//third_party/boringssl:boringssl", 119 "//third_party/boringssl:boringssl",
114 ] 120 ]
115 } 121 }
116 122
117 if (is_win) { 123 if (build_libsrtp_tests) {
118 # Don't build tests on Windows. Upstream doesn't, so we can't assume the
119 # tests will compile or run.
120
121 group("srtp_tests") {
mattdr-at-chromium 2016/10/20 10:45:10 I decided there wasn't value in providing an empty
122 testonly = true
123 }
124 } else {
125 config("srtp_test_config") { 124 config("srtp_test_config") {
126 include_dirs = [ "test" ] 125 include_dirs = [ "test" ]
127 configs = [ ":libsrtp_warnings" ] 126 configs = [ ":libsrtp_warnings" ]
128 } 127 }
129 128
130 template("srtp_test") { 129 template("srtp_test") {
131 test("${target_name}") { 130 test("${target_name}") {
132 output_name = invoker.target_name 131 output_name = invoker.target_name
133 output_dir = "${root_out_dir}/srtp_tests" 132 output_dir = "${root_out_dir}/srtp_tests"
134 configs -= [ "//build/config/compiler:chromium_code" ] 133 configs -= [ "//build/config/compiler:chromium_code" ]
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 ":rdbx_driver", 219 ":rdbx_driver",
221 ":replay_driver", 220 ":replay_driver",
222 ":roc_driver", 221 ":roc_driver",
223 ":rtpw", 222 ":rtpw",
224 ":srtp_driver", 223 ":srtp_driver",
225 ":test_scripts", 224 ":test_scripts",
226 ] 225 ]
227 testonly = true 226 testonly = true
228 } 227 }
229 } 228 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698