EnterpriseInstallAttributes: add comment to warn of protobuf idiosyncrasy.
[chromium-blink-merge.git] / chromecast / chromecast.gyp
blob505bd94f40a9fe6cb1c77b45cf781d6a5a2b7aa3
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         '../ui/aura/aura.gyp:aura_test_support',
110         '../content/content.gyp:content',
111         '../content/content.gyp:content_app_browser',
112         '../skia/skia.gyp:skia',
113       ],
114       'sources': [
115         'net/network_change_notifier_cast.cc',
116         'net/network_change_notifier_cast.h',
117         'net/network_change_notifier_factory_cast.cc',
118         'net/network_change_notifier_factory_cast.h',
119         'shell/app/cast_main.cc',
120         'shell/app/cast_main_delegate.cc',
121         'shell/app/cast_main_delegate.h',
122         'shell/browser/cast_browser_context.cc',
123         'shell/browser/cast_browser_context.h',
124         'shell/browser/cast_browser_main_parts.cc',
125         'shell/browser/cast_browser_main_parts.h',
126         'shell/browser/cast_content_browser_client.cc',
127         'shell/browser/cast_content_browser_client.h',
128         'shell/browser/cast_http_user_agent_settings.cc',
129         'shell/browser/cast_http_user_agent_settings.h',
130         'shell/browser/geolocation/cast_access_token_store.cc',
131         'shell/browser/geolocation/cast_access_token_store.h',
132         'shell/browser/url_request_context_factory.cc',
133         'shell/browser/url_request_context_factory.h',
134         'shell/common/cast_content_client.cc',
135         'shell/common/cast_content_client.h',
136         'shell/renderer/cast_content_renderer_client.cc',
137         'shell/renderer/cast_content_renderer_client.h',
138       ],
139       'conditions': [
140         ['chromecast_branding=="Chrome"', {
141           'dependencies': [
142             'internal/chromecast_internal.gyp:cast_gfx_internal',
143           ],
144         }, {
145           'dependencies': [
146             '../ui/ozone/ozone.gyp:eglplatform_shim_x11',
147           ],
148         }],
149       ],
150     },
151   ],  # end of targets