summaryrefslogtreecommitdiffstats
path: root/chrome/common_constants.gypi
diff options
context:
space:
mode:
authorgregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-23 23:12:08 +0000
committergregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-23 23:12:08 +0000
commit2597767f106b108ed7d0b9d5d66803a9a67831e5 (patch)
tree061382a2f72e2e26dc1c4adec83216ce634fa4d6 /chrome/common_constants.gypi
parentd595fa2e4e1d9588349798cb5c1f119d622420ca (diff)
downloadchromium_src-2597767f106b108ed7d0b9d5d66803a9a67831e5.zip
chromium_src-2597767f106b108ed7d0b9d5d66803a9a67831e5.tar.gz
chromium_src-2597767f106b108ed7d0b9d5d66803a9a67831e5.tar.bz2
Split more targets from chrome.gyp to add support for building Native Client for 64-bit Windows.
This CL is required for supporting Native Client on 64-bit Windows. On Win64 we will use a 64-bit executable to load NaCl modules. Since we have only one version of Chrome on Windows, this executable has to be built together with 32-bit Chrome binaries. For the targets that are required for both 32-bit and 64-bit builds, this CL moves the shared parts of the target definitions into target-specific gypi files (such as base.gypi). New 64-bit only targets are added. Since we would like to port as few code as possible at this point, some 64-bit targets include less source files or less dependencies than the original 32-bit targets. These targets will have nacl_win64 in their name - to emphasize that they should be used for NaCl only. Some 64-bit targets are identical to the 32-bit targets in everything except for the target platform - these will have only win64 in their name. TEST=none BUG=28176 Review URL: http://codereview.chromium.org/384068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common_constants.gypi')
-rw-r--r--chrome/common_constants.gypi96
1 files changed, 96 insertions, 0 deletions
diff --git a/chrome/common_constants.gypi b/chrome/common_constants.gypi
new file mode 100644
index 0000000..e9a47c5
--- /dev/null
+++ b/chrome/common_constants.gypi
@@ -0,0 +1,96 @@
+# Copyright (c) 2009 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.
+
+{
+ 'target_defaults': {
+ 'variables': {
+ 'common_constants_target': 0,
+ },
+ 'target_conditions': [
+ ['common_constants_target==1', {
+ 'sources': [
+ 'common/chrome_constants.cc',
+ 'common/chrome_constants.h',
+ 'common/chrome_paths.cc',
+ 'common/chrome_paths.h',
+ 'common/chrome_paths_internal.h',
+ 'common/chrome_paths_linux.cc',
+ 'common/chrome_paths_mac.mm',
+ 'common/chrome_paths_win.cc',
+ 'common/chrome_switches.cc',
+ 'common/chrome_switches.h',
+ 'common/env_vars.cc',
+ 'common/env_vars.h',
+ 'common/json_value_serializer.cc',
+ 'common/json_value_serializer.h',
+ 'common/pref_names.cc',
+ 'common/pref_names.h',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'Make chrome_version.cc',
+ 'variables': {
+ 'make_version_cc_path': 'tools/build/make_version_cc.py',
+ },
+ 'inputs': [
+ '<(make_version_cc_path)',
+ 'VERSION',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/chrome_version.cc',
+ ],
+ 'action': [
+ 'python',
+ '<(make_version_cc_path)',
+ '<@(_outputs)',
+ '<(version_full)',
+ ],
+ 'process_outputs_as_sources': 1,
+ },
+ ],
+ }],
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'common_constants',
+ 'type': '<(library)',
+ 'variables': {
+ 'common_constants_target': 1,
+ },
+ 'dependencies': [
+ '../base/base.gyp:base',
+ ],
+ 'conditions': [
+ ['OS=="linux"', {
+ 'dependencies': ['../build/linux/system.gyp:gtk'],
+ }],
+ ],
+ },
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'common_constants_win64',
+ 'type': '<(library)',
+ 'variables': {
+ 'common_constants_target': 1,
+ },
+ 'dependencies': [
+ '../base/base.gyp:base_nacl_win64',
+ ],
+ 'defines': [
+ '<@(nacl_win64_defines)',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ },
+ ],
+ }],
+ ],
+}