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

Side by Side Diff: chrome/nacl.gypi

Issue 21020004: Move nacl.gypi to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix oreder Created 7 years, 4 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 | « chrome/chrome_renderer.gypi ('k') | components/nacl.gyp » ('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 'include': [
7 '../native_client/build/untrusted.gypi',
8 ],
9 'target_defaults': {
10 'variables': {
11 'nacl_target': 0,
12 },
13 'target_conditions': [
14 # This part is shared between the targets defined below. Only files and
15 # settings relevant for building the Win64 target should be added here.
16 ['nacl_target==1', {
17 'include_dirs': [
18 '<(INTERMEDIATE_DIR)',
19 ],
20 'defines': [
21 '<@(nacl_defines)',
22 ],
23 'sources': [
24 # .cc, .h, and .mm files under nacl that are used on all
25 # platforms, including both 32-bit and 64-bit Windows.
26 # Test files are also not included.
27 '../components/nacl/loader/nacl_ipc_adapter.cc',
28 '../components/nacl/loader/nacl_ipc_adapter.h',
29 '../components/nacl/loader/nacl_main.cc',
30 '../components/nacl/loader/nacl_main_platform_delegate.h',
31 '../components/nacl/loader/nacl_main_platform_delegate_linux.cc',
32 '../components/nacl/loader/nacl_main_platform_delegate_mac.mm',
33 '../components/nacl/loader/nacl_main_platform_delegate_win.cc',
34 '../components/nacl/loader/nacl_listener.cc',
35 '../components/nacl/loader/nacl_listener.h',
36 '../components/nacl/loader/nacl_validation_db.h',
37 '../components/nacl/loader/nacl_validation_query.cc',
38 '../components/nacl/loader/nacl_validation_query.h',
39 ],
40 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
41 'conditions': [
42 ['OS=="win"', {
43 'defines': [
44 '__STDC_LIMIT_MACROS=1',
45 ],
46 'include_dirs': [
47 '<(DEPTH)/third_party/wtl/include',
48 ],
49 },],
50 ['OS=="linux"', {
51 'defines': [
52 '__STDC_LIMIT_MACROS=1',
53 ],
54 'sources': [
55 '../components/nacl/common/nacl_paths.cc',
56 '../components/nacl/common/nacl_paths.h',
57 '../components/nacl/zygote/nacl_fork_delegate_linux.cc',
58 '../components/nacl/zygote/nacl_fork_delegate_linux.h',
59 ],
60 },],
61 ],
62 }],
63 ],
64 },
65 'conditions': [ 6 'conditions': [
66 ['disable_nacl!=1', { 7 ['disable_nacl!=1', {
67 'targets': [ 8 'conditions': [
68 { 9 ['OS=="linux"', {
69 'target_name': 'nacl', 10 'includes': [
70 'type': 'static_library', 11 '../components/nacl/nacl_defines.gypi',
71 'variables': {
72 'nacl_target': 1,
73 },
74 'dependencies': [
75 '../base/base.gyp:base',
76 '../ipc/ipc.gyp:ipc',
77 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPl uginChrome',
78 '../ppapi/ppapi_internal.gyp:ppapi_shared',
79 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
80 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se l_main_chrome',
81 ], 12 ],
82 'conditions': [
83 ['disable_nacl_untrusted==0', {
84 'dependencies': [
85 '../ppapi/native_client/native_client.gyp:nacl_irt',
86 '../ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_s him.gyp:pnacl_irt_shim',
87 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pn acl_support_extension.gyp:pnacl_support_extension',
88 ],
89 }],
90 ],
91 'direct_dependent_settings': {
92 'defines': [
93 '<@(nacl_defines)',
94 ],
95 },
96 },
97 ],
98 'conditions': [
99 ['OS=="win" and target_arch=="ia32"', {
100 'targets': [
101 {
102 'target_name': 'nacl_win64',
103 'type': 'static_library',
104 'variables': {
105 'nacl_target': 1,
106 },
107 'dependencies': [
108 '../native_client/src/trusted/service_runtime/service_runtime.gy p:sel_main_chrome64',
109 '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
110 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
111 '../components/nacl_common.gyp:nacl_common_win64',
112 ],
113 'export_dependent_settings': [
114 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
115 ],
116 'sources': [
117 '../components/nacl/broker/nacl_broker_listener.cc',
118 '../components/nacl/broker/nacl_broker_listener.h',
119 '../components/nacl/common/nacl_debug_exception_handler_win.cc',
120 ],
121 'include_dirs': [
122 '..',
123 ],
124 'defines': [
125 '<@(nacl_win64_defines)',
126 'COMPILE_CONTENT_STATICALLY',
127 ],
128 'configurations': {
129 'Common_Base': {
130 'msvs_target_platform': 'x64',
131 },
132 },
133 'direct_dependent_settings': {
134 'defines': [
135 '<@(nacl_defines)',
136 ],
137 },
138 },
139 ],
140 }],
141 ['OS=="linux"', {
142 'targets': [ 13 'targets': [
143 { 14 {
144 'target_name': 'nacl_helper', 15 'target_name': 'nacl_helper',
145 'type': 'executable', 16 'type': 'executable',
146 'include_dirs': [ 17 'include_dirs': [
147 '..', 18 '..',
148 ], 19 ],
149 'dependencies': [ 20 'dependencies': [
21 '../components/nacl.gyp:nacl',
150 '../components/nacl_common.gyp:nacl_common', 22 '../components/nacl_common.gyp:nacl_common',
151 '../crypto/crypto.gyp:crypto', 23 '../crypto/crypto.gyp:crypto',
152 '../sandbox/sandbox.gyp:libc_urandom_override', 24 '../sandbox/sandbox.gyp:libc_urandom_override',
153 '../sandbox/sandbox.gyp:sandbox', 25 '../sandbox/sandbox.gyp:sandbox',
154 'nacl', 26 ],
27 'defines': [
28 '<@(nacl_defines)',
155 ], 29 ],
156 'sources': [ 30 'sources': [
157 'nacl/nacl_helper_linux.cc', 31 'nacl/nacl_helper_linux.cc',
158 '../base/posix/unix_domain_socket_linux.cc', 32 '../base/posix/unix_domain_socket_linux.cc',
159 '../components/nacl/loader/nacl_sandbox_linux.cc', 33 '../components/nacl/loader/nacl_sandbox_linux.cc',
160 '../content/common/child_process_sandbox_support_impl_shm_linux. cc', 34 '../content/common/child_process_sandbox_support_impl_shm_linux. cc',
161 '../content/common/sandbox_init_linux.cc', 35 '../content/common/sandbox_init_linux.cc',
162 '../content/common/sandbox_seccomp_bpf_linux.cc', 36 '../content/common/sandbox_seccomp_bpf_linux.cc',
163 '../content/public/common/content_switches.cc', 37 '../content/public/common/content_switches.cc',
164 ], 38 ],
(...skipping 19 matching lines...) Expand all
184 }], 58 }],
185 ], 59 ],
186 'cflags': ['-fPIE'], 60 'cflags': ['-fPIE'],
187 'link_settings': { 61 'link_settings': {
188 'ldflags': ['-pie'], 62 'ldflags': ['-pie'],
189 }, 63 },
190 }, 64 },
191 ], 65 ],
192 }], 66 }],
193 ], 67 ],
194 }, { # else (disable_nacl==1)
195 'targets': [
196 {
197 'target_name': 'nacl',
198 'type': 'none',
199 'sources': [],
200 },
201 ],
202 'conditions': [
203 ['OS=="win"', {
204 'targets': [
205 {
206 'target_name': 'nacl_win64',
207 'type': 'none',
208 'sources': [],
209 },
210 ],
211 }],
212 ],
213 }], 68 }],
214 ], 69 ],
215 } 70 }
OLDNEW
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | components/nacl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698