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

Side by Side Diff: sandbox/linux/sandbox_linux.gypi

Issue 11618010: Linux Sandbox: get everything to compile on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Proper boilerplate this time. Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sandbox/linux/seccomp-bpf/sandbox_bpf.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 ['OS=="linux"', { 8 ['OS=="linux"', {
9 'compile_suid_client': 1, 9 'compile_suid_client': 1,
10 }, { 10 }, {
11 'compile_suid_client': 0, 11 'compile_suid_client': 0,
12 }], 12 }],
13 ['(OS=="linux" or OS=="android") and (target_arch=="ia32" ' 13 ['(OS=="linux" or OS=="android") and (target_arch=="ia32" '
14 'or target_arch=="x64" or target_arch=="arm")', { 14 'or target_arch=="x64" or target_arch=="arm")', {
15 'compile_seccomp_bpf': 1, 15 'compile_seccomp_bpf': 1,
16 }, { 16 }, {
17 'compile_seccomp_bpf': 0, 17 'compile_seccomp_bpf': 0,
18 }], 18 }],
19 ], 19 ],
20 }, 20 },
21 'target_defaults': { 21 'target_defaults': {
22 'target_conditions': [ 22 'target_conditions': [
23 # All linux/ files will automatically be excluded on Android 23 # All linux/ files will automatically be excluded on Android
24 # so make sure we re-include them explicitly. 24 # so make sure we re-include them explicitly.
25 ['OS == "android"', { 25 ['OS == "android"', {
26 'sources/': [ 26 'sources/': [
27 ['include', '^linux/'], 27 ['include', '^linux/'],
28 # TODO(jln): some files don't yet even compile on Android.
29 # crbug.com/166704
30 ['exclude', 'errorcode_unittest\\.cc$'],
31 ['exclude', 'sandbox_bpf\\.cc$'],
32 ['exclude', 'sandbox_bpf_unittest\\.cc$'],
33 ['exclude', 'syscall_unittest\\.cc$'],
34 ], 28 ],
35 }], 29 }],
36 ], 30 ],
37 }, 31 },
38 'targets': [ 32 'targets': [
39 # We have two principal targets: sandbox and sandbox_linux_unittests 33 # We have two principal targets: sandbox and sandbox_linux_unittests
40 # All other targets are listed as dependencies. 34 # All other targets are listed as dependencies.
41 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox 35 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox
42 # and is its own target. 36 # and is its own target.
43 { 37 {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 [ 'compile_seccomp_bpf==1', { 88 [ 'compile_seccomp_bpf==1', {
95 'sources': [ 89 'sources': [
96 'seccomp-bpf/bpf_tests.h', 90 'seccomp-bpf/bpf_tests.h',
97 'seccomp-bpf/codegen_unittest.cc', 91 'seccomp-bpf/codegen_unittest.cc',
98 'seccomp-bpf/errorcode_unittest.cc', 92 'seccomp-bpf/errorcode_unittest.cc',
99 'seccomp-bpf/sandbox_bpf_unittest.cc', 93 'seccomp-bpf/sandbox_bpf_unittest.cc',
100 'seccomp-bpf/syscall_iterator_unittest.cc', 94 'seccomp-bpf/syscall_iterator_unittest.cc',
101 'seccomp-bpf/syscall_unittest.cc', 95 'seccomp-bpf/syscall_unittest.cc',
102 ], 96 ],
103 }], 97 }],
98 ['OS == "android" and gtest_target_type == "shared_library"', {
99 'dependencies': [
100 '../testing/android/native_test.gyp:native_test_native_code',
101 ]
102 }],
104 ], 103 ],
105 }, 104 },
106 { 105 {
107 'target_name': 'seccomp_bpf', 106 'target_name': 'seccomp_bpf',
108 'type': 'static_library', 107 'type': 'static_library',
109 'sources': [ 108 'sources': [
110 'seccomp-bpf/basicblock.cc', 109 'seccomp-bpf/basicblock.cc',
111 'seccomp-bpf/basicblock.h', 110 'seccomp-bpf/basicblock.h',
112 'seccomp-bpf/codegen.cc', 111 'seccomp-bpf/codegen.cc',
113 'seccomp-bpf/codegen.h', 112 'seccomp-bpf/codegen.h',
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 'input_shlib_path': 214 'input_shlib_path':
216 '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sandbox_linux_unittests' 215 '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sandbox_linux_unittests'
217 '<(SHARED_LIB_SUFFIX)', 216 '<(SHARED_LIB_SUFFIX)',
218 }, 217 },
219 'includes': [ '../../build/apk_test.gypi' ], 218 'includes': [ '../../build/apk_test.gypi' ],
220 } 219 }
221 ], 220 ],
222 }], 221 }],
223 ], 222 ],
224 } 223 }
OLDNEW
« no previous file with comments | « no previous file | sandbox/linux/seccomp-bpf/sandbox_bpf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698