summaryrefslogtreecommitdiffstats
path: root/chrome/common_constants.gyp
diff options
context:
space:
mode:
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-09 20:57:49 +0000
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-09 20:57:49 +0000
commit99245a080cb0558a1642b4416f9e44f24bba3b3c (patch)
treebd5833a0c799281bb4b2728957ab1bfa4e922be0 /chrome/common_constants.gyp
parent8a21822aef69e2f420053a30c35835ba6d794b03 (diff)
downloadchromium_src-99245a080cb0558a1642b4416f9e44f24bba3b3c.zip
chromium_src-99245a080cb0558a1642b4416f9e44f24bba3b3c.tar.gz
chromium_src-99245a080cb0558a1642b4416f9e44f24bba3b3c.tar.bz2
Move common_constants target into a proper .gyp file so that it can shared
more easily by multiple projects (e.g., chrome & unittests). This is needed because: * Including the gypi directly from each .gyp that needs it will break ninja (since it merges all the gyps into a single file). * Referring to chrome.gyp:common_constants breaks the circular dependency check on the Mac. BUG=none TEST=gclient runhooks, make chrome, ninja chrome Review URL: https://chromiumcodereview.appspot.com/9112019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common_constants.gyp')
-rw-r--r--chrome/common_constants.gyp93
1 files changed, 93 insertions, 0 deletions
diff --git a/chrome/common_constants.gyp b/chrome/common_constants.gyp
new file mode 100644
index 0000000..8952dae
--- /dev/null
+++ b/chrome/common_constants.gyp
@@ -0,0 +1,93 @@
+# 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.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+
+ 'includes': [
+ 'version.gypi',
+ ],
+
+ 'target_defaults': {
+ 'sources': [
+ 'common/chrome_constants.cc',
+ 'common/chrome_constants.h',
+ 'common/chrome_paths.cc',
+ 'common/chrome_paths.h',
+ 'common/chrome_paths_android.cc',
+ '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/net/test_server_locations.cc',
+ 'common/net/test_server_locations.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': 'static_library',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ ],
+ 'conditions': [
+ ['toolkit_uses_gtk == 1', {
+ 'dependencies': ['../build/linux/system.gyp:gtk'],
+ }],
+ ],
+ },
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'common_constants_win64',
+ 'type': 'static_library',
+ 'dependencies': [
+ '../base/base.gyp:base_nacl_win64',
+ ],
+ 'defines': [
+ '<@(nacl_win64_defines)',
+ 'COMPILE_CONTENT_STATICALLY',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ },
+ ],
+ }],
+ ],
+}