diff options
author | dschuff@chromium.org <dschuff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-04 06:32:21 +0000 |
---|---|---|
committer | dschuff@chromium.org <dschuff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-04 06:32:21 +0000 |
commit | c5707ee6e2afe3d2c40b28b62f8d55dd7885a808 (patch) | |
tree | d57be773d7928387863ec571012ed3d28eb0e971 | |
parent | b8a46fba93af033b82bd8890ffae01ee4791b0c4 (diff) | |
download | chromium_src-c5707ee6e2afe3d2c40b28b62f8d55dd7885a808.zip chromium_src-c5707ee6e2afe3d2c40b28b62f8d55dd7885a808.tar.gz chromium_src-c5707ee6e2afe3d2c40b28b62f8d55dd7885a808.tar.bz2 |
Use gyp variables for NaCl untrusted build paths instead of hardcoding them.
Add the build_irt variable to targets which are part of the NaCl IRT.
The aim of this CL is to enable the IRT to use untrusted library builds
which are separate from those linked into testing nexes and the NaCl
SDK, and ultimately to allow a different compiler to be used to build them.
These libraries get an extra build_irt variable which will cause them to
be built an extra time for the IRT. This is a prerequisite for NaCl CL
https://codereview.chromium.org/21362004
to be DEPSed into Chrome, after which the build_newlib variable for most
of them can go away (most libraries only need to go into the IRT or into
the SDK/test nexes, but not both).
R=bradnelson@google.com
TBR=dmichael@chromium.org,brettw@chromium.org,piman@chromium.org,fischman@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3577
Review URL: https://chromiumcodereview.appspot.com/21898006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215530 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/base_untrusted.gyp | 1 | ||||
-rw-r--r-- | components/tracing_untrusted.gyp | 1 | ||||
-rw-r--r-- | gpu/command_buffer/command_buffer_untrusted.gyp | 1 | ||||
-rw-r--r-- | gpu/gpu_untrusted.gyp | 5 | ||||
-rw-r--r-- | ipc/ipc_untrusted.gyp | 1 | ||||
-rw-r--r-- | media/media_untrusted.gyp | 1 | ||||
-rw-r--r-- | ppapi/native_client/native_client.gyp | 303 | ||||
-rw-r--r-- | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp | 6 | ||||
-rw-r--r-- | ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp | 20 | ||||
-rw-r--r-- | ppapi/ppapi_ipc_untrusted.gyp | 1 | ||||
-rw-r--r-- | ppapi/ppapi_nacl_test_common.gypi | 4 | ||||
-rw-r--r-- | ppapi/ppapi_proxy_untrusted.gyp | 1 | ||||
-rw-r--r-- | ppapi/ppapi_shared_untrusted.gyp | 1 | ||||
-rw-r--r-- | ppapi/ppapi_untrusted.gyp | 56 |
14 files changed, 177 insertions, 225 deletions
diff --git a/base/base_untrusted.gyp b/base/base_untrusted.gyp index fc088f8..e4b005b 100644 --- a/base/base_untrusted.gyp +++ b/base/base_untrusted.gyp @@ -22,6 +22,7 @@ 'nlib_target': 'libbase_untrusted.a', 'build_glibc': 1, 'build_newlib': 1, + 'build_irt': 1, 'sources': [ 'base_switches.cc', 'base_switches.h', diff --git a/components/tracing_untrusted.gyp b/components/tracing_untrusted.gyp index ff3e720..f2215de 100644 --- a/components/tracing_untrusted.gyp +++ b/components/tracing_untrusted.gyp @@ -27,6 +27,7 @@ 'nlib_target': 'libtracing_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'sources': [ 'tracing/child_trace_message_filter.cc', diff --git a/gpu/command_buffer/command_buffer_untrusted.gyp b/gpu/command_buffer/command_buffer_untrusted.gyp index 5fe47f3..8f27a0b 100644 --- a/gpu/command_buffer/command_buffer_untrusted.gyp +++ b/gpu/command_buffer/command_buffer_untrusted.gyp @@ -22,6 +22,7 @@ 'nlib_target': 'libgles2_utils_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'dependencies': [ '../../native_client/tools.gyp:prep_toolchain', diff --git a/gpu/gpu_untrusted.gyp b/gpu/gpu_untrusted.gyp index a6e502f..a1f755c 100644 --- a/gpu/gpu_untrusted.gyp +++ b/gpu/gpu_untrusted.gyp @@ -23,6 +23,7 @@ 'nlib_target': 'libgles2_implementation_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'defines': [ 'GLES2_IMPL_IMPLEMENTATION', @@ -46,6 +47,7 @@ 'nlib_target': 'libcommand_buffer_common_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'includes': [ 'command_buffer_common.gypi', @@ -64,6 +66,7 @@ 'nlib_target': 'libgles2_cmd_helper_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'includes': [ 'gles2_cmd_helper.gypi', @@ -82,6 +85,7 @@ 'nlib_target': 'libcommand_buffer_client_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'includes': [ 'command_buffer_client.gypi', @@ -100,6 +104,7 @@ 'nlib_target': 'libgpu_ipc_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'includes': [ 'gpu_ipc.gypi', diff --git a/ipc/ipc_untrusted.gyp b/ipc/ipc_untrusted.gyp index 00f91b8..a502548 100644 --- a/ipc/ipc_untrusted.gyp +++ b/ipc/ipc_untrusted.gyp @@ -22,6 +22,7 @@ 'nlib_target': 'libipc_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'dependencies': [ '<(DEPTH)/native_client/tools.gyp:prep_toolchain', diff --git a/media/media_untrusted.gyp b/media/media_untrusted.gyp index 4abbe56..dade625 100644 --- a/media/media_untrusted.gyp +++ b/media/media_untrusted.gyp @@ -20,6 +20,7 @@ 'nlib_target': 'libshared_memory_support_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'dependencies': [ '../native_client/tools.gyp:prep_toolchain', diff --git a/ppapi/native_client/native_client.gyp b/ppapi/native_client/native_client.gyp index fdbb936..5ab5619 100644 --- a/ppapi/native_client/native_client.gyp +++ b/ppapi/native_client/native_client.gyp @@ -21,60 +21,71 @@ ], 'copies': [ { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include/nacl', + 'destination': '>(tc_include_dir_newlib)/nacl', 'files': [ 'src/trusted/weak_ref/call_on_main_thread.h', 'src/shared/ppapi_proxy/ppruntime.h', ], }, + { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/include/nacl', - 'files': [ - 'src/trusted/weak_ref/call_on_main_thread.h', - 'src/shared/ppapi_proxy/ppruntime.h', - ], - }, - # Here we copy linker scripts out of the Native Client repository. - # These are source, not build artifacts. - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32', - 'files': [ - 'src/untrusted/irt_stub/libppapi.a', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64', - 'files': [ - 'src/untrusted/irt_stub/libppapi.a', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32', - 'files': [ - 'src/untrusted/irt_stub/libppapi.a', - 'src/untrusted/irt_stub/libppapi.so', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64', - 'files': [ - 'src/untrusted/irt_stub/libppapi.a', - 'src/untrusted/irt_stub/libppapi.so', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', - 'files': [ - 'src/untrusted/irt_stub/libppapi.a', - ], - }, - { - 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib', + 'destination': '>(tc_lib_dir_pnacl_newlib)', 'files': [ 'src/untrusted/irt_stub/libppapi.a', ], }, ], + 'conditions': [ + ['target_arch!="arm"', { + 'copies': [ + { + 'destination': '>(tc_include_dir_glibc)/include/nacl', + 'files': [ + 'src/trusted/weak_ref/call_on_main_thread.h', + 'src/shared/ppapi_proxy/ppruntime.h', + ], + }, + # Here we copy linker scripts out of the Native Client repo.. + # These are source, not build artifacts. + { + 'destination': '>(tc_lib_dir_newlib32)', + 'files': [ + 'src/untrusted/irt_stub/libppapi.a', + ], + }, + { + 'destination': '>(tc_lib_dir_newlib64)', + 'files': [ + 'src/untrusted/irt_stub/libppapi.a', + ], + }, + { + 'destination': '>(tc_lib_dir_glibc32)', + 'files': [ + 'src/untrusted/irt_stub/libppapi.a', + 'src/untrusted/irt_stub/libppapi.so', + ], + }, + { + 'destination': '>(tc_lib_dir_glibc64)', + 'files': [ + 'src/untrusted/irt_stub/libppapi.a', + 'src/untrusted/irt_stub/libppapi.so', + ], + }, + ] + }], + ['target_arch=="arm"', { + 'copies': [ + { + 'destination': '>(tc_lib_dir_newlib_arm)', + 'files': [ + 'src/untrusted/irt_stub/libppapi.a', + ], + }, + ] + }] + ], }, { 'target_name': 'nacl_irt', @@ -136,147 +147,71 @@ 'extra_args': [ '--strip-all', ], - # TODO(bradchen): get rid of extra_deps64 and extra_deps32 - # once native_client/build/untrusted.gypi no longer needs them. - 'extra_deps64': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgles2_implementation_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libcommand_buffer_client_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libcommand_buffer_common_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgpu_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libtracing_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgles2_cmd_helper_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgles2_utils_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libshared_memory_support_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', - ], - 'extra_deps32': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_proxy_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_shared_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgles2_implementation_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libcommand_buffer_client_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libcommand_buffer_common_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgpu_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libtracing_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgles2_cmd_helper_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgles2_utils_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libshared_memory_support_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', - ], - 'extra_deps_newlib64': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgles2_implementation_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libcommand_buffer_client_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libcommand_buffer_common_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgpu_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libtracing_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgles2_cmd_helper_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgles2_utils_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libshared_memory_support_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', - ], - 'extra_deps_newlib32': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_proxy_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_shared_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgles2_implementation_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libcommand_buffer_client_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libcommand_buffer_common_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgpu_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libtracing_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgles2_cmd_helper_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgles2_utils_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libshared_memory_support_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', - ], - 'extra_deps_glibc64': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_proxy_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_shared_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgles2_implementation_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libcommand_buffer_client_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libcommand_buffer_common_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgpu_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libtracing_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgles2_cmd_helper_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgles2_utils_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libbase_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libirt_browser.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libshared_memory_support_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libsrpc.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libplatform.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libimc_syscalls.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgio.a', - ], - 'extra_deps_glibc32': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_proxy_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_shared_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgles2_implementation_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libcommand_buffer_client_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libcommand_buffer_common_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgpu_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libtracing_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgles2_cmd_helper_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgles2_utils_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libbase_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libirt_browser.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libshared_memory_support_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libsrpc.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libplatform.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libimc_syscalls.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgio.a', - ], - 'extra_deps_arm': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_proxy_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_shared_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgles2_implementation_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libcommand_buffer_client_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libcommand_buffer_common_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgpu_ipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libtracing_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgles2_cmd_helper_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgles2_utils_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libipc_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libbase_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libirt_browser.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libshared_memory_support_untrusted.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libsrpc.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a', + 'conditions': [ + ['target_arch!="arm"', { + 'extra_deps_newlib64': [ + '>(tc_lib_dir_irt64)/libppapi_proxy_untrusted.a', + '>(tc_lib_dir_irt64)/libppapi_ipc_untrusted.a', + '>(tc_lib_dir_irt64)/libppapi_shared_untrusted.a', + '>(tc_lib_dir_irt64)/libgles2_implementation_untrusted.a', + '>(tc_lib_dir_irt64)/libcommand_buffer_client_untrusted.a', + '>(tc_lib_dir_irt64)/libcommand_buffer_common_untrusted.a', + '>(tc_lib_dir_irt64)/libgpu_ipc_untrusted.a', + '>(tc_lib_dir_irt64)/libtracing_untrusted.a', + '>(tc_lib_dir_irt64)/libgles2_cmd_helper_untrusted.a', + '>(tc_lib_dir_irt64)/libgles2_utils_untrusted.a', + '>(tc_lib_dir_irt64)/libipc_untrusted.a', + '>(tc_lib_dir_irt64)/libbase_untrusted.a', + '>(tc_lib_dir_irt64)/libirt_browser.a', + '>(tc_lib_dir_irt64)/libshared_memory_support_untrusted.a', + '>(tc_lib_dir_irt64)/libsrpc.a', + '>(tc_lib_dir_irt64)/libplatform.a', + '>(tc_lib_dir_irt64)/libimc_syscalls.a', + '>(tc_lib_dir_irt64)/libgio.a', + ], + 'extra_deps_newlib32': [ + '>(tc_lib_dir_irt32)/libppapi_proxy_untrusted.a', + '>(tc_lib_dir_irt32)/libppapi_ipc_untrusted.a', + '>(tc_lib_dir_irt32)/libppapi_shared_untrusted.a', + '>(tc_lib_dir_irt32)/libgles2_implementation_untrusted.a', + '>(tc_lib_dir_irt32)/libcommand_buffer_client_untrusted.a', + '>(tc_lib_dir_irt32)/libcommand_buffer_common_untrusted.a', + '>(tc_lib_dir_irt32)/libgpu_ipc_untrusted.a', + '>(tc_lib_dir_irt32)/libtracing_untrusted.a', + '>(tc_lib_dir_irt32)/libgles2_cmd_helper_untrusted.a', + '>(tc_lib_dir_irt32)/libgles2_utils_untrusted.a', + '>(tc_lib_dir_irt32)/libipc_untrusted.a', + '>(tc_lib_dir_irt32)/libbase_untrusted.a', + '>(tc_lib_dir_irt32)/libirt_browser.a', + '>(tc_lib_dir_irt32)/libshared_memory_support_untrusted.a', + '>(tc_lib_dir_irt32)/libsrpc.a', + '>(tc_lib_dir_irt32)/libplatform.a', + '>(tc_lib_dir_irt32)/libimc_syscalls.a', + '>(tc_lib_dir_irt32)/libgio.a', + ], + }], + ['target_arch=="arm"', { + 'extra_deps_arm': [ + '>(tc_lib_dir_irt_arm)/libppapi_proxy_untrusted.a', + '>(tc_lib_dir_irt_arm)/libppapi_ipc_untrusted.a', + '>(tc_lib_dir_irt_arm)/libppapi_shared_untrusted.a', + '>(tc_lib_dir_irt_arm)/libgles2_implementation_untrusted.a', + '>(tc_lib_dir_irt_arm)/libcommand_buffer_client_untrusted.a', + '>(tc_lib_dir_irt_arm)/libcommand_buffer_common_untrusted.a', + '>(tc_lib_dir_irt_arm)/libgpu_ipc_untrusted.a', + '>(tc_lib_dir_irt_arm)/libtracing_untrusted.a', + '>(tc_lib_dir_irt_arm)/libgles2_cmd_helper_untrusted.a', + '>(tc_lib_dir_irt_arm)/libgles2_utils_untrusted.a', + '>(tc_lib_dir_irt_arm)/libipc_untrusted.a', + '>(tc_lib_dir_irt_arm)/libbase_untrusted.a', + '>(tc_lib_dir_irt_arm)/libirt_browser.a', + '>(tc_lib_dir_irt_arm)/libshared_memory_support_untrusted.a', + '>(tc_lib_dir_irt_arm)/libsrpc.a', + '>(tc_lib_dir_irt_arm)/libplatform.a', + '>(tc_lib_dir_irt_arm)/libimc_syscalls.a', + '>(tc_lib_dir_irt_arm)/libgio.a', + ], + }], ], }, 'dependencies': [ diff --git a/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp b/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp index becb973..787d620 100644 --- a/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp +++ b/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp @@ -12,9 +12,9 @@ 'type': 'none', 'variables': { 'nlib_target': 'libpnacl_irt_shim.a', - 'out_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-arm/libpnacl_irt_shim.a', - 'out_newlib32': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-32/libpnacl_irt_shim.a', - 'out_newlib64': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-64/libpnacl_irt_shim.a', + 'out_newlib_arm': '>(tc_lib_dir_pnacl_translate)/lib-arm/libpnacl_irt_shim.a', + 'out_newlib32': '>(tc_lib_dir_pnacl_translate)/lib-x86-32/libpnacl_irt_shim.a', + 'out_newlib64': '>(tc_lib_dir_pnacl_translate)/lib-x86-64/libpnacl_irt_shim.a', 'build_glibc': 0, 'build_newlib': 1, 'force_arm_pnacl': 1, diff --git a/ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp b/ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp index e1cfcfb0..269b435 100644 --- a/ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp +++ b/ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp @@ -54,14 +54,14 @@ '<(PRODUCT_DIR)/pnacl/pnacl_public_x86_64_pnacl_llc_nexe', ], 'inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-32/libpnacl_irt_shim.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-64/libpnacl_irt_shim.a', + '>(tc_lib_dir_pnacl_translate)/lib-x86-32/libpnacl_irt_shim.a', + '>(tc_lib_dir_pnacl_translate)/lib-x86-64/libpnacl_irt_shim.a', ], 'variables': { 'lib_overrides': [ # Use the two freshly generated shims. - '--lib_override=ia32,<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-32/libpnacl_irt_shim.a', - '--lib_override=x64,<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-64/libpnacl_irt_shim.a', + '--lib_override=ia32,>(tc_lib_dir_pnacl_translate)/lib-x86-32/libpnacl_irt_shim.a', + '--lib_override=x64,>(tc_lib_dir_pnacl_translate)/lib-x86-64/libpnacl_irt_shim.a', ], }, }], @@ -81,12 +81,12 @@ '<(PRODUCT_DIR)/pnacl/pnacl_public_arm_pnacl_llc_nexe', ], 'inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-arm/libpnacl_irt_shim.a', + '>(tc_lib_dir_pnacl_translate)/lib-arm/libpnacl_irt_shim.a', ], 'variables': { 'lib_overrides': [ # Use the freshly generated shim. - '--lib_override=arm,<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-arm/libpnacl_irt_shim.a', + '--lib_override=arm,>(tc_lib_dir_pnacl_translate)/lib-arm/libpnacl_irt_shim.a', ], }, }], @@ -103,12 +103,12 @@ '<(PRODUCT_DIR)/pnacl/pnacl_public_x86_32_pnacl_llc_nexe', ], 'inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-32/libpnacl_irt_shim.a', + '>(tc_lib_dir_pnacl_translate)/lib-x86-32/libpnacl_irt_shim.a', ], 'variables': { 'lib_overrides': [ # Use the freshly generated shim. - '--lib_override=ia32,<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-32/libpnacl_irt_shim.a', + '--lib_override=ia32,>(tc_lib_dir_pnacl_translate)/lib-x86-32/libpnacl_irt_shim.a', ], }, }], @@ -125,12 +125,12 @@ '<(PRODUCT_DIR)/pnacl/pnacl_public_x86_64_pnacl_llc_nexe', ], 'inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-64/libpnacl_irt_shim.a', + '>(tc_lib_dir_pnacl_translate)/lib-x86-64/libpnacl_irt_shim.a', ], 'variables': { 'lib_overrides': [ # Use the freshly generated shim. - '--lib_override=x64,<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_translate/lib-x86-64/libpnacl_irt_shim.a', + '--lib_override=x64,>(tc_lib_dir_pnacl_translate)/lib-x86-64/libpnacl_irt_shim.a', ], }, }], diff --git a/ppapi/ppapi_ipc_untrusted.gyp b/ppapi/ppapi_ipc_untrusted.gyp index 45ffd0f..9b0b678 100644 --- a/ppapi/ppapi_ipc_untrusted.gyp +++ b/ppapi/ppapi_ipc_untrusted.gyp @@ -23,6 +23,7 @@ 'nlib_target': 'libppapi_ipc_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'include_dirs': [ '..', diff --git a/ppapi/ppapi_nacl_test_common.gypi b/ppapi/ppapi_nacl_test_common.gypi index 2d7173d..dd1adb1 100644 --- a/ppapi/ppapi_nacl_test_common.gypi +++ b/ppapi/ppapi_nacl_test_common.gypi @@ -152,14 +152,14 @@ 'inputs': ['>(out_glibc64)'], 'action': [ '--library-path=>(libdir_glibc64)', - '--library-path=<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64', + '--library-path=>(tc_lib_dir_glibc64)', ], }], ['enable_x86_32==1', { 'inputs': ['>(out_glibc32)'], 'action': [ '--library-path=>(libdir_glibc32)', - '--library-path=<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32', + '--library-path=>(tc_lib_dir_glibc32)', ], }], # TODO(ncbray) handle arm case. We don't have ARM glibc yet. diff --git a/ppapi/ppapi_proxy_untrusted.gyp b/ppapi/ppapi_proxy_untrusted.gyp index 2b87d7b..727fbb5 100644 --- a/ppapi/ppapi_proxy_untrusted.gyp +++ b/ppapi/ppapi_proxy_untrusted.gyp @@ -22,6 +22,7 @@ 'nlib_target': 'libppapi_proxy_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'include_dirs': [ '..', diff --git a/ppapi/ppapi_shared_untrusted.gyp b/ppapi/ppapi_shared_untrusted.gyp index 2c0f8bd..4043c3a 100644 --- a/ppapi/ppapi_shared_untrusted.gyp +++ b/ppapi/ppapi_shared_untrusted.gyp @@ -23,6 +23,7 @@ 'nlib_target': 'libppapi_shared_untrusted.a', 'build_glibc': 0, 'build_newlib': 1, + 'build_irt': 1, }, 'include_dirs': [ '..', diff --git a/ppapi/ppapi_untrusted.gyp b/ppapi/ppapi_untrusted.gyp index 3e19759..4e11b2c 100644 --- a/ppapi/ppapi_untrusted.gyp +++ b/ppapi/ppapi_untrusted.gyp @@ -97,31 +97,35 @@ 'translate_flags': [ '-O0', ], - # TODO(bradchen): get rid of extra_deps64 and extra_deps32 - # once native_client/build/untrusted.gypi no longer needs them. - 'extra_deps_newlib64': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_cpp.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi.a', - ], - 'extra_deps_newlib32': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_cpp.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi.a', - ], - 'extra_deps_glibc64': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_cpp.so', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi.so', - ], - 'extra_deps_glibc32': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_cpp.so', - '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi.so', - ], - 'extra_deps_arm': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_cpp.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi.a', + 'conditions': [ + ['target_arch!="arm"', { + 'extra_deps_newlib64': [ + '>(tc_lib_dir_newlib64)/libppapi_cpp.a', + '>(tc_lib_dir_newlib64)/libppapi.a', + ], + 'extra_deps_newlib32': [ + '>(tc_lib_dir_newlib32)/libppapi_cpp.a', + '>(tc_lib_dir_newlib32)/libppapi.a', + ], + 'extra_deps_glibc64': [ + '>(tc_lib_dir_glibc64)/libppapi_cpp.so', + '>(tc_lib_dir_glibc64)/libppapi.so', + ], + 'extra_deps_glibc32': [ + '>(tc_lib_dir_glibc32)/libppapi_cpp.so', + '>(tc_lib_dir_glibc32)/libppapi.so', + ], + }], + ['target_arch=="arm"', { + 'extra_deps_arm': [ + '>(tc_lib_dir_newlib_arm)/libppapi_cpp.a', + '>(tc_lib_dir_newlib_arm)/libppapi.a', + ], + }], ], - 'extra_deps_pnacl': [ - '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib/libppapi_cpp.a', - '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib/libppapi.a', + 'extra_deps_pnacl_newlib': [ + '>(tc_lib_dir_pnacl_newlib)/libppapi_cpp.a', + '>(tc_lib_dir_pnacl_newlib)/libppapi.a', ], 'sources': [ '<@(test_common_source_files)', @@ -157,8 +161,8 @@ '--objdump=>(nacl_objdump)', '--library-path=>(libdir_glibc64)', '--library-path=>(libdir_glibc32)', - '--library-path=<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32', - '--library-path=<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64', + '--library-path=>(tc_lib_dir_glibc32)', + '--library-path=>(tc_lib_dir_glibc64)', '--output=>(nmf_glibc)', '--stage-dependencies=<(PRODUCT_DIR)', ], |