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