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

Side by Side Diff: components/nacl.gypi

Issue 21020004: Move nacl.gypi to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« chrome/chrome_exe.gypi ('K') | « chrome/nacl.gypi ('k') | 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 (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
Mark Seaborn 2013/07/31 18:50:43 One other thing: Can you make this a .gyp file rat
Mark Seaborn 2013/07/31 20:11:24 I meant, can you create components/nacl.gyp rather
5 { 5 {
6 'include': [ 6 'include': [
7 '../native_client/build/untrusted.gypi', 7 '../native_client/build/untrusted.gypi',
8 ], 8 ],
9 'target_defaults': { 9 'target_defaults': {
10 'variables': { 10 'variables': {
11 'nacl_target': 0, 11 'nacl_target': 0,
12 }, 12 },
13 'target_conditions': [ 13 'target_conditions': [
14 # This part is shared between the targets defined below. Only files and 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. 15 # settings relevant for building the Win64 target should be added here.
16 ['nacl_target==1', { 16 ['nacl_target==1', {
17 'include_dirs': [ 17 'include_dirs': [
18 '<(INTERMEDIATE_DIR)', 18 '<(INTERMEDIATE_DIR)',
19 ], 19 ],
20 'defines': [ 20 'defines': [
21 '<@(nacl_defines)', 21 '<@(nacl_defines)',
22 ], 22 ],
23 'sources': [ 23 'sources': [
24 # .cc, .h, and .mm files under nacl that are used on all 24 # .cc, .h, and .mm files under nacl that are used on all
25 # platforms, including both 32-bit and 64-bit Windows. 25 # platforms, including both 32-bit and 64-bit Windows.
26 # Test files are also not included. 26 # Test files are also not included.
27 '../components/nacl/loader/nacl_ipc_adapter.cc', 27 'nacl/loader/nacl_ipc_adapter.cc',
28 '../components/nacl/loader/nacl_ipc_adapter.h', 28 'nacl/loader/nacl_ipc_adapter.h',
29 '../components/nacl/loader/nacl_main.cc', 29 'nacl/loader/nacl_main.cc',
30 '../components/nacl/loader/nacl_main_platform_delegate.h', 30 'nacl/loader/nacl_main_platform_delegate.h',
31 '../components/nacl/loader/nacl_main_platform_delegate_linux.cc', 31 'nacl/loader/nacl_main_platform_delegate_linux.cc',
32 '../components/nacl/loader/nacl_main_platform_delegate_mac.mm', 32 'nacl/loader/nacl_main_platform_delegate_mac.mm',
33 '../components/nacl/loader/nacl_main_platform_delegate_win.cc', 33 'nacl/loader/nacl_main_platform_delegate_win.cc',
34 '../components/nacl/loader/nacl_listener.cc', 34 'nacl/loader/nacl_listener.cc',
35 '../components/nacl/loader/nacl_listener.h', 35 'nacl/loader/nacl_listener.h',
36 '../components/nacl/loader/nacl_validation_db.h', 36 'nacl/loader/nacl_validation_db.h',
37 '../components/nacl/loader/nacl_validation_query.cc', 37 'nacl/loader/nacl_validation_query.cc',
38 '../components/nacl/loader/nacl_validation_query.h', 38 'nacl/loader/nacl_validation_query.h',
39 ], 39 ],
40 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines 40 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
41 'conditions': [ 41 'conditions': [
42 ['OS=="win"', { 42 ['OS=="win"', {
43 'defines': [ 43 'defines': [
44 '__STDC_LIMIT_MACROS=1', 44 '__STDC_LIMIT_MACROS=1',
45 ], 45 ],
46 'include_dirs': [ 46 'include_dirs': [
47 '<(DEPTH)/third_party/wtl/include', 47 '<(DEPTH)/third_party/wtl/include',
48 ], 48 ],
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 }, 131 },
132 }, 132 },
133 'direct_dependent_settings': { 133 'direct_dependent_settings': {
134 'defines': [ 134 'defines': [
135 '<@(nacl_defines)', 135 '<@(nacl_defines)',
136 ], 136 ],
137 }, 137 },
138 }, 138 },
139 ], 139 ],
140 }], 140 }],
141 ['OS=="linux"', {
142 'targets': [
143 {
144 'target_name': 'nacl_helper',
145 'type': 'executable',
146 'include_dirs': [
147 '..',
148 ],
149 'dependencies': [
150 '../components/nacl_common.gyp:nacl_common',
151 '../crypto/crypto.gyp:crypto',
152 '../sandbox/sandbox.gyp:libc_urandom_override',
153 '../sandbox/sandbox.gyp:sandbox',
154 'nacl',
155 ],
156 'sources': [
157 'nacl/nacl_helper_linux.cc',
158 '../base/posix/unix_domain_socket_linux.cc',
159 '../components/nacl/loader/nacl_sandbox_linux.cc',
160 '../content/common/child_process_sandbox_support_impl_shm_linux. cc',
161 '../content/common/sandbox_init_linux.cc',
162 '../content/common/sandbox_seccomp_bpf_linux.cc',
163 '../content/public/common/content_switches.cc',
164 ],
165 'conditions': [
166 ['toolkit_uses_gtk == 1', {
167 'dependencies': [
168 '../build/linux/system.gyp:gtk',
169 ],
170 }],
171 ['use_glib == 1', {
172 'dependencies': [
173 '../build/linux/system.gyp:glib',
174 ],
175 }],
176 ['os_posix == 1 and OS != "mac"', {
177 'conditions': [
178 ['linux_use_tcmalloc==1', {
179 'dependencies': [
180 '../base/allocator/allocator.gyp:allocator',
181 ],
182 }],
183 ],
184 }],
185 ],
186 'cflags': ['-fPIE'],
187 'link_settings': {
188 'ldflags': ['-pie'],
189 },
190 },
191 ],
192 }],
193 ], 141 ],
194 }, { # else (disable_nacl==1) 142 }, { # else (disable_nacl==1)
195 'targets': [ 143 'targets': [
196 { 144 {
197 'target_name': 'nacl', 145 'target_name': 'nacl',
198 'type': 'none', 146 'type': 'none',
199 'sources': [], 147 'sources': [],
200 }, 148 },
201 ], 149 ],
202 'conditions': [ 150 'conditions': [
203 ['OS=="win"', { 151 ['OS=="win"', {
204 'targets': [ 152 'targets': [
205 { 153 {
206 'target_name': 'nacl_win64', 154 'target_name': 'nacl_win64',
207 'type': 'none', 155 'type': 'none',
208 'sources': [], 156 'sources': [],
209 }, 157 },
210 ], 158 ],
211 }], 159 }],
212 ], 160 ],
213 }], 161 }],
214 ], 162 ],
215 } 163 }
OLDNEW
« chrome/chrome_exe.gypi ('K') | « chrome/nacl.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698