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', |
62 }, | 67 }, |
63 'dependencies': [ | 68 'dependencies': [ |
64 # TODO(gregoryd): chrome_resources and chrome_strings could be | 69 # TODO(gregoryd): chrome_resources and chrome_strings could be |
65 # shared with the 64-bit target, but it does not work due to a gyp | 70 # shared with the 64-bit target, but it does not work due to a gyp |
66 #issue | 71 #issue |
67 'chrome_resources', | 72 'chrome_resources', |
68 'chrome_strings', | 73 'chrome_strings', |
69 'common', | 74 'common', |
70 '../webkit/support/webkit_support.gyp:glue', | 75 '../webkit/support/webkit_support.gyp:glue', |
71 '../native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome
', | 76 '../native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome
', |
72 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel', | 77 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel', |
73 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:plat
form_qual_lib', | 78 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:plat
form_qual_lib', |
74 ], | 79 ], |
75 'direct_dependent_settings': { | 80 'direct_dependent_settings': { |
76 'defines': [ | 81 'defines': [ |
77 'NACL_BLOCK_SHIFT=5', | 82 'NACL_BLOCK_SHIFT=5', |
78 'NACL_BLOCK_SIZE=32', | 83 'NACL_BLOCK_SIZE=32', |
79 '<@(nacl_defines)', | 84 '<@(nacl_defines)', |
80 ], | 85 ], |
81 }, | 86 }, |
82 'conditions': [ | 87 'conditions': [ |
83 ['target_arch=="ia32"', { | 88 ['OS=="win"', { |
84 'copies': [ | 89 # Windows needs both the x86-32 and x86-64 IRT. |
85 { | 90 'actions': [ |
86 'destination': '<(PRODUCT_DIR)', | 91 { |
87 'files': [ | 92 'action_name': 'nacl_irt', |
88 '../native_client/irt_binaries/nacl_irt_x86_32.nexe', | 93 'message': 'Building NaCl IRT', |
89 ], | 94 'inputs': [ |
90 }, | 95 '<!@(<(irt_inputs_cmd) --platform=x86-32 --platform=x86-64)', |
91 ], | 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 ], |
92 }], | 106 }], |
93 ['target_arch=="x64" or OS=="win"', { | 107 ['OS!="win" and target_arch=="ia32"', { |
94 'copies': [ | 108 # Linux-x86-32 and OSX need only the x86-32 IRT. |
95 { | 109 'actions': [ |
96 'destination': '<(PRODUCT_DIR)', | 110 { |
97 'files': [ | 111 'action_name': 'nacl_irt', |
98 '../native_client/irt_binaries/nacl_irt_x86_64.nexe', | 112 'message': 'Building NaCl IRT', |
99 ], | 113 'inputs': [ |
100 }, | 114 '<!@(<(irt_inputs_cmd) --platform=x86-32)', |
101 ], | 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 ], |
102 }], | 138 }], |
103 ], | 139 ], |
104 }, | 140 }, |
105 ], | 141 ], |
106 'conditions': [ | 142 'conditions': [ |
107 ['OS=="win"', { | 143 ['OS=="win"', { |
108 'targets': [ | 144 'targets': [ |
109 { | 145 { |
110 'target_name': 'nacl_win64', | 146 'target_name': 'nacl_win64', |
111 'type': 'static_library', | 147 'type': 'static_library', |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 # reference nacl_helper as a shared library | 230 # reference nacl_helper as a shared library |
195 '<(PRODUCT_DIR)/nacl_helper.so', | 231 '<(PRODUCT_DIR)/nacl_helper.so', |
196 '-Wl,-rpath,<(SHARED_LIB_DIR)', | 232 '-Wl,-rpath,<(SHARED_LIB_DIR)', |
197 ], | 233 ], |
198 }, | 234 }, |
199 }, | 235 }, |
200 ], | 236 ], |
201 }], | 237 }], |
202 ], | 238 ], |
203 } | 239 } |
OLD | NEW |