Adding myself as an owner to chrome/android.
[chromium-blink-merge.git] / chrome / common_constants.gyp
blobcabdd0c1801cd9d7afdeba01ea12ffc4ba88becc
1 # Copyright (c) 2012 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   'variables': {
7     'chromium_code': 1,
8   },
10   'includes': [
11     'version.gypi',
12   ],
14   'target_defaults': {
15     'sources': [
16       'common/chrome_constants.cc',
17       'common/chrome_constants.h',
18       'common/chrome_paths.cc',
19       'common/chrome_paths.h',
20       'common/chrome_paths_android.cc',
21       'common/chrome_paths_internal.h',
22       'common/chrome_paths_linux.cc',
23       'common/chrome_paths_mac.mm',
24       'common/chrome_paths_win.cc',
25       'common/chrome_switches.cc',
26       'common/chrome_switches.h',
27       'common/env_vars.cc',
28       'common/env_vars.h',
29       'common/net/test_server_locations.cc',
30       'common/net/test_server_locations.h',
31       'common/pref_font_script_names-inl.h',
32       'common/pref_font_webkit_names.h',
33       'common/pref_names.cc',
34       'common/pref_names.h',
35     ],
36     'actions': [
37       {
38         'action_name': 'Make chrome_version.cc',
39         'variables': {
40           'make_version_cc_path': 'tools/build/make_version_cc.py',
41         },
42         'inputs': [
43           '<(make_version_cc_path)',
44           'VERSION',
45         ],
46         'outputs': [
47           '<(INTERMEDIATE_DIR)/chrome_version.cc',
48         ],
49         'action': [
50           'python',
51           '<(make_version_cc_path)',
52           '<@(_outputs)',
53           '<(version_full)',
54         ],
55         'process_outputs_as_sources': 1,
56       },
57     ],
58   },
59   'targets': [
60     {
61       'target_name': 'common_constants',
62       'type': 'static_library',
63       'include_dirs': [
64         '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_paths.cc.
65       ],
66       'dependencies': [
67         '../base/base.gyp:base',
68         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
69       ],
70       'target_conditions': [
71         ['OS=="ios"', {
72           # iOS needs chrome_paths_mac, which is excluded by filename rules;
73           # re-add it in target_conditionals so it's after that exclusion.
74           'sources/': [
75             ['include', '^common/chrome_paths_mac\\.mm$'],
76           ],
77         }],
78       ],
79       'conditions': [
80         ['toolkit_uses_gtk == 1', {
81           'dependencies': ['../build/linux/system.gyp:gtk'],
82         }],
83       ],
84     },
85   ],
86   'conditions': [
87     ['OS=="win" and target_arch=="ia32"', {
88       'targets': [
89         {
90           'target_name': 'common_constants_win64',
91           'type': 'static_library',
92           'include_dirs': [
93             '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_paths.cc.
94           ],
95           'dependencies': [
96             '../base/base.gyp:base_nacl_win64',
97             '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
98           ],
99           'defines': [
100             '<@(nacl_win64_defines)',
101             'COMPILE_CONTENT_STATICALLY',
102           ],
103           'configurations': {
104             'Common_Base': {
105               'msvs_target_platform': 'x64',
106             },
107           },
108         },
109       ],
110     }],
111   ],