[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 1 | # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'target_defaults': { |
| 7 | 'variables': { |
| 8 | 'common_constants_target': 0, |
| 9 | }, |
| 10 | 'target_conditions': [ |
| 11 | ['common_constants_target==1', { |
| 12 | 'sources': [ |
| 13 | 'common/chrome_constants.cc', |
| 14 | 'common/chrome_constants.h', |
| 15 | 'common/chrome_paths.cc', |
| 16 | 'common/chrome_paths.h', |
| 17 | 'common/chrome_paths_internal.h', |
| 18 | 'common/chrome_paths_linux.cc', |
| 19 | 'common/chrome_paths_mac.mm', |
| 20 | 'common/chrome_paths_win.cc', |
| 21 | 'common/chrome_switches.cc', |
| 22 | 'common/chrome_switches.h', |
| 23 | 'common/env_vars.cc', |
| 24 | 'common/env_vars.h', |
| 25 | 'common/json_value_serializer.cc', |
| 26 | 'common/json_value_serializer.h', |
[email protected] | 5de3c68 | 2010-07-28 21:44:43 | [diff] [blame] | 27 | 'common/net/gaia/gaia_constants.cc', |
| 28 | 'common/net/gaia/gaia_constants.h', |
[email protected] | e862800 | 2010-08-02 09:59:40 | [diff] [blame] | 29 | 'common/policy_constants.cc', |
| 30 | 'common/policy_constants.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 31 | 'common/pref_names.cc', |
| 32 | 'common/pref_names.h', |
| 33 | ], |
| 34 | 'actions': [ |
| 35 | { |
| 36 | 'action_name': 'Make chrome_version.cc', |
| 37 | 'variables': { |
| 38 | 'make_version_cc_path': 'tools/build/make_version_cc.py', |
| 39 | }, |
| 40 | 'inputs': [ |
| 41 | '<(make_version_cc_path)', |
| 42 | 'VERSION', |
| 43 | ], |
| 44 | 'outputs': [ |
| 45 | '<(INTERMEDIATE_DIR)/chrome_version.cc', |
| 46 | ], |
| 47 | 'action': [ |
| 48 | 'python', |
| 49 | '<(make_version_cc_path)', |
| 50 | '<@(_outputs)', |
| 51 | '<(version_full)', |
| 52 | ], |
| 53 | 'process_outputs_as_sources': 1, |
| 54 | }, |
| 55 | ], |
| 56 | }], |
| 57 | ], |
| 58 | }, |
| 59 | 'targets': [ |
| 60 | { |
| 61 | 'target_name': 'common_constants', |
| 62 | 'type': '<(library)', |
| 63 | 'variables': { |
| 64 | 'common_constants_target': 1, |
| 65 | }, |
| 66 | 'dependencies': [ |
| 67 | '../base/base.gyp:base', |
| 68 | ], |
| 69 | 'conditions': [ |
[email protected] | a13d6771 | 2010-05-14 22:27:30 | [diff] [blame] | 70 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 71 | 'dependencies': ['../build/linux/system.gyp:gtk'], |
| 72 | }], |
| 73 | ], |
| 74 | }, |
| 75 | ], |
| 76 | 'conditions': [ |
| 77 | ['OS=="win"', { |
| 78 | 'targets': [ |
| 79 | { |
| 80 | 'target_name': 'common_constants_win64', |
| 81 | 'type': '<(library)', |
| 82 | 'variables': { |
| 83 | 'common_constants_target': 1, |
| 84 | }, |
| 85 | 'dependencies': [ |
| 86 | '../base/base.gyp:base_nacl_win64', |
| 87 | ], |
| 88 | 'defines': [ |
| 89 | '<@(nacl_win64_defines)', |
| 90 | ], |
| 91 | 'configurations': { |
| 92 | 'Common_Base': { |
| 93 | 'msvs_target_platform': 'x64', |
| 94 | }, |
| 95 | }, |
| 96 | }, |
| 97 | ], |
| 98 | }], |
| 99 | ], |
| 100 | } |