Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / chromecast / chromecast.gyp
blob5b7ffe40cbd11f4da04d3e2ee538b3df4f76a7bb
1 # Copyright 2014 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     'chromecast_branding%': 'Chromium',
9   },
10   'target_defaults': {
11     'include_dirs': [
12       '..',  # Root of Chromium checkout
13     ],
14   },
15   'targets': [
16     {
17       'target_name': 'cast_common',
18       'type': '<(component)',
19       'dependencies': [
20         '../base/base.gyp:base',
21       ],
22       'sources': [
23         'common/cast_paths.cc',
24         'common/cast_paths.h',
25         'common/cast_resource_delegate.cc',
26         'common/cast_resource_delegate.h',
27         'common/chromecast_config.cc',
28         'common/chromecast_config.h',
29         'common/pref_names.cc',
30         'common/pref_names.h',
31       ],
32       'conditions': [
33         ['chromecast_branding=="Chrome"', {
34           'dependencies': [
35             'internal/chromecast_internal.gyp:cast_common_internal',
36           ],
37         }, {
38           'sources': [
39             'common/chromecast_config_simple.cc',
40           ],
41         }],
42       ],
43     },
44     {
45       'target_name': 'cast_metrics',
46       'type': '<(component)',
47       'dependencies': [
48         '../components/components.gyp:component_metrics_proto',
49         '../components/components.gyp:metrics',
50         '../components/components.gyp:metrics_net',
51       ],
52       'sources': [
53         'metrics/cast_metrics_prefs.cc',
54         'metrics/cast_metrics_prefs.h',
55         'metrics/cast_metrics_service_client.cc',
56         'metrics/cast_metrics_service_client.h',
57         'metrics/platform_metrics_providers.h',
58       ],
59       'conditions': [
60         ['chromecast_branding=="Chrome"', {
61           'dependencies': [
62             '<(cast_internal_gyp):cast_metrics_internal',
63           ],
64         }, {
65           'sources': [
66             'metrics/platform_metrics_providers_simple.cc',
67           ],
68         }],
69       ],
70     },
71     {
72       'target_name': 'cast_service',
73       'type': '<(component)',
74       'dependencies': [
75         '../skia/skia.gyp:skia',
76       ],
77       'sources': [
78         'service/cast_service.cc',
79         'service/cast_service.h',
80       ],
81       'conditions': [
82         ['chromecast_branding=="Chrome"', {
83           'dependencies': [
84             'internal/chromecast_internal.gyp:cast_service_internal',
85           ],
86         }, {
87           'dependencies': [
88             '../base/base.gyp:base',
89             '../content/content.gyp:content',
90           ],
91           'sources': [
92             'service/cast_service_simple.cc',
93             'service/cast_service_simple.h',
94           ],
95         }],
96       ],
97     },
98     {
99       'target_name': 'cast_shell_resources',
100       'type': 'none',
101       'variables': {
102         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast',
103       },
104       'actions': [
105         {
106           'action_name': 'cast_shell_resources',
107           'variables': {
108             'grit_grd_file': 'shell/browser/resources/shell_resources.grd',
109             'grit_resource_ids': 'shell/browser/resources/resource_ids',
110           },
111           'includes': [ '../build/grit_action.gypi' ],
112         },
113       ],
114       'includes': [ '../build/grit_target.gypi' ],
115     },
116     {
117       'target_name': 'cast_shell_pak',
118       'type': 'none',
119       'dependencies': [
120         'cast_shell_resources',
121         '../content/app/resources/content_resources.gyp:content_resources',
122         '../content/app/strings/content_strings.gyp:content_strings',
123         '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
124         '../net/net.gyp:net_resources',
125         '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
126         '../ui/resources/ui_resources.gyp:ui_resources',
127         '../ui/strings/ui_strings.gyp:ui_strings',
128       ],
129       'actions': [
130         {
131           'action_name': 'repack_cast_shell_pack',
132           'variables': {
133             'pak_inputs': [
134               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
135               '<(SHARED_INTERMEDIATE_DIR)/chromecast/shell_resources.pak',
136               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
137               '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
138               '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
139               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
140               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
141               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
142               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
143               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
144               '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
145             ],
146             'pak_output': '<(PRODUCT_DIR)/assets/cast_shell.pak',
147           },
148           'includes': [ '../build/repack_action.gypi' ],
149         },
150       ],
151     },
152     {
153       'target_name': 'cast_shell',
154       'type': 'executable',
155       'dependencies': [
156         'cast_common',
157         'cast_metrics',
158         'cast_service',
159         'cast_shell_pak',
160         'cast_shell_resources',
161         'cast_version_header',
162         'chromecast_locales.gyp:chromecast_locales_pak',
163         'chromecast_locales.gyp:chromecast_settings',
164         '../components/components.gyp:component_metrics_proto',
165         '../content/content.gyp:content',
166         '../content/content.gyp:content_app_browser',
167         '../skia/skia.gyp:skia',
168         '../ui/aura/aura.gyp:aura_test_support',
169       ],
170       'sources': [
171         'net/network_change_notifier_cast.cc',
172         'net/network_change_notifier_cast.h',
173         'net/network_change_notifier_factory_cast.cc',
174         'net/network_change_notifier_factory_cast.h',
175         'shell/app/cast_main.cc',
176         'shell/app/cast_main_delegate.cc',
177         'shell/app/cast_main_delegate.h',
178         'shell/browser/cast_browser_context.cc',
179         'shell/browser/cast_browser_context.h',
180         'shell/browser/cast_browser_main_parts.cc',
181         'shell/browser/cast_browser_main_parts.h',
182         'shell/browser/cast_content_browser_client.cc',
183         'shell/browser/cast_content_browser_client.h',
184         'shell/browser/cast_http_user_agent_settings.cc',
185         'shell/browser/cast_http_user_agent_settings.h',
186         'shell/browser/devtools/cast_dev_tools_delegate.cc',
187         'shell/browser/devtools/cast_dev_tools_delegate.h',
188         'shell/browser/devtools/remote_debugging_server.cc',
189         'shell/browser/devtools/remote_debugging_server.h',
190         'shell/browser/geolocation/cast_access_token_store.cc',
191         'shell/browser/geolocation/cast_access_token_store.h',
192         'shell/browser/url_request_context_factory.cc',
193         'shell/browser/url_request_context_factory.h',
194         'shell/browser/webui/webui_cast.h',
195         'shell/common/cast_content_client.cc',
196         'shell/common/cast_content_client.h',
197         'shell/renderer/cast_content_renderer_client.cc',
198         'shell/renderer/cast_content_renderer_client.h',
199       ],
200       'conditions': [
201         ['chromecast_branding=="Chrome"', {
202           'dependencies': [
203             'internal/chromecast_internal.gyp:cast_gfx_internal',
204             'internal/chromecast_internal.gyp:cast_shell_internal',
205           ],
206         }, {
207           'dependencies': [
208             '../ui/ozone/ozone.gyp:eglplatform_shim_x11',
209           ],
210           'sources': [
211             'shell/browser/devtools/remote_debugging_server_simple.cc',
212             'shell/browser/webui/webui_cast_simple.cc',
213           ],
214         }],
215       ],
216     },
217     {
218       'target_name': 'cast_version_header',
219       'type': 'none',
220       'direct_dependent_settings': {
221         'include_dirs': [
222           '<(SHARED_INTERMEDIATE_DIR)',
223         ],
224       },
225       'actions': [
226         {
227           'action_name': 'version_header',
228           'message': 'Generating version header file: <@(_outputs)',
229           'inputs': [
230             '<(version_path)',
231             'common/version.h.in',
232           ],
233           'outputs': [
234             '<(SHARED_INTERMEDIATE_DIR)/chromecast/common/version.h',
235           ],
236           'action': [
237             'python',
238             '<(version_py_path)',
239             '-e', 'VERSION_FULL="<(version_full)"',
240             'common/version.h.in',
241             '<@(_outputs)',
242           ],
243           'includes': [
244             '../build/util/version.gypi',
245           ],
246         },
247       ],
248     },
249   ],  # end of targets