roll skia 1111->1115
[chromium-blink-merge.git] / chrome / common_constants.gypi
blob47b4d58aa2c0df1d0e437ac4c1ead67dbe577d36
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.
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',
27           'common/net/gaia/gaia_constants.cc',
28           'common/net/gaia/gaia_constants.h',
29           'common/pref_names.cc',
30           'common/pref_names.h',
31         ],
32         'actions': [
33           {
34             'action_name': 'Make chrome_version.cc',
35             'variables': {
36               'make_version_cc_path': 'tools/build/make_version_cc.py',
37             },
38             'inputs': [
39               '<(make_version_cc_path)',
40               'VERSION',
41             ],
42             'outputs': [
43               '<(INTERMEDIATE_DIR)/chrome_version.cc',
44             ],
45             'action': [
46               'python',
47               '<(make_version_cc_path)',
48               '<@(_outputs)',
49               '<(version_full)',
50             ],
51             'process_outputs_as_sources': 1,
52           },
53         ],
54       }],
55     ],
56   },
57   'targets': [
58     {
59       'target_name': 'common_constants',
60       'type': '<(library)',
61       'variables': {
62         'common_constants_target': 1,
63       },
64       'dependencies': [
65         '../base/base.gyp:base',
66       ],
67       'conditions': [
68         ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
69           'dependencies': ['../build/linux/system.gyp:gtk'],
70         }],
71       ],
72     },
73   ],
74   'conditions': [
75     ['OS=="win"', {
76       'targets': [
77         {
78           'target_name': 'common_constants_win64',
79           'type': '<(library)',
80           'variables': {
81             'common_constants_target': 1,
82           },
83           'dependencies': [
84             '../base/base.gyp:base_nacl_win64',
85           ],
86           'defines': [
87             '<@(nacl_win64_defines)',
88           ],
89           'configurations': {
90             'Common_Base': {
91               'msvs_target_platform': 'x64',
92             },
93           },
94         },
95       ],
96     }],
97   ],