summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authoryael.aharon@intel.com <yael.aharon@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-06 03:59:24 +0000
committeryael.aharon@intel.com <yael.aharon@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-06 03:59:24 +0000
commitbd2b4814c1850ec9380dd10d5a4adfb35afb3c31 (patch)
treec783c6ac7511d8cd6f7b09eadfbba61324bade6a /components
parentb385ffd6e53a97575117172524ebe74b2db2791d (diff)
downloadchromium_src-bd2b4814c1850ec9380dd10d5a4adfb35afb3c31.zip
chromium_src-bd2b4814c1850ec9380dd10d5a4adfb35afb3c31.tar.gz
chromium_src-bd2b4814c1850ec9380dd10d5a4adfb35afb3c31.tar.bz2
Move nacl.gypi to components.
The files included in nacl.gypi were already moved. Since nacl_linux_helper is not moving until its dependencies are moved, break off the target nacl_linux_helper and move it to chrome_exe.gypi. This is part of an effort to componentize NaCl code. BUG=244791 Review URL: https://chromiumcodereview.appspot.com/21020004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components')
-rw-r--r--components/nacl.gyp167
1 files changed, 167 insertions, 0 deletions
diff --git a/components/nacl.gyp b/components/nacl.gyp
new file mode 100644
index 0000000..f3ded83
--- /dev/null
+++ b/components/nacl.gyp
@@ -0,0 +1,167 @@
+# Copyright 2013 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.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'includes': [
+ '../native_client/build/untrusted.gypi',
+ 'nacl/nacl_defines.gypi',
+ ],
+ 'target_defaults': {
+ 'variables': {
+ 'nacl_target': 0,
+ },
+ 'target_conditions': [
+ # This part is shared between the targets defined below. Only files and
+ # settings relevant for building the Win64 target should be added here.
+ ['nacl_target==1', {
+ 'include_dirs': [
+ '<(INTERMEDIATE_DIR)',
+ ],
+ 'defines': [
+ '<@(nacl_defines)',
+ ],
+ 'sources': [
+ # .cc, .h, and .mm files under nacl that are used on all
+ # platforms, including both 32-bit and 64-bit Windows.
+ # Test files are also not included.
+ 'nacl/loader/nacl_ipc_adapter.cc',
+ 'nacl/loader/nacl_ipc_adapter.h',
+ 'nacl/loader/nacl_main.cc',
+ 'nacl/loader/nacl_main_platform_delegate.h',
+ 'nacl/loader/nacl_main_platform_delegate_linux.cc',
+ 'nacl/loader/nacl_main_platform_delegate_mac.mm',
+ 'nacl/loader/nacl_main_platform_delegate_win.cc',
+ 'nacl/loader/nacl_listener.cc',
+ 'nacl/loader/nacl_listener.h',
+ 'nacl/loader/nacl_validation_db.h',
+ 'nacl/loader/nacl_validation_query.cc',
+ 'nacl/loader/nacl_validation_query.h',
+ ],
+ # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
+ 'conditions': [
+ ['OS=="win"', {
+ 'defines': [
+ '__STDC_LIMIT_MACROS=1',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)/third_party/wtl/include',
+ ],
+ },],
+ ['OS=="linux"', {
+ 'defines': [
+ '__STDC_LIMIT_MACROS=1',
+ ],
+ 'sources': [
+ '../components/nacl/common/nacl_paths.cc',
+ '../components/nacl/common/nacl_paths.h',
+ '../components/nacl/zygote/nacl_fork_delegate_linux.cc',
+ '../components/nacl/zygote/nacl_fork_delegate_linux.h',
+ ],
+ },],
+ ],
+ }],
+ ],
+ },
+ 'conditions': [
+ ['disable_nacl!=1', {
+ 'targets': [
+ {
+ 'target_name': 'nacl',
+ 'type': 'static_library',
+ 'variables': {
+ 'nacl_target': 1,
+ },
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../ipc/ipc.gyp:ipc',
+ '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome',
+ '../ppapi/ppapi_internal.gyp:ppapi_shared',
+ '../ppapi/ppapi_internal.gyp:ppapi_ipc',
+ '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome',
+ ],
+ 'conditions': [
+ ['disable_nacl_untrusted==0', {
+ 'dependencies': [
+ '../ppapi/native_client/native_client.gyp:nacl_irt',
+ '../ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:pnacl_irt_shim',
+ '../ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp:pnacl_support_extension',
+ ],
+ }],
+ ],
+ 'direct_dependent_settings': {
+ 'defines': [
+ '<@(nacl_defines)',
+ ],
+ },
+ },
+ ],
+ 'conditions': [
+ ['OS=="win" and target_arch=="ia32"', {
+ 'targets': [
+ {
+ 'target_name': 'nacl_win64',
+ 'type': 'static_library',
+ 'variables': {
+ 'nacl_target': 1,
+ },
+ 'dependencies': [
+ '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome64',
+ '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
+ '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
+ '../components/nacl_common.gyp:nacl_common_win64',
+ ],
+ 'export_dependent_settings': [
+ '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
+ ],
+ 'sources': [
+ '../components/nacl/broker/nacl_broker_listener.cc',
+ '../components/nacl/broker/nacl_broker_listener.h',
+ '../components/nacl/common/nacl_debug_exception_handler_win.cc',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'defines': [
+ '<@(nacl_win64_defines)',
+ 'COMPILE_CONTENT_STATICALLY',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ 'direct_dependent_settings': {
+ 'defines': [
+ '<@(nacl_defines)',
+ ],
+ },
+ },
+ ],
+ }],
+ ],
+ }, { # else (disable_nacl==1)
+ 'targets': [
+ {
+ 'target_name': 'nacl',
+ 'type': 'none',
+ 'sources': [],
+ },
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'nacl_win64',
+ 'type': 'none',
+ 'sources': [],
+ },
+ ],
+ }],
+ ],
+ }],
+ ],
+}