Chromium Code Reviews| 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 'variables': { | |
| 7 'disable_untrusted%': 0 | |
| 8 }, | |
| 9 'includes': [ | |
| 10 '../native_client/build/untrusted.gypi', | |
| 11 ], | |
| 6 'target_defaults': { | 12 'target_defaults': { |
| 7 'variables': { | 13 'variables': { |
| 8 'nacl_target': 0, | 14 'nacl_target': 0, |
| 9 }, | 15 }, |
| 10 'target_conditions': [ | 16 'target_conditions': [ |
| 11 # This part is shared between the targets defined below. Only files and | 17 # This part is shared between the targets defined below. Only files and |
| 12 # settings relevant for building the Win64 target should be added here. | 18 # settings relevant for building the Win64 target should be added here. |
| 13 ['nacl_target==1', { | 19 ['nacl_target==1', { |
| 14 'include_dirs': [ | 20 'include_dirs': [ |
| 15 '<(INTERMEDIATE_DIR)', | 21 '<(INTERMEDIATE_DIR)', |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 ], | 61 ], |
| 56 }, | 62 }, |
| 57 'conditions': [ | 63 'conditions': [ |
| 58 ['disable_nacl!=1', { | 64 ['disable_nacl!=1', { |
| 59 'targets': [ | 65 'targets': [ |
| 60 { | 66 { |
| 61 'target_name': 'nacl', | 67 'target_name': 'nacl', |
| 62 'type': 'static_library', | 68 'type': 'static_library', |
| 63 'variables': { | 69 'variables': { |
| 64 'nacl_target': 1, | 70 'nacl_target': 1, |
| 65 'irt_build_cmd': [ | 71 }, |
| 66 'python', 'build_nacl_irt.py', '--outdir', '<(PRODUCT_DIR)', | |
| 67 ], | |
| 68 'irt_inputs_cmd': | |
| 69 'python build_nacl_irt.py --inputs', | |
| 70 }, | |
| 71 'dependencies': [ | 72 'dependencies': [ |
| 73 # TODO(gregoryd): chrome_resources and chrome_strings could be | |
| 74 # shared with the 64-bit target, but it does not work due to a gyp | |
|
bradn
2011/10/31 16:38:48
Maybe assign that to me...
sehr (please use chromium)
2011/10/31 19:47:40
Agreed. The statute of limitations on gregoryd TO
| |
| 75 #issue | |
| 72 'chrome_resources', | 76 'chrome_resources', |
| 73 'chrome_strings', | 77 'chrome_strings', |
| 74 'common', | 78 'common', |
| 79 '../ppapi/native_client/native_client.gyp:nacl_irt', | |
| 75 '../webkit/support/webkit_support.gyp:glue', | 80 '../webkit/support/webkit_support.gyp:glue', |
| 76 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPl uginChrome', | 81 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPl uginChrome', |
| 77 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se l', | 82 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se l', |
| 78 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp: platform_qual_lib', | 83 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp: platform_qual_lib', |
| 79 ], | 84 ], |
| 80 'direct_dependent_settings': { | 85 'direct_dependent_settings': { |
| 81 'defines': [ | 86 'defines': [ |
| 82 'NACL_BLOCK_SHIFT=5', | 87 'NACL_BLOCK_SHIFT=5', |
| 83 'NACL_BLOCK_SIZE=32', | 88 'NACL_BLOCK_SIZE=32', |
| 84 '<@(nacl_defines)', | 89 '<@(nacl_defines)', |
| 85 ], | 90 ], |
| 86 }, | 91 }, |
| 87 'conditions': [ | |
| 88 ['OS=="win"', { | |
| 89 # Windows needs both the x86-32 and x86-64 IRT. | |
| 90 'actions': [ | |
| 91 { | |
| 92 'action_name': 'nacl_irt', | |
| 93 'message': 'Building NaCl IRT', | |
| 94 'inputs': [ | |
| 95 '<!@(<(irt_inputs_cmd) --platform=x86-32 --platform=x86-64)' , | |
| 96 ], | |
| 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 }], | |
| 107 ['OS!="win" and target_arch=="ia32"', { | |
| 108 # Linux-x86-32 and OSX need only the x86-32 IRT. | |
| 109 'actions': [ | |
| 110 { | |
| 111 'action_name': 'nacl_irt', | |
| 112 'message': 'Building NaCl IRT', | |
| 113 'inputs': [ | |
| 114 '<!@(<(irt_inputs_cmd) --platform=x86-32)', | |
| 115 ], | |
| 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 }], | |
| 139 ['OS!="win" and target_arch=="arm"', { | |
| 140 'actions': [ | |
| 141 { | |
| 142 'action_name': 'nacl_irt', | |
| 143 'message': 'Building NaCl IRT', | |
| 144 'inputs': [ | |
| 145 '<!@(<(irt_inputs_cmd) --platform=arm)', | |
| 146 ], | |
| 147 'outputs': ['<(PRODUCT_DIR)/nacl_irt_arm.nexe'], | |
| 148 'action': [ | |
| 149 '<@(irt_build_cmd)', '--platform', 'arm', | |
| 150 ], | |
| 151 }, | |
| 152 ], | |
| 153 }], | |
| 154 ], | |
| 155 }, | 92 }, |
| 156 ], | 93 ], |
| 157 'conditions': [ | 94 'conditions': [ |
| 158 ['OS=="win"', { | 95 ['OS=="win"', { |
| 159 'targets': [ | 96 'targets': [ |
| 160 { | 97 { |
| 161 'target_name': 'nacl_win64', | 98 'target_name': 'nacl_win64', |
| 162 'type': 'static_library', | 99 'type': 'static_library', |
| 163 'variables': { | 100 'variables': { |
| 164 'nacl_target': 1, | 101 'nacl_target': 1, |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 405 'target_name': 'nacl_win64', | 342 'target_name': 'nacl_win64', |
| 406 'type': 'none', | 343 'type': 'none', |
| 407 'sources': [], | 344 'sources': [], |
| 408 }, | 345 }, |
| 409 ], | 346 ], |
| 410 }], | 347 }], |
| 411 ], | 348 ], |
| 412 }], | 349 }], |
| 413 ], | 350 ], |
| 414 } | 351 } |
| OLD | NEW |