| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'target_defaults': { | 6 'target_defaults': { |
| 7 'variables': { | 7 'variables': { |
| 8 'nacl_target': 0, | 8 'nacl_target': 0, |
| 9 }, | 9 }, |
| 10 'target_conditions': [ | 10 'target_conditions': [ |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 ], | 52 ], |
| 53 }], | 53 }], |
| 54 ], | 54 ], |
| 55 }, | 55 }, |
| 56 'targets': [ | 56 'targets': [ |
| 57 { | 57 { |
| 58 'target_name': 'nacl', | 58 'target_name': 'nacl', |
| 59 'type': 'static_library', | 59 'type': 'static_library', |
| 60 'variables': { | 60 'variables': { |
| 61 'nacl_target': 1, | 61 'nacl_target': 1, |
| 62 'irt_build_cmd': [ | |
| 63 'python', 'build_nacl_irt.py', '--outdir', '<(PRODUCT_DIR)', | |
| 64 ], | |
| 65 'irt_inputs_cmd': | |
| 66 'python build_nacl_irt.py --inputs', | |
| 67 }, | 62 }, |
| 68 'dependencies': [ | 63 'dependencies': [ |
| 69 # TODO(gregoryd): chrome_resources and chrome_strings could be | 64 # TODO(gregoryd): chrome_resources and chrome_strings could be |
| 70 # shared with the 64-bit target, but it does not work due to a gyp | 65 # shared with the 64-bit target, but it does not work due to a gyp |
| 71 #issue | 66 #issue |
| 72 'chrome_resources', | 67 'chrome_resources', |
| 73 'chrome_strings', | 68 'chrome_strings', |
| 74 'common', | 69 'common', |
| 75 '../webkit/support/webkit_support.gyp:glue', | 70 '../webkit/support/webkit_support.gyp:glue', |
| 76 '../native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome
', | 71 '../native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome
', |
| 77 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel', | 72 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel', |
| 78 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:plat
form_qual_lib', | 73 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:plat
form_qual_lib', |
| 79 ], | 74 ], |
| 80 'direct_dependent_settings': { | 75 'direct_dependent_settings': { |
| 81 'defines': [ | 76 'defines': [ |
| 82 'NACL_BLOCK_SHIFT=5', | 77 'NACL_BLOCK_SHIFT=5', |
| 83 'NACL_BLOCK_SIZE=32', | 78 'NACL_BLOCK_SIZE=32', |
| 84 '<@(nacl_defines)', | 79 '<@(nacl_defines)', |
| 85 ], | 80 ], |
| 86 }, | 81 }, |
| 87 'conditions': [ | 82 'conditions': [ |
| 88 ['OS=="win"', { | 83 ['target_arch=="ia32"', { |
| 89 # Windows needs both the x86-32 and x86-64 IRT. | 84 'copies': [ |
| 90 'actions': [ | 85 { |
| 91 { | 86 'destination': '<(PRODUCT_DIR)', |
| 92 'action_name': 'nacl_irt', | 87 'files': [ |
| 93 'message': 'Building NaCl IRT', | 88 '../native_client/irt_binaries/nacl_irt_x86_32.nexe', |
| 94 'inputs': [ | 89 ], |
| 95 '<!@(<(irt_inputs_cmd) --platform=x86-32 --platform=x86-64)', | 90 }, |
| 96 ], | 91 ], |
| 97 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | |
| 98 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe'], | |
| 99 'action': [ | |
| 100 '<@(irt_build_cmd)', | |
| 101 '--platform', 'x86-32', | |
| 102 '--platform', 'x86-64', | |
| 103 ], | |
| 104 }, | |
| 105 ], | |
| 106 }], | 92 }], |
| 107 ['OS!="win" and target_arch=="ia32"', { | 93 ['target_arch=="x64" or OS=="win"', { |
| 108 # Linux-x86-32 and OSX need only the x86-32 IRT. | 94 'copies': [ |
| 109 'actions': [ | 95 { |
| 110 { | 96 'destination': '<(PRODUCT_DIR)', |
| 111 'action_name': 'nacl_irt', | 97 'files': [ |
| 112 'message': 'Building NaCl IRT', | 98 '../native_client/irt_binaries/nacl_irt_x86_64.nexe', |
| 113 'inputs': [ | 99 ], |
| 114 '<!@(<(irt_inputs_cmd) --platform=x86-32)', | 100 }, |
| 115 ], | 101 ], |
| 116 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_32.nexe'], | |
| 117 'action': [ | |
| 118 '<@(irt_build_cmd)', '--platform', 'x86-32', | |
| 119 ], | |
| 120 }, | |
| 121 ], | |
| 122 }], | |
| 123 ['OS!="win" and target_arch=="x64"', { | |
| 124 # Linux-x86-64 needs only the x86-64 IRT. | |
| 125 'actions': [ | |
| 126 { | |
| 127 'action_name': 'nacl_irt', | |
| 128 'message': 'Building NaCl IRT', | |
| 129 'inputs': [ | |
| 130 '<!@(<(irt_inputs_cmd) --platform=x86-64)', | |
| 131 ], | |
| 132 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_64.nexe'], | |
| 133 'action': [ | |
| 134 '<@(irt_build_cmd)', '--platform', 'x86-64', | |
| 135 ], | |
| 136 }, | |
| 137 ], | |
| 138 }], | 102 }], |
| 139 ], | 103 ], |
| 140 }, | 104 }, |
| 141 ], | 105 ], |
| 142 'conditions': [ | 106 'conditions': [ |
| 143 ['OS=="win"', { | 107 ['OS=="win"', { |
| 144 'targets': [ | 108 'targets': [ |
| 145 { | 109 { |
| 146 'target_name': 'nacl_win64', | 110 'target_name': 'nacl_win64', |
| 147 'type': 'static_library', | 111 'type': 'static_library', |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 # reference nacl_helper as a shared library | 194 # reference nacl_helper as a shared library |
| 231 '<(PRODUCT_DIR)/nacl_helper.so', | 195 '<(PRODUCT_DIR)/nacl_helper.so', |
| 232 '-Wl,-rpath,<(SHARED_LIB_DIR)', | 196 '-Wl,-rpath,<(SHARED_LIB_DIR)', |
| 233 ], | 197 ], |
| 234 }, | 198 }, |
| 235 }, | 199 }, |
| 236 ], | 200 ], |
| 237 }], | 201 }], |
| 238 ], | 202 ], |
| 239 } | 203 } |
| OLD | NEW |