| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 ], | 182 ], |
| 183 'conditions': [ | 183 'conditions': [ |
| 184 ['OS=="linux"', { | 184 ['OS=="linux"', { |
| 185 'targets': [ | 185 'targets': [ |
| 186 { | 186 { |
| 187 'target_name': 'nacl_helper', | 187 'target_name': 'nacl_helper', |
| 188 'type': 'executable', | 188 'type': 'executable', |
| 189 'include_dirs': [ | 189 'include_dirs': [ |
| 190 '..', | 190 '..', |
| 191 ], | 191 ], |
| 192 'sources': [ |
| 193 'nacl/loader/nacl_helper_linux.cc', |
| 194 'nacl/loader/nacl_helper_linux.h', |
| 195 ], |
| 192 'dependencies': [ | 196 'dependencies': [ |
| 193 'nacl', | 197 'nacl_loader', |
| 194 'nacl_common', | |
| 195 'nacl_switches', | |
| 196 '../components/tracing.gyp:tracing', | |
| 197 '../crypto/crypto.gyp:crypto', | |
| 198 '../sandbox/sandbox.gyp:libc_urandom_override', | |
| 199 '../sandbox/sandbox.gyp:sandbox', | |
| 200 '../ppapi/ppapi_internal.gyp:ppapi_proxy', | |
| 201 ], | 198 ], |
| 199 'cflags': ['-fPIE'], |
| 202 'ldflags!': [ | 200 'ldflags!': [ |
| 203 # Do not pick the default ASan options from | 201 # Do not pick the default ASan options from |
| 204 # base/debug/sanitizer_options.cc to avoid a conflict with those | 202 # base/debug/sanitizer_options.cc to avoid a conflict with those |
| 205 # in nacl/nacl_helper_linux.cc. | 203 # in nacl/nacl_helper_linux.cc. |
| 206 '-Wl,-u_sanitizer_options_link_helper', | 204 '-Wl,-u_sanitizer_options_link_helper', |
| 207 ], | 205 ], |
| 206 'link_settings': { |
| 207 'ldflags': ['-pie'], |
| 208 }, |
| 209 }, { |
| 210 'target_name': 'nacl_loader', |
| 211 'type': 'static_library', |
| 212 'include_dirs': [ |
| 213 '..', |
| 214 ], |
| 208 'defines': [ | 215 'defines': [ |
| 209 '<@(nacl_defines)', | 216 '<@(nacl_defines)', |
| 210 # Allow .cc files to know if they're being compiled as part | 217 # Allow .cc files to know if they're being compiled as part |
| 211 # of nacl_helper. | 218 # of nacl_helper. |
| 212 'IN_NACL_HELPER=1', | 219 'IN_NACL_HELPER=1', |
| 213 ], | 220 ], |
| 214 'sources': [ | 221 'sources': [ |
| 215 'nacl/loader/nacl_helper_linux.cc', | |
| 216 'nacl/loader/nacl_helper_linux.h', | |
| 217 'nacl/loader/nacl_sandbox_linux.cc', | 222 'nacl/loader/nacl_sandbox_linux.cc', |
| 218 'nacl/loader/nonsfi/abi_conversion.cc', | 223 'nacl/loader/nonsfi/abi_conversion.cc', |
| 219 'nacl/loader/nonsfi/abi_conversion.h', | 224 'nacl/loader/nonsfi/abi_conversion.h', |
| 220 'nacl/loader/nonsfi/elf_loader.cc', | 225 'nacl/loader/nonsfi/elf_loader.cc', |
| 221 'nacl/loader/nonsfi/elf_loader.h', | 226 'nacl/loader/nonsfi/elf_loader.h', |
| 222 'nacl/loader/nonsfi/irt_basic.cc', | 227 'nacl/loader/nonsfi/irt_basic.cc', |
| 223 'nacl/loader/nonsfi/irt_clock.cc', | 228 'nacl/loader/nonsfi/irt_clock.cc', |
| 224 'nacl/loader/nonsfi/irt_fdio.cc', | 229 'nacl/loader/nonsfi/irt_fdio.cc', |
| 225 'nacl/loader/nonsfi/irt_futex.cc', | 230 'nacl/loader/nonsfi/irt_futex.cc', |
| 226 'nacl/loader/nonsfi/irt_interfaces.cc', | 231 'nacl/loader/nonsfi/irt_interfaces.cc', |
| 227 'nacl/loader/nonsfi/irt_interfaces.h', | 232 'nacl/loader/nonsfi/irt_interfaces.h', |
| 228 'nacl/loader/nonsfi/irt_memory.cc', | 233 'nacl/loader/nonsfi/irt_memory.cc', |
| 229 'nacl/loader/nonsfi/irt_ppapi.cc', | 234 'nacl/loader/nonsfi/irt_ppapi.cc', |
| 230 'nacl/loader/nonsfi/irt_random.cc', | 235 'nacl/loader/nonsfi/irt_random.cc', |
| 231 'nacl/loader/nonsfi/irt_thread.cc', | 236 'nacl/loader/nonsfi/irt_thread.cc', |
| 232 'nacl/loader/nonsfi/irt_util.h', | 237 'nacl/loader/nonsfi/irt_util.h', |
| 233 'nacl/loader/nonsfi/nonsfi_main.cc', | 238 'nacl/loader/nonsfi/nonsfi_main.cc', |
| 234 'nacl/loader/nonsfi/nonsfi_main.h', | 239 'nacl/loader/nonsfi/nonsfi_main.h', |
| 240 'nacl/loader/nonsfi/nonsfi_sandbox.cc', |
| 241 'nacl/loader/nonsfi/nonsfi_sandbox.h', |
| 235 '../ppapi/nacl_irt/plugin_main.cc', | 242 '../ppapi/nacl_irt/plugin_main.cc', |
| 236 '../ppapi/nacl_irt/plugin_main.h', | 243 '../ppapi/nacl_irt/plugin_main.h', |
| 237 '../ppapi/nacl_irt/plugin_startup.cc', | 244 '../ppapi/nacl_irt/plugin_startup.cc', |
| 238 '../ppapi/nacl_irt/plugin_startup.h', | 245 '../ppapi/nacl_irt/plugin_startup.h', |
| 239 '../ppapi/nacl_irt/ppapi_dispatcher.cc', | 246 '../ppapi/nacl_irt/ppapi_dispatcher.cc', |
| 240 '../ppapi/nacl_irt/ppapi_dispatcher.h', | 247 '../ppapi/nacl_irt/ppapi_dispatcher.h', |
| 241 ], | 248 ], |
| 249 'dependencies': [ |
| 250 'nacl', |
| 251 'nacl_common', |
| 252 'nacl_switches', |
| 253 '../components/tracing.gyp:tracing', |
| 254 '../crypto/crypto.gyp:crypto', |
| 255 '../sandbox/sandbox.gyp:libc_urandom_override', |
| 256 '../sandbox/sandbox.gyp:sandbox', |
| 257 '../ppapi/ppapi_internal.gyp:ppapi_proxy', |
| 258 ], |
| 242 'conditions': [ | 259 'conditions': [ |
| 243 ['toolkit_uses_gtk == 1', { | 260 ['toolkit_uses_gtk == 1', { |
| 244 'dependencies': [ | 261 'dependencies': [ |
| 245 '../build/linux/system.gyp:gtk', | 262 '../build/linux/system.gyp:gtk', |
| 246 ], | 263 ], |
| 247 }], | 264 }], |
| 248 ['use_glib == 1', { | 265 ['use_glib == 1', { |
| 249 'dependencies': [ | 266 'dependencies': [ |
| 250 '../build/linux/system.gyp:glib', | 267 '../build/linux/system.gyp:glib', |
| 251 ], | 268 ], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 263 ['use_seccomp_bpf == 0', { | 280 ['use_seccomp_bpf == 0', { |
| 264 'sources!': [ | 281 'sources!': [ |
| 265 '../content/common/sandbox_linux/sandbox_bpf_base_policy_lin
ux.cc', | 282 '../content/common/sandbox_linux/sandbox_bpf_base_policy_lin
ux.cc', |
| 266 '../content/common/sandbox_linux/sandbox_init_linux.cc', | 283 '../content/common/sandbox_linux/sandbox_init_linux.cc', |
| 267 ], | 284 ], |
| 268 }, { | 285 }, { |
| 269 'defines': ['USE_SECCOMP_BPF'], | 286 'defines': ['USE_SECCOMP_BPF'], |
| 270 }], | 287 }], |
| 271 ], | 288 ], |
| 272 'cflags': ['-fPIE'], | 289 'cflags': ['-fPIE'], |
| 273 'link_settings': { | |
| 274 'ldflags': ['-pie'], | |
| 275 }, | |
| 276 }, | 290 }, |
| 277 ], | 291 ], |
| 278 }], | 292 }], |
| 279 ['OS=="win" and target_arch=="ia32"', { | 293 ['OS=="win" and target_arch=="ia32"', { |
| 280 'targets': [ | 294 'targets': [ |
| 281 { | 295 { |
| 282 'target_name': 'nacl_win64', | 296 'target_name': 'nacl_win64', |
| 283 'type': 'static_library', | 297 'type': 'static_library', |
| 284 'variables': { | 298 'variables': { |
| 285 'nacl_target': 1, | 299 'nacl_target': 1, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 ], | 431 ], |
| 418 'include_dirs': [ | 432 'include_dirs': [ |
| 419 '..', | 433 '..', |
| 420 ], | 434 ], |
| 421 'dependencies': [ | 435 'dependencies': [ |
| 422 '../content/content.gyp:content_common', | 436 '../content/content.gyp:content_common', |
| 423 ], | 437 ], |
| 424 }, | 438 }, |
| 425 ] | 439 ] |
| 426 } | 440 } |
| OLD | NEW |