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

Side by Side Diff: native_client_sdk/src/build_tools/build_sdk.py

Issue 164323003: Update NaCl SDK build for new location of irt_ppapi.h header file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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 | « no previous file | 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Entry point for both build and try bots. 6 """Entry point for both build and try bots.
7 7
8 This script is invoked from XXX, usually without arguments 8 This script is invoked from XXX, usually without arguments
9 to package an SDK. It automatically determines whether 9 to package an SDK. It automatically determines whether
10 this SDK is for mac, win, linux. 10 this SDK is for mac, win, linux.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 268
269 # Module 'os' has no 'symlink' member (on Windows). 269 # Module 'os' has no 'symlink' member (on Windows).
270 # pylint: disable=E1101 270 # pylint: disable=E1101
271 271
272 os.symlink('compiler-wrapper.py', os.path.join(bindir, 'i686-nacl-g++')) 272 os.symlink('compiler-wrapper.py', os.path.join(bindir, 'i686-nacl-g++'))
273 os.symlink('compiler-wrapper.py', os.path.join(bindir, 'i686-nacl-gcc')) 273 os.symlink('compiler-wrapper.py', os.path.join(bindir, 'i686-nacl-gcc'))
274 os.symlink('compiler-wrapper.py', os.path.join(bindir, 'i686-nacl-ar')) 274 os.symlink('compiler-wrapper.py', os.path.join(bindir, 'i686-nacl-ar'))
275 275
276 276
277 # List of toolchain headers to install. 277 # List of toolchain headers to install.
278 # Source is relative to native_client tree, destination is relative 278 # Source is relative to top of Chromium tree, destination is relative
279 # to the toolchain header directory. 279 # to the toolchain header directory.
280 NACL_HEADER_MAP = { 280 NACL_HEADER_MAP = {
281 'newlib': [ 281 'newlib': [
282 ('src/include/nacl/nacl_exception.h', 'nacl/'), 282 ('native_client/src/include/nacl/nacl_exception.h', 'nacl/'),
283 ('src/include/nacl/nacl_minidump.h', 'nacl/'), 283 ('native_client/src/include/nacl/nacl_minidump.h', 'nacl/'),
284 ('src/untrusted/irt/irt.h', ''), 284 ('native_client/src/untrusted/irt/irt.h', ''),
285 ('src/untrusted/irt/irt_dev.h', ''), 285 ('native_client/src/untrusted/irt/irt_dev.h', ''),
286 ('src/untrusted/irt/irt_ppapi.h', ''), 286 ('native_client/src/untrusted/nacl/nacl_dyncode.h', 'nacl/'),
287 ('src/untrusted/nacl/nacl_dyncode.h', 'nacl/'), 287 ('native_client/src/untrusted/nacl/nacl_startup.h', 'nacl/'),
288 ('src/untrusted/nacl/nacl_startup.h', 'nacl/'), 288 ('native_client/src/untrusted/nacl/nacl_thread.h', 'nacl/'),
289 ('src/untrusted/nacl/nacl_thread.h', 'nacl/'), 289 ('native_client/src/untrusted/pthread/pthread.h', ''),
290 ('src/untrusted/pthread/pthread.h', ''), 290 ('native_client/src/untrusted/pthread/semaphore.h', ''),
291 ('src/untrusted/pthread/semaphore.h', ''), 291 ('native_client/src/untrusted/valgrind/dynamic_annotations.h', 'nacl/'),
292 ('src/untrusted/valgrind/dynamic_annotations.h', 'nacl/'), 292 ('ppapi/nacl_irt/irt_ppapi.h', ''),
293 ], 293 ],
294 'glibc': [ 294 'glibc': [
295 ('src/include/nacl/nacl_exception.h', 'nacl/'), 295 ('native_client/src/include/nacl/nacl_exception.h', 'nacl/'),
296 ('src/include/nacl/nacl_minidump.h', 'nacl/'), 296 ('native_client/src/include/nacl/nacl_minidump.h', 'nacl/'),
297 ('src/untrusted/irt/irt.h', ''), 297 ('native_client/src/untrusted/irt/irt.h', ''),
298 ('src/untrusted/irt/irt_dev.h', ''), 298 ('native_client/src/untrusted/irt/irt_dev.h', ''),
299 ('src/untrusted/irt/irt_ppapi.h', ''), 299 ('native_client/src/untrusted/nacl/nacl_dyncode.h', 'nacl/'),
300 ('src/untrusted/nacl/nacl_dyncode.h', 'nacl/'), 300 ('native_client/src/untrusted/nacl/nacl_startup.h', 'nacl/'),
301 ('src/untrusted/nacl/nacl_startup.h', 'nacl/'), 301 ('native_client/src/untrusted/nacl/nacl_thread.h', 'nacl/'),
302 ('src/untrusted/nacl/nacl_thread.h', 'nacl/'), 302 ('native_client/src/untrusted/valgrind/dynamic_annotations.h', 'nacl/'),
303 ('src/untrusted/valgrind/dynamic_annotations.h', 'nacl/'), 303 ('ppapi/nacl_irt/irt_ppapi.h', ''),
304 ], 304 ],
305 'host': [] 305 'host': []
306 } 306 }
307 307
308 def InstallFiles(src_root, dest_root, file_list): 308 def InstallFiles(src_root, dest_root, file_list):
309 """Copy a set of files from src_root to dest_root according 309 """Copy a set of files from src_root to dest_root according
310 to the given mapping. This allows files to be copied from 310 to the given mapping. This allows files to be copied from
311 to a location in the destination tree that is different to the 311 to a location in the destination tree that is different to the
312 location in the source tree. 312 location in the source tree.
313 313
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 buildbot_common.CopyFile(source, dest) 348 buildbot_common.CopyFile(source, dest)
349 349
350 350
351 def InstallNaClHeaders(tc_dst_inc, tc_name): 351 def InstallNaClHeaders(tc_dst_inc, tc_name):
352 """Copies NaCl headers to expected locations in the toolchain.""" 352 """Copies NaCl headers to expected locations in the toolchain."""
353 if tc_name == 'arm': 353 if tc_name == 'arm':
354 # arm toolchain header should be the same as the x86 newlib 354 # arm toolchain header should be the same as the x86 newlib
355 # ones 355 # ones
356 tc_name = 'newlib' 356 tc_name = 'newlib'
357 357
358 InstallFiles(NACL_DIR, tc_dst_inc, NACL_HEADER_MAP[tc_name]) 358 InstallFiles(SRC_DIR, tc_dst_inc, NACL_HEADER_MAP[tc_name])
359 359
360 360
361 def MakeNinjaRelPath(path): 361 def MakeNinjaRelPath(path):
362 return os.path.join(os.path.relpath(OUT_DIR, SRC_DIR), path) 362 return os.path.join(os.path.relpath(OUT_DIR, SRC_DIR), path)
363 363
364 364
365 TOOLCHAIN_LIBS = { 365 TOOLCHAIN_LIBS = {
366 'newlib' : [ 366 'newlib' : [
367 'crti.o', 367 'crti.o',
368 'crtn.o', 368 'crtn.o',
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 BuildStepArchiveSDKTools() 995 BuildStepArchiveSDKTools()
996 996
997 return 0 997 return 0
998 998
999 999
1000 if __name__ == '__main__': 1000 if __name__ == '__main__':
1001 try: 1001 try:
1002 sys.exit(main(sys.argv)) 1002 sys.exit(main(sys.argv))
1003 except KeyboardInterrupt: 1003 except KeyboardInterrupt:
1004 buildbot_common.ErrorExit('build_sdk: interrupted') 1004 buildbot_common.ErrorExit('build_sdk: interrupted')
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698