Add README files to content and content/public.
[chromium-blink-merge.git] / chromecast / chromecast.gyp
blob6328a512258b7238773c229593c4d64be3ce6787
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           'sources': [
51             'service/cast_platform_init_stub.cc',
52           ],
53         }],
54       ],
55     },
56     {
57       'target_name': 'cast_shell_resources',
58       'type': 'none',
59       # Place holder for cast_shell specific resources.
60     },
61     {
62       'target_name': 'cast_shell_pak',
63       'type': 'none',
64       'dependencies': [
65         'cast_shell_resources',
66         '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
67         '../content/content_resources.gyp:content_resources',
68         '../net/net.gyp:net_resources',
69         '../ui/resources/ui_resources.gyp:ui_resources',
70         '../ui/strings/ui_strings.gyp:ui_strings',
71         '../webkit/webkit_resources.gyp:webkit_resources',
72         '../webkit/webkit_resources.gyp:webkit_strings',
73       ],
74       'variables': {
75         'repack_path': '../tools/grit/grit/format/repack.py',
76       },
77       'actions': [
78         {
79           'action_name': 'repack_cast_shell_pack',
80           'variables': {
81             'pak_inputs': [
82               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
83               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
84               '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
85               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
86               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
87               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
88               '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
89               '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
90               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
91               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
92             ],
93           },
94           'inputs': [
95             '<(repack_path)',
96             '<@(pak_inputs)',
97           ],
98           'action': ['python', '<(repack_path)', '<@(_outputs)',
99                      '<@(pak_inputs)'],
100           'outputs': [
101              '<(PRODUCT_DIR)/cast_shell.pak',
102           ],
103         },
104       ],
105     },
106     {
107       'target_name': 'cast_shell',
108       'type': 'executable',
109       'dependencies': [
110         'cast_common',
111         'cast_service',
112         'cast_shell_pak',
113         '../ui/aura/aura.gyp:aura_test_support',
114         '../content/content.gyp:content',
115         '../content/content.gyp:content_app_browser',
116         '../skia/skia.gyp:skia',
117       ],
118       'sources': [
119         'net/network_change_notifier_cast.cc',
120         'net/network_change_notifier_cast.h',
121         'net/network_change_notifier_factory_cast.cc',
122         'net/network_change_notifier_factory_cast.h',
123         'shell/app/cast_main.cc',
124         'shell/app/cast_main_delegate.cc',
125         'shell/app/cast_main_delegate.h',
126         'shell/browser/cast_browser_context.cc',
127         'shell/browser/cast_browser_context.h',
128         'shell/browser/cast_browser_main_parts.cc',
129         'shell/browser/cast_browser_main_parts.h',
130         'shell/browser/cast_content_browser_client.cc',
131         'shell/browser/cast_content_browser_client.h',
132         'shell/browser/cast_http_user_agent_settings.cc',
133         'shell/browser/cast_http_user_agent_settings.h',
134         'shell/browser/geolocation/cast_access_token_store.cc',
135         'shell/browser/geolocation/cast_access_token_store.h',
136         'shell/browser/url_request_context_factory.cc',
137         'shell/browser/url_request_context_factory.h',
138         'shell/common/cast_content_client.cc',
139         'shell/common/cast_content_client.h',
140         'shell/renderer/cast_content_renderer_client.cc',
141         'shell/renderer/cast_content_renderer_client.h',
142       ],
143       'conditions': [
144         ['chromecast_branding=="Chrome"', {
145           'dependencies': [
146             'internal/chromecast_internal.gyp:cast_gfx_internal',
147           ],
148         }, {
149           'dependencies': [
150             '../ui/ozone/ozone.gyp:eglplatform_shim_x11',
151           ],
152         }],
153       ],
154     },
155   ],  # end of targets