Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: build/untrusted.gypi

Issue 8817001: Make a gyp file for the pnacl_irt_shim. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Move one gyp file to chrome Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/gyp_glob.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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': { 6 'variables': {
7 # See native_client/Sconstruct for more details. 7 # See native_client/Sconstruct for more details.
8 # Expected address for beginning of data in for the IRT. 8 # Expected address for beginning of data in for the IRT.
9 'NACL_IRT_DATA_START': '0x3ef00000', 9 'NACL_IRT_DATA_START': '0x3ef00000',
10 # Expected address for beginning of code in for the IRT. 10 # Expected address for beginning of code in for the IRT.
(...skipping 17 matching lines...) Expand all
28 'variables': { 28 'variables': {
29 'nexe_target': '', 29 'nexe_target': '',
30 'nlib_target': '', 30 'nlib_target': '',
31 'build_newlib': 0, 31 'build_newlib': 0,
32 'build_glibc': 0, 32 'build_glibc': 0,
33 'extra_args': [], 33 'extra_args': [],
34 'enable_x86_32': 1, 34 'enable_x86_32': 1,
35 'enable_x86_64': 1, 35 'enable_x86_64': 1,
36 'extra_deps64': [], 36 'extra_deps64': [],
37 'extra_deps32': [], 37 'extra_deps32': [],
38 # Separate the generated source from normal sources.
39 # Normal sources will be scanned for header dependencies
40 # using scan_sources.py, but generated sources will not be
41 # available in time for that to happen. Thus, we separate out
42 # generated sources and require that users list out the
43 # dependencies of the generated_sources manually.
44 'generated_sources': [],
45 'generated_src_deps': [],
38 'lib_dirs': [], 46 'lib_dirs': [],
39 'include_dirs': ['<(DEPTH)','<(DEPTH)/ppapi'], 47 'include_dirs': ['<(DEPTH)','<(DEPTH)/ppapi'],
40 'defines': [ 48 'defines': [
41 '-DNACL_BLOCK_SHIFT=5', 49 '-DNACL_BLOCK_SHIFT=5',
42 '-DNACL_BLOCK_SIZE=32', 50 '-DNACL_BLOCK_SIZE=32',
43 '-DNACL_BUILD_ARCH=x86', 51 '-DNACL_BUILD_ARCH=x86',
44 '-D__linux__', 52 '-D__linux__',
45 '-D__STDC_LIMIT_MACROS=1', 53 '-D__STDC_LIMIT_MACROS=1',
46 '-D__STDC_FORMAT_MACROS=1', 54 '-D__STDC_FORMAT_MACROS=1',
47 '-D_GNU_SOURCE=1', 55 '-D_GNU_SOURCE=1',
(...skipping 28 matching lines...) Expand all
76 }, 84 },
77 'actions': [ 85 'actions': [
78 { 86 {
79 'action_name': 'build newlib x86-64 nexe', 87 'action_name': 'build newlib x86-64 nexe',
80 'msvs_cygwin_shell': 0, 88 'msvs_cygwin_shell': 0,
81 'description': 'building >(out64)', 89 'description': 'building >(out64)',
82 'inputs': [ 90 'inputs': [
83 '<(DEPTH)/native_client/build/build_nexe.py', 91 '<(DEPTH)/native_client/build/build_nexe.py',
84 '<(DEPTH)/ppapi/ppapi_cpp.gypi', 92 '<(DEPTH)/ppapi/ppapi_cpp.gypi',
85 '>!@(>(get_sources) -I. -I.. >(sources))', 93 '>!@(>(get_sources) -I. -I.. >(sources))',
94 '>@(generated_sources)',
95 '>@(generated_src_deps)',
86 '>@(extra_deps64)', 96 '>@(extra_deps64)',
87 ], 97 ],
88 'outputs': ['>(out64)'], 98 'outputs': ['>(out64)'],
89 'action': [ 99 'action': [
90 '>(python_exe)', 100 '>(python_exe)',
91 '<(DEPTH)/native_client/build/build_nexe.py', 101 '<(DEPTH)/native_client/build/build_nexe.py',
92 '>@(extra_args)', 102 '>@(extra_args)',
93 '--arch', 'x86-64', 103 '--arch', 'x86-64',
94 '--build', 'newlib_nexe', 104 '--build', 'newlib_nexe',
95 '--root', '<(DEPTH)', 105 '--root', '<(DEPTH)',
96 '--name', '>(out64)', 106 '--name', '>(out64)',
97 '--objdir', '>(objdir)', 107 '--objdir', '>(objdir)',
98 '--include-dirs', '>(inst_dir)/include >(include_dirs) >(incl ude_dirs)', 108 '--include-dirs', '>(inst_dir)/include >(include_dirs) >(incl ude_dirs)',
99 '--lib-dirs', '>(lib_dirs) ', 109 '--lib-dirs', '>(lib_dirs) ',
100 '--compile_flags', '-m64 >@(compile_flags) ', 110 '--compile_flags', '-m64 >@(compile_flags) ',
101 '>@(defines)', '-DNACL_BUILD_SUBARCH=64', 111 '>@(defines)', '-DNACL_BUILD_SUBARCH=64',
102 '--link_flags', '-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64 >(link_flags) ', 112 '--link_flags', '-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64 >(link_flags) ',
103 '>@(sources)', 113 '>@(sources)',
114 '>@(generated_sources)',
104 ], 115 ],
105 }, 116 },
106 ], 117 ],
107 }], 118 }],
108 ], 119 ],
109 }, 120 },
110 }], 121 }],
111 ['target_arch=="x64" or OS=="win"', { 122 ['target_arch=="x64" or OS=="win"', {
112 'target_defaults': { 123 'target_defaults': {
113 'target_conditions': [ 124 'target_conditions': [
114 ['nlib_target!="" and build_newlib!=0 and enable_x86_64!=0', { 125 ['nlib_target!="" and build_newlib!=0 and enable_x86_64!=0', {
115 'variables': { 126 'variables': {
116 'tool_name': 'newlib', 127 'tool_name': 'newlib',
117 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib', 128 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib',
118 'objdir%': '>(INTERMEDIATE_DIR)/>(tool_name)-x86-64/>(_target_na me)', 129 'objdir%': '>(INTERMEDIATE_DIR)/>(tool_name)-x86-64/>(_target_na me)',
119 'out64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib64/>(nl ib_target)', 130 'out64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib64/>(nl ib_target)',
120 }, 131 },
121 'actions': [ 132 'actions': [
122 { 133 {
123 'action_name': 'build newlib x86-64 nlib', 134 'action_name': 'build newlib x86-64 nlib',
124 'msvs_cygwin_shell': 0, 135 'msvs_cygwin_shell': 0,
125 'description': 'building >(out64)', 136 'description': 'building >(out64)',
126 'inputs': [ 137 'inputs': [
127 '<(DEPTH)/native_client/build/build_nexe.py', 138 '<(DEPTH)/native_client/build/build_nexe.py',
128 '<(DEPTH)/ppapi/ppapi_cpp.gypi', 139 '<(DEPTH)/ppapi/ppapi_cpp.gypi',
129 '>!@(>(get_sources) -I. -I.. >(sources))', 140 '>!@(>(get_sources) -I. -I.. >(sources))',
141 '>@(generated_sources)',
142 '>@(generated_src_deps)',
130 '>@(extra_deps64)', 143 '>@(extra_deps64)',
131 ], 144 ],
132 'outputs': ['>(out64)'], 145 'outputs': ['>(out64)'],
133 'action': [ 146 'action': [
134 '>(python_exe)', 147 '>(python_exe)',
135 '<(DEPTH)/native_client/build/build_nexe.py', 148 '<(DEPTH)/native_client/build/build_nexe.py',
136 '>@(extra_args)', 149 '>@(extra_args)',
137 '--arch', 'x86-64', 150 '--arch', 'x86-64',
138 '--build', 'newlib_nlib', 151 '--build', 'newlib_nlib',
139 '--root', '<(DEPTH)', 152 '--root', '<(DEPTH)',
140 '--name', '>(out64)', 153 '--name', '>(out64)',
141 '--objdir', '>(objdir)', 154 '--objdir', '>(objdir)',
142 '--include-dirs', '>(inst_dir)/include >(include_dirs) >(incl ude_dirs)', 155 '--include-dirs', '>(inst_dir)/include >(include_dirs) >(incl ude_dirs)',
143 '--lib-dirs', '>(lib_dirs) ', 156 '--lib-dirs', '>(lib_dirs) ',
144 '--compile_flags', ' -m64 >@(compile_flags)', 157 '--compile_flags', ' -m64 >@(compile_flags)',
145 '>@(defines)', '-DNACL_BUILD_SUBARCH=64', 158 '>@(defines)', '-DNACL_BUILD_SUBARCH=64',
146 '--link_flags', '-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64 >(link_flags)', 159 '--link_flags', '-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64 >(link_flags)',
147 '>@(sources)', 160 '>@(sources)',
161 '>@(generated_sources)',
148 ], 162 ],
149 }, 163 },
150 ], 164 ],
151 }], 165 }],
152 ], 166 ],
153 }, 167 },
154 }], 168 }],
155 ['target_arch=="ia32"', { 169 ['target_arch=="ia32"', {
156 'target_defaults': { 170 'target_defaults': {
157 'target_conditions': [ 171 'target_conditions': [
158 ['nexe_target!="" and build_newlib!=0 and enable_x86_32!=0', { 172 ['nexe_target!="" and build_newlib!=0 and enable_x86_32!=0', {
159 'variables': { 173 'variables': {
160 'tool_name': 'newlib', 174 'tool_name': 'newlib',
161 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib', 175 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib',
162 'out32%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_x32.nexe', 176 'out32%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_x32.nexe',
163 'objdir%': '>(INTERMEDIATE_DIR)/>(tool_name)-x86-32/>(_target_na me)', 177 'objdir%': '>(INTERMEDIATE_DIR)/>(tool_name)-x86-32/>(_target_na me)',
164 }, 178 },
165 'actions': [ 179 'actions': [
166 { 180 {
167 'action_name': 'build newlib x86-32 nexe', 181 'action_name': 'build newlib x86-32 nexe',
168 'msvs_cygwin_shell': 0, 182 'msvs_cygwin_shell': 0,
169 'description': 'building >(out32)', 183 'description': 'building >(out32)',
170 'inputs': [ 184 'inputs': [
171 '<(DEPTH)/native_client/build/build_nexe.py', 185 '<(DEPTH)/native_client/build/build_nexe.py',
172 '<(DEPTH)/ppapi/ppapi_cpp.gypi', 186 '<(DEPTH)/ppapi/ppapi_cpp.gypi',
173 '>!@(>(get_sources) -I. -I.. >(sources))', 187 '>!@(>(get_sources) -I. -I.. >(sources))',
188 '>@(generated_sources)',
189 '>@(generated_src_deps)',
174 '>@(extra_deps32)', 190 '>@(extra_deps32)',
175 ], 191 ],
176 'outputs': ['>(out32)'], 192 'outputs': ['>(out32)'],
177 'action': [ 193 'action': [
178 '>(python_exe)', 194 '>(python_exe)',
179 '<(DEPTH)/native_client/build/build_nexe.py', 195 '<(DEPTH)/native_client/build/build_nexe.py',
180 '>@(extra_args)', 196 '>@(extra_args)',
181 '--arch', 'x86-32', 197 '--arch', 'x86-32',
182 '--build', 'newlib_nexe', 198 '--build', 'newlib_nexe',
183 '--root', '<(DEPTH)', 199 '--root', '<(DEPTH)',
184 '--name', '>(out32)', 200 '--name', '>(out32)',
185 '--objdir', '>(objdir)', 201 '--objdir', '>(objdir)',
186 '--include-dirs', '>(inst_dir)/include >(include_dirs) >(incl ude_dirs)', 202 '--include-dirs', '>(inst_dir)/include >(include_dirs) >(incl ude_dirs)',
187 '--lib-dirs', '>(lib_dirs) ', 203 '--lib-dirs', '>(lib_dirs) ',
188 '--compile_flags', '-m32 >@(compile_flags)', 204 '--compile_flags', '-m32 >@(compile_flags)',
189 '>@(defines)', '-DNACL_BUILD_SUBARCH=32', 205 '>@(defines)', '-DNACL_BUILD_SUBARCH=32',
190 '--link_flags', '-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/ lib32 >(link_flags)', 206 '--link_flags', '-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/ lib32 >(link_flags)',
191 '>@(sources)', 207 '>@(sources)',
208 '>@(generated_sources)',
192 ], 209 ],
193 }, 210 },
194 ], 211 ],
195 }], 212 }],
196 ], 213 ],
197 }, 214 },
198 }], 215 }],
199 ['target_arch=="ia32"', { 216 ['target_arch=="ia32"', {
200 'target_defaults': { 217 'target_defaults': {
201 'target_conditions': [ 218 'target_conditions': [
202 ['nlib_target!="" and build_newlib!=0 and enable_x86_32!=0', { 219 ['nlib_target!="" and build_newlib!=0 and enable_x86_32!=0', {
203 'variables': { 220 'variables': {
204 'tool_name': 'newlib', 221 'tool_name': 'newlib',
205 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib', 222 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib',
206 'out32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib32/>(nl ib_target)', 223 'out32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib32/>(nl ib_target)',
207 'objdir%': '>(INTERMEDIATE_DIR)/>(tool_name)-x86-32/>(_target_na me)', 224 'objdir%': '>(INTERMEDIATE_DIR)/>(tool_name)-x86-32/>(_target_na me)',
208 }, 225 },
209 'actions': [ 226 'actions': [
210 { 227 {
211 'action_name': 'build newlib x86-32 nlib', 228 'action_name': 'build newlib x86-32 nlib',
212 'msvs_cygwin_shell': 0, 229 'msvs_cygwin_shell': 0,
213 'description': 'building >(out32)', 230 'description': 'building >(out32)',
214 'inputs': [ 231 'inputs': [
215 '<(DEPTH)/native_client/build/build_nexe.py', 232 '<(DEPTH)/native_client/build/build_nexe.py',
216 '<(DEPTH)/ppapi/ppapi_cpp.gypi', 233 '<(DEPTH)/ppapi/ppapi_cpp.gypi',
217 '>!@(>(get_sources) -I. -I.. >(sources))', 234 '>!@(>(get_sources) -I. -I.. >(sources))',
235 '>@(generated_sources)',
236 '>@(generated_src_deps)',
218 '>@(extra_deps32)', 237 '>@(extra_deps32)',
219 ], 238 ],
220 'outputs': ['>(out32)'], 239 'outputs': ['>(out32)'],
221 'action': [ 240 'action': [
222 '>(python_exe)', 241 '>(python_exe)',
223 '<(DEPTH)/native_client/build/build_nexe.py', 242 '<(DEPTH)/native_client/build/build_nexe.py',
224 '>@(extra_args)', 243 '>@(extra_args)',
225 '--arch', 'x86-32', 244 '--arch', 'x86-32',
226 '--build', 'newlib_nlib', 245 '--build', 'newlib_nlib',
227 '--root', '<(DEPTH)', 246 '--root', '<(DEPTH)',
228 '--name', '>(out32)', 247 '--name', '>(out32)',
229 '--objdir', '>(objdir)', 248 '--objdir', '>(objdir)',
230 '--include-dirs', '>(inst_dir)/include >(include_dirs) >(incl ude_dirs)', 249 '--include-dirs', '>(inst_dir)/include >(include_dirs) >(incl ude_dirs)',
231 '--lib-dirs', '>(lib_dirs) ', 250 '--lib-dirs', '>(lib_dirs) ',
232 '--compile_flags', '-m32 >@(compile_flags)', 251 '--compile_flags', '-m32 >@(compile_flags)',
233 '>@(defines)', '-DNACL_BUILD_SUBARCH=32', 252 '>@(defines)', '-DNACL_BUILD_SUBARCH=32',
234 '--link_flags', '-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/ lib32 >(link_flags)', 253 '--link_flags', '-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/ lib32 >(link_flags)',
235 '>@(sources)', 254 '>@(sources)',
255 '>@(generated_sources)',
236 ], 256 ],
237 }, 257 },
238 ], 258 ],
239 }], 259 }],
240 ], 260 ],
241 }, 261 },
242 }], 262 }],
243 ], 263 ],
244 } 264 }
OLDNEW
« no previous file with comments | « build/gyp_glob.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698