OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 'nacl/nacl_defines.gypi', | 10 'nacl/nacl_defines.gypi', |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 ], | 174 ], |
175 'conditions': [ | 175 'conditions': [ |
176 ['OS=="linux"', { | 176 ['OS=="linux"', { |
177 'targets': [ | 177 'targets': [ |
178 { | 178 { |
179 'target_name': 'nacl_helper', | 179 'target_name': 'nacl_helper', |
180 'type': 'executable', | 180 'type': 'executable', |
181 'include_dirs': [ | 181 'include_dirs': [ |
182 '..', | 182 '..', |
183 ], | 183 ], |
| 184 'sources': [ |
| 185 'nacl/loader/nacl_helper_linux.cc', |
| 186 'nacl/loader/nacl_helper_linux.h', |
| 187 ], |
184 'dependencies': [ | 188 'dependencies': [ |
185 'nacl', | 189 'nacl_loader', |
186 'nacl_common', | 190 ], |
187 '../components/tracing.gyp:tracing', | 191 'cflags': ['-fPIE'], |
188 '../crypto/crypto.gyp:crypto', | 192 'link_settings': { |
189 '../sandbox/sandbox.gyp:libc_urandom_override', | 193 'ldflags': ['-pie'], |
190 '../sandbox/sandbox.gyp:sandbox', | 194 }, |
191 '../ppapi/ppapi_internal.gyp:ppapi_proxy', | 195 }, { |
| 196 'target_name': 'nacl_loader', |
| 197 'type': 'static_library', |
| 198 'include_dirs': [ |
| 199 '..', |
192 ], | 200 ], |
193 'defines': [ | 201 'defines': [ |
194 '<@(nacl_defines)', | 202 '<@(nacl_defines)', |
195 # Allow .cc files to know if they're being compiled as part | 203 # Allow .cc files to know if they're being compiled as part |
196 # of nacl_helper. | 204 # of nacl_helper. |
197 'IN_NACL_HELPER=1', | 205 'IN_NACL_HELPER=1', |
198 ], | 206 ], |
199 'sources': [ | 207 'sources': [ |
200 'nacl/loader/nacl_helper_linux.cc', | |
201 'nacl/loader/nacl_helper_linux.h', | |
202 'nacl/loader/nacl_sandbox_linux.cc', | 208 'nacl/loader/nacl_sandbox_linux.cc', |
203 'nacl/loader/nonsfi/abi_conversion.cc', | 209 'nacl/loader/nonsfi/abi_conversion.cc', |
204 'nacl/loader/nonsfi/abi_conversion.h', | 210 'nacl/loader/nonsfi/abi_conversion.h', |
205 'nacl/loader/nonsfi/elf_loader.cc', | 211 'nacl/loader/nonsfi/elf_loader.cc', |
206 'nacl/loader/nonsfi/elf_loader.h', | 212 'nacl/loader/nonsfi/elf_loader.h', |
207 'nacl/loader/nonsfi/irt_basic.cc', | 213 'nacl/loader/nonsfi/irt_basic.cc', |
208 'nacl/loader/nonsfi/irt_clock.cc', | 214 'nacl/loader/nonsfi/irt_clock.cc', |
209 'nacl/loader/nonsfi/irt_fdio.cc', | 215 'nacl/loader/nonsfi/irt_fdio.cc', |
210 'nacl/loader/nonsfi/irt_futex.cc', | 216 'nacl/loader/nonsfi/irt_futex.cc', |
211 'nacl/loader/nonsfi/irt_interfaces.cc', | 217 'nacl/loader/nonsfi/irt_interfaces.cc', |
212 'nacl/loader/nonsfi/irt_interfaces.h', | 218 'nacl/loader/nonsfi/irt_interfaces.h', |
213 'nacl/loader/nonsfi/irt_memory.cc', | 219 'nacl/loader/nonsfi/irt_memory.cc', |
214 'nacl/loader/nonsfi/irt_ppapi.cc', | 220 'nacl/loader/nonsfi/irt_ppapi.cc', |
215 'nacl/loader/nonsfi/irt_random.cc', | 221 'nacl/loader/nonsfi/irt_random.cc', |
216 'nacl/loader/nonsfi/irt_thread.cc', | 222 'nacl/loader/nonsfi/irt_thread.cc', |
217 'nacl/loader/nonsfi/irt_util.h', | 223 'nacl/loader/nonsfi/irt_util.h', |
218 'nacl/loader/nonsfi/nonsfi_main.cc', | 224 'nacl/loader/nonsfi/nonsfi_main.cc', |
219 'nacl/loader/nonsfi/nonsfi_main.h', | 225 'nacl/loader/nonsfi/nonsfi_main.h', |
| 226 'nacl/loader/nonsfi/nonsfi_sandbox.cc', |
| 227 'nacl/loader/nonsfi/nonsfi_sandbox.h', |
220 '../ppapi/nacl_irt/plugin_main.cc', | 228 '../ppapi/nacl_irt/plugin_main.cc', |
221 '../ppapi/nacl_irt/plugin_main.h', | 229 '../ppapi/nacl_irt/plugin_main.h', |
222 '../ppapi/nacl_irt/plugin_startup.cc', | 230 '../ppapi/nacl_irt/plugin_startup.cc', |
223 '../ppapi/nacl_irt/plugin_startup.h', | 231 '../ppapi/nacl_irt/plugin_startup.h', |
224 '../ppapi/nacl_irt/ppapi_dispatcher.cc', | 232 '../ppapi/nacl_irt/ppapi_dispatcher.cc', |
225 '../ppapi/nacl_irt/ppapi_dispatcher.h', | 233 '../ppapi/nacl_irt/ppapi_dispatcher.h', |
226 ], | 234 ], |
| 235 'dependencies': [ |
| 236 'nacl', |
| 237 'nacl_common', |
| 238 '../components/tracing.gyp:tracing', |
| 239 '../crypto/crypto.gyp:crypto', |
| 240 '../sandbox/sandbox.gyp:libc_urandom_override', |
| 241 '../sandbox/sandbox.gyp:sandbox', |
| 242 '../ppapi/ppapi_internal.gyp:ppapi_proxy', |
| 243 ], |
227 'conditions': [ | 244 'conditions': [ |
228 ['toolkit_uses_gtk == 1', { | 245 ['toolkit_uses_gtk == 1', { |
229 'dependencies': [ | 246 'dependencies': [ |
230 '../build/linux/system.gyp:gtk', | 247 '../build/linux/system.gyp:gtk', |
231 ], | 248 ], |
232 }], | 249 }], |
233 ['use_glib == 1', { | 250 ['use_glib == 1', { |
234 'dependencies': [ | 251 'dependencies': [ |
235 '../build/linux/system.gyp:glib', | 252 '../build/linux/system.gyp:glib', |
236 ], | 253 ], |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 ], | 419 ], |
403 'include_dirs': [ | 420 'include_dirs': [ |
404 '..', | 421 '..', |
405 ], | 422 ], |
406 'dependencies': [ | 423 'dependencies': [ |
407 '../content/content.gyp:content_common', | 424 '../content/content.gyp:content_common', |
408 ], | 425 ], |
409 }, | 426 }, |
410 ] | 427 ] |
411 } | 428 } |
OLD | NEW |