| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'common_sources': [ | |
| 8 'array_ppapi.cc', | |
| 9 'browser_interface.cc', | |
| 10 'desc_based_handle.cc', | |
| 11 'file_downloader.cc', | |
| 12 'manifest.cc', | |
| 13 'method_map.cc', | |
| 14 'module_ppapi.cc', | |
| 15 'nacl_subprocess.cc', | |
| 16 'nexe_arch.cc', | |
| 17 'plugin.cc', | |
| 18 'pnacl_coordinator.cc', | |
| 19 'pnacl_srpc_lib.cc', | |
| 20 'scriptable_handle.cc', | |
| 21 'service_runtime.cc', | |
| 22 'srpc_client.cc', | |
| 23 'string_encoding.cc', | |
| 24 'utility.cc', | |
| 25 'var_utils.cc', | |
| 26 ], | |
| 27 # Append the arch-specific ISA code to common_sources. | |
| 28 'conditions': [ | |
| 29 # Note: this test assumes that if this is not an ARM build, then this is | |
| 30 # is an x86 build. This is because |target_arch| for x86 can be one of a | |
| 31 # number of values (x64, ia32, etc.). | |
| 32 ['target_arch=="arm"', { | |
| 33 'common_sources': [ | |
| 34 'arch_arm/sandbox_isa.cc', | |
| 35 ], | |
| 36 }, { # else: 'target_arch != "arm" | |
| 37 'common_sources': [ | |
| 38 'arch_x86/sandbox_isa.cc', | |
| 39 ], | |
| 40 }], | |
| 41 ], | |
| 42 }, | |
| 43 'includes': [ | |
| 44 '../../../build/common.gypi', | |
| 45 ], | |
| 46 'target_defaults': { | |
| 47 'variables': { | |
| 48 'target_platform': 'none', | |
| 49 }, | |
| 50 'conditions': [ | |
| 51 ['OS=="linux"', { | |
| 52 'defines': [ | |
| 53 'XP_UNIX', | |
| 54 'MOZ_X11', | |
| 55 ], | |
| 56 'cflags': [ | |
| 57 '-Wno-long-long', | |
| 58 ], | |
| 59 'ldflags': [ | |
| 60 # Catch unresolved symbols. | |
| 61 '-Wl,-z,defs', | |
| 62 ], | |
| 63 'libraries': [ | |
| 64 '-ldl', | |
| 65 '-lX11', | |
| 66 '-lXt', | |
| 67 ], | |
| 68 }], | |
| 69 ['OS=="mac"', { | |
| 70 'defines': [ | |
| 71 'XP_MACOSX', | |
| 72 'XP_UNIX', | |
| 73 'TARGET_API_MAC_CARBON=1', | |
| 74 'NO_X11', | |
| 75 'USE_SYSTEM_CONSOLE', | |
| 76 ], | |
| 77 'cflags': [ | |
| 78 '-Wno-long-long', | |
| 79 ], | |
| 80 'link_settings': { | |
| 81 'libraries': [ | |
| 82 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
| 83 ], | |
| 84 }, | |
| 85 }], | |
| 86 ['OS=="win"', { | |
| 87 'defines': [ | |
| 88 'XP_WIN', | |
| 89 'WIN32', | |
| 90 '_WINDOWS' | |
| 91 ], | |
| 92 'flags': [ | |
| 93 '-fPIC', | |
| 94 '-Wno-long-long', | |
| 95 ], | |
| 96 'link_settings': { | |
| 97 'libraries': [ | |
| 98 '-lgdi32.lib', | |
| 99 '-luser32.lib', | |
| 100 ], | |
| 101 }, | |
| 102 }], | |
| 103 ], | |
| 104 }, | |
| 105 } | |
| OLD | NEW |