[gin] Allow interceptors to signal whether a they intercepted something
[chromium-blink-merge.git] / chromecast / chromecast.gyp
blob24303321240836ea9ea436b4865071da5b09e7b9
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/chromecast_config.cc',
26         'common/chromecast_config.h',
27       ],
28       'conditions': [
29         ['chromecast_branding=="Chrome"', {
30           'dependencies': [
31             'internal/chromecast_internal.gyp:cast_common_internal',
32           ],
33         }, {
34           'sources': [
35             'common/chromecast_config_simple.cc',
36           ],
37         }],
38       ],
39     },
40     {
41       'target_name': 'cast_service',
42       'type': '<(component)',
43       'dependencies': [
44         '../skia/skia.gyp:skia',
45       ],
46       'sources': [
47         'service/cast_service.cc',
48         'service/cast_service.h',
49       ],
50       'conditions': [
51         ['chromecast_branding=="Chrome"', {
52           'dependencies': [
53             'internal/chromecast_internal.gyp:cast_service_internal',
54           ],
55         }, {
56           'dependencies': [
57             '../base/base.gyp:base',
58             '../content/content.gyp:content',
59           ],
60           'sources': [
61             'service/cast_service_simple.cc',
62             'service/cast_service_simple.h',
63           ],
64         }],
65       ],
66     },
67     {
68       'target_name': 'cast_shell_resources',
69       'type': 'none',
70       # Place holder for cast_shell specific resources.
71     },
72     {
73       'target_name': 'cast_shell_pak',
74       'type': 'none',
75       'dependencies': [
76         'cast_shell_resources',
77         '../content/app/strings/content_strings.gyp:content_strings',
78         '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
79         '../content/content_resources.gyp:content_resources',
80         '../net/net.gyp:net_resources',
81         '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
82         '../ui/resources/ui_resources.gyp:ui_resources',
83         '../ui/strings/ui_strings.gyp:ui_strings',
84         '../webkit/webkit_resources.gyp:webkit_resources',
85       ],
86       'actions': [
87         {
88           'action_name': 'repack_cast_shell_pack',
89           'variables': {
90             'pak_inputs': [
91               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
92               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
93               '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
94               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
95               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
96               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
97               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
98               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
99               '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
100               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
101             ],
102             'pak_output': '<(PRODUCT_DIR)/cast_shell.pak',
103           },
104           'includes': [ '../build/repack_action.gypi' ],
105         },
106       ],
107     },
108     {
109       'target_name': 'cast_shell',
110       'type': 'executable',
111       'dependencies': [
112         'cast_common',
113         'cast_service',
114         'cast_shell_pak',
115         'cast_version_header',
116         '../ui/aura/aura.gyp:aura_test_support',
117         '../content/content.gyp:content',
118         '../content/content.gyp:content_app_browser',
119         '../skia/skia.gyp:skia',
120       ],
121       'sources': [
122         'net/network_change_notifier_cast.cc',
123         'net/network_change_notifier_cast.h',
124         'net/network_change_notifier_factory_cast.cc',
125         'net/network_change_notifier_factory_cast.h',
126         'shell/app/cast_main.cc',
127         'shell/app/cast_main_delegate.cc',
128         'shell/app/cast_main_delegate.h',
129         'shell/browser/cast_browser_context.cc',
130         'shell/browser/cast_browser_context.h',
131         'shell/browser/cast_browser_main_parts.cc',
132         'shell/browser/cast_browser_main_parts.h',
133         'shell/browser/cast_content_browser_client.cc',
134         'shell/browser/cast_content_browser_client.h',
135         'shell/browser/cast_http_user_agent_settings.cc',
136         'shell/browser/cast_http_user_agent_settings.h',
137         'shell/browser/geolocation/cast_access_token_store.cc',
138         'shell/browser/geolocation/cast_access_token_store.h',
139         'shell/browser/url_request_context_factory.cc',
140         'shell/browser/url_request_context_factory.h',
141         'shell/common/cast_content_client.cc',
142         'shell/common/cast_content_client.h',
143         'shell/renderer/cast_content_renderer_client.cc',
144         'shell/renderer/cast_content_renderer_client.h',
145       ],
146       'conditions': [
147         ['chromecast_branding=="Chrome"', {
148           'dependencies': [
149             'internal/chromecast_internal.gyp:cast_gfx_internal',
150           ],
151         }, {
152           'dependencies': [
153             '../ui/ozone/ozone.gyp:eglplatform_shim_x11',
154           ],
155         }],
156       ],
157     },
158     {
159       'target_name': 'cast_version_header',
160       'type': 'none',
161       'direct_dependent_settings': {
162         'include_dirs': [
163           '<(SHARED_INTERMEDIATE_DIR)',
164         ],
165       },
166       'actions': [
167         {
168           'action_name': 'version_header',
169           'message': 'Generating version header file: <@(_outputs)',
170           'inputs': [
171             '<(version_path)',
172             'common/version.h.in',
173           ],
174           'outputs': [
175             '<(SHARED_INTERMEDIATE_DIR)/chromecast/common/version.h',
176           ],
177           'action': [
178             'python',
179             '<(version_py_path)',
180             '-e', 'VERSION_FULL="<(version_full)"',
181             'common/version.h.in',
182             '<@(_outputs)',
183           ],
184           'includes': [
185             '../build/util/version.gypi',
186           ],
187         },
188       ],
189     },
190   ],  # end of targets