diff options
author | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-19 21:24:03 +0000 |
---|---|---|
committer | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-19 21:24:03 +0000 |
commit | 511833408f73cacc044db20a5e8bb57bdc329e14 (patch) | |
tree | 90dda1a8746b02e8b869392c8f5f124d702fbb72 /native_client_sdk | |
parent | 806b5234f0d9c1d695ddcea6932607997be8c645 (diff) | |
download | chromium_src-511833408f73cacc044db20a5e8bb57bdc329e14.zip chromium_src-511833408f73cacc044db20a5e8bb57bdc329e14.tar.gz chromium_src-511833408f73cacc044db20a5e8bb57bdc329e14.tar.bz2 |
Revert 168603 - Beginnings of moving more stuff from build_sdk.py to GYP.
Adds a new target to all.gyp: chromium_builder_nacl_sdk
Adds a native_client_sdk gyp file: it depends on nacl_core_sdk from the
native_client repo, but also builds and copies ppapi libraries to the toolchain
directories.
Retry of http://codereview.chromium.org/11363045/
This originally failed here: http://build.chromium.org/p/chromium/builders/Linux%20x64/builds/41342
With the following error:
init.c:(.text+0x3c): undefined reference to `__libc_setup_tls'
init.c:(.text+0x2e2): undefined reference to `_dl_init_static_tls'
init.c:(.text+0x2ec): undefined reference to `_dl_wait_lookup_done'
While building simple_glibc_x86_32.nexe.
My change seems to have tickled a bug in nacl_browser_test.gypi which was using
the link flag -lpthread instead of -pthread. Changing this seems to have fixed
the link failure.
BUG=none
TBR=noelallen@chromium.org
TBR=ncbray@chromium.org
Review URL: https://codereview.chromium.org/11280063
TBR=binji@chromium.org
Review URL: https://codereview.chromium.org/11299081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168607 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/build_tools/nacl_ppapi_sdk.gyp | 130 |
1 files changed, 0 insertions, 130 deletions
diff --git a/native_client_sdk/src/build_tools/nacl_ppapi_sdk.gyp b/native_client_sdk/src/build_tools/nacl_ppapi_sdk.gyp deleted file mode 100644 index 29aa1ba..0000000 --- a/native_client_sdk/src/build_tools/nacl_ppapi_sdk.gyp +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright (c) 2012 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'targets': [ - { - 'target_name': 'nacl_ppapi_sdk', - 'type': 'none', - 'dependencies': [ - '../../../native_client/build/nacl_core_sdk.gyp:nacl_core_sdk', - '../../../ppapi/native_client/native_client.gyp:ppapi_lib', - '../../../ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:pnacl_irt_shim', - '../../../ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib', - '../../../ppapi/ppapi_untrusted.gyp:ppapi_gles2_lib', - ], - 'conditions': [ - ['target_arch!="arm"', { - 'copies': [ - # Newlib headers - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/x86_64-nacl/include', - 'files': [ - '../../../native_client/src/untrusted/irt/irt.h', - '../../../native_client/src/untrusted/irt/irt_ppapi.h', - '../../../native_client/src/untrusted/pthread/pthread.h', - '../../../native_client/src/untrusted/pthread/semaphore.h', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/x86_64-nacl/include/nacl', - 'files': [ - '../../../native_client/src/untrusted/nacl/nacl_dyncode.h', - '../../../native_client/src/untrusted/nacl/nacl_startup.h', - '../../../native_client/src/untrusted/nacl/nacl_thread.h', - ], - }, - # Glibc headers - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_glibc/x86_64-nacl/include', - 'files': [ - '../../../native_client/src/untrusted/irt/irt.h', - '../../../native_client/src/untrusted/irt/irt_ppapi.h', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_glibc/x86_64-nacl/include/nacl', - 'files': [ - '../../../native_client/src/untrusted/nacl/nacl_dyncode.h', - '../../../native_client/src/untrusted/nacl/nacl_startup.h', - '../../../native_client/src/untrusted/nacl/nacl_thread.h', - ], - }, - # PNaCl Newlib headers - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_pnacl/newlib/sdk/include', - 'files': [ - '../../../native_client/src/untrusted/irt/irt.h', - '../../../native_client/src/untrusted/irt/irt_ppapi.h', - '../../../native_client/src/untrusted/nacl/pnacl.h', - '../../../native_client/src/untrusted/pthread/pthread.h', - '../../../native_client/src/untrusted/pthread/semaphore.h', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_pnacl/newlib/sdk/include/nacl', - 'files': [ - '../../../native_client/src/untrusted/nacl/nacl_dyncode.h', - '../../../native_client/src/untrusted/nacl/nacl_startup.h', - '../../../native_client/src/untrusted/nacl/nacl_thread.h', - ], - }, - # Newlib libs - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/x86_64-nacl/lib32', - 'files': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_cpp.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_gles2.a', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/x86_64-nacl/lib', - 'files': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_cpp.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_gles2.a', - ], - }, - # Glibc libs - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_glibc/x86_64-nacl/lib32', - 'files': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_cpp.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_gles2.a', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_glibc/x86_64-nacl/lib', - 'files': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_cpp.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_gles2.a', - ], - }, - # PNaCl IRT shim - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_pnacl/lib-x86-64', - 'files': [ - '<(PRODUCT_DIR)/libpnacl_irt_shim.a', - ], - }, - ], - }], - ['target_arch=="arm"', { - 'copies': [ - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_pnacl/lib-arm', - 'files': [ - '<(PRODUCT_DIR)/libpnacl_irt_shim.a', - ], - }, - ], - }], - ], - }, - ], -} - |