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

Side by Side Diff: sandbox/linux/BUILD.gn

Issue 567073002: Make "rt" library Linux-only in GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 declare_args() { 7 declare_args() {
8 compile_suid_client = is_linux 8 compile_suid_client = is_linux
9 9
10 compile_credentials = is_linux 10 compile_credentials = is_linux
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 ] 79 ]
80 80
81 deps = [ 81 deps = [
82 ":sandbox", 82 ":sandbox",
83 ":sandbox_linux_test_utils", 83 ":sandbox_linux_test_utils",
84 "//base", 84 "//base",
85 "//base/test:test_support", 85 "//base/test:test_support",
86 "//testing/gtest", 86 "//testing/gtest",
87 ] 87 ]
88 88
89 libs = [ "rt" ] 89 if (is_linux) {
90 # Don't use this on Android.
91 libs = [ "rt" ]
92 }
90 93
91 if (compile_suid_client) { 94 if (compile_suid_client) {
92 sources += [ 95 sources += [
93 "suid/client/setuid_sandbox_client_unittest.cc", 96 "suid/client/setuid_sandbox_client_unittest.cc",
94 ] 97 ]
95 } 98 }
96 if (use_seccomp_bpf) { 99 if (use_seccomp_bpf) {
97 sources += [ 100 sources += [
98 "bpf_dsl/bpf_dsl_unittest.cc", 101 "bpf_dsl/bpf_dsl_unittest.cc",
99 "bpf_dsl/cons_unittest.cc", 102 "bpf_dsl/cons_unittest.cc",
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 # 'type': 'none', 312 # 'type': 'none',
310 # 'variables': { 313 # 'variables': {
311 # 'test_suite_name': 'sandbox_linux_jni_unittests', 314 # 'test_suite_name': 'sandbox_linux_jni_unittests',
312 # }, 315 # },
313 # 'dependencies': [ 316 # 'dependencies': [
314 # 'sandbox_linux_jni_unittests', 317 # 'sandbox_linux_jni_unittests',
315 # ], 318 # ],
316 # 'includes': [ '../../build/apk_test.gypi' ], 319 # 'includes': [ '../../build/apk_test.gypi' ],
317 # } 320 # }
318 } 321 }
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