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

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

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 9 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 | « mojo/tools/upload_binaries.py ('k') | sandbox/linux/services/credentials.cc » ('j') | 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 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 declare_args() { 8 declare_args() {
9 compile_suid_client = is_linux 9 compile_suid_client = is_linux
10 10
11 compile_credentials = is_linux 11 compile_credentials = is_linux
12 12
13 compile_seccomp_bpf_demo = 13 compile_seccomp_bpf_demo =
14 is_linux && (cpu_arch == "x86" || cpu_arch == "x64") 14 is_linux && (current_cpu == "x86" || current_cpu == "x64")
15 } 15 }
16 16
17 # We have two principal targets: sandbox and sandbox_linux_unittests 17 # We have two principal targets: sandbox and sandbox_linux_unittests
18 # All other targets are listed as dependencies. 18 # All other targets are listed as dependencies.
19 # There is one notable exception: for historical reasons, chrome_sandbox is 19 # There is one notable exception: for historical reasons, chrome_sandbox is
20 # the setuid sandbox and is its own target. 20 # the setuid sandbox and is its own target.
21 21
22 group("sandbox") { 22 group("sandbox") {
23 deps = [ 23 deps = [
24 ":sandbox_services", 24 ":sandbox_services",
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 sources += [ 56 sources += [
57 "seccomp-bpf/bpf_tester_compatibility_delegate.h", 57 "seccomp-bpf/bpf_tester_compatibility_delegate.h",
58 "seccomp-bpf/bpf_tests.h", 58 "seccomp-bpf/bpf_tests.h",
59 "seccomp-bpf/sandbox_bpf_test_runner.cc", 59 "seccomp-bpf/sandbox_bpf_test_runner.cc",
60 "seccomp-bpf/sandbox_bpf_test_runner.h", 60 "seccomp-bpf/sandbox_bpf_test_runner.h",
61 ] 61 ]
62 deps += [ ":seccomp_bpf" ] 62 deps += [ ":seccomp_bpf" ]
63 } 63 }
64 } 64 }
65 65
66 # The main sandboxing test target. 66 # Sources shared by sandbox_linux_unittests and sandbox_linux_jni_unittests.
67 test("sandbox_linux_unittests") { 67 source_set("sandbox_linux_unittests_sources") {
68 testonly = true
69
68 sources = [ 70 sources = [
69 "services/proc_util_unittest.cc", 71 "services/proc_util_unittest.cc",
70 "services/resource_limits_unittests.cc", 72 "services/resource_limits_unittests.cc",
71 "services/scoped_process_unittest.cc", 73 "services/scoped_process_unittest.cc",
72 "services/syscall_wrappers_unittest.cc", 74 "services/syscall_wrappers_unittest.cc",
73 "services/thread_helpers_unittests.cc", 75 "services/thread_helpers_unittests.cc",
74 "services/yama_unittests.cc", 76 "services/yama_unittests.cc",
75 "syscall_broker/broker_file_permission_unittest.cc", 77 "syscall_broker/broker_file_permission_unittest.cc",
76 "syscall_broker/broker_process_unittest.cc", 78 "syscall_broker/broker_process_unittest.cc",
77 "tests/main.cc", 79 "tests/main.cc",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 if (compile_credentials) { 122 if (compile_credentials) {
121 sources += [ 123 sources += [
122 "integration_tests/namespace_unix_domain_socket_unittest.cc", 124 "integration_tests/namespace_unix_domain_socket_unittest.cc",
123 "services/credentials_unittest.cc", 125 "services/credentials_unittest.cc",
124 "services/namespace_sandbox_unittest.cc", 126 "services/namespace_sandbox_unittest.cc",
125 "services/namespace_utils_unittest.cc", 127 "services/namespace_utils_unittest.cc",
126 ] 128 ]
127 } 129 }
128 } 130 }
129 131
130 # TODO(GYP) Android version of this test. 132 # The main sandboxing test target.
131 # { 133 test("sandbox_linux_unittests") {
132 # # This target is the shared library used by Android APK (i.e. 134 deps = [
133 # # JNI-friendly) tests. 135 ":sandbox_linux_unittests_sources",
134 # "target_name": "sandbox_linux_jni_unittests", 136 ]
135 # "includes": [ 137 }
136 # "sandbox_linux_test_sources.gypi", 138
137 # ], 139 # This target is the shared library used by Android APK (i.e.
138 # "type": "shared_library", 140 # JNI-friendly) tests.
139 # "conditions": [ 141 shared_library("sandbox_linux_jni_unittests") {
140 # [ "OS == "android"", { 142 testonly = true
141 # "dependencies": [ 143 deps = [
142 # "../testing/android/native_test.gyp:native_test_native_code", 144 ":sandbox_linux_unittests_sources",
143 # ], 145 ]
144 # }], 146 if (is_android) {
145 # ], 147 deps += [ "//testing/android:native_test_native_code" ]
146 # }, 148 }
149 }
147 150
148 component("seccomp_bpf") { 151 component("seccomp_bpf") {
149 sources = [ 152 sources = [
150 "bpf_dsl/bpf_dsl.cc", 153 "bpf_dsl/bpf_dsl.cc",
151 "bpf_dsl/bpf_dsl.h", 154 "bpf_dsl/bpf_dsl.h",
152 "bpf_dsl/bpf_dsl_forward.h", 155 "bpf_dsl/bpf_dsl_forward.h",
153 "bpf_dsl/bpf_dsl_impl.h", 156 "bpf_dsl/bpf_dsl_impl.h",
154 "bpf_dsl/codegen.cc", 157 "bpf_dsl/codegen.cc",
155 "bpf_dsl/codegen.h", 158 "bpf_dsl/codegen.h",
156 "bpf_dsl/cons.h", 159 "bpf_dsl/cons.h",
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 # 'type': 'none', 355 # 'type': 'none',
353 # 'variables': { 356 # 'variables': {
354 # 'test_suite_name': 'sandbox_linux_jni_unittests', 357 # 'test_suite_name': 'sandbox_linux_jni_unittests',
355 # }, 358 # },
356 # 'dependencies': [ 359 # 'dependencies': [
357 # 'sandbox_linux_jni_unittests', 360 # 'sandbox_linux_jni_unittests',
358 # ], 361 # ],
359 # 'includes': [ '../../build/apk_test.gypi' ], 362 # 'includes': [ '../../build/apk_test.gypi' ],
360 # } 363 # }
361 } 364 }
OLDNEW
« no previous file with comments | « mojo/tools/upload_binaries.py ('k') | sandbox/linux/services/credentials.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698