Reduce log spam for linux-chromeos
[chromium-blink-merge.git] / chromecast / chromecast.gyp
blob5bd856c0a901fbab583645a5e0d155102abcfc8f
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         '../ui/resources/ui_resources.gyp:ui_resources',
75         '../ui/strings/ui_strings.gyp:ui_strings',
76         '../webkit/webkit_resources.gyp:webkit_resources',
77         '../webkit/webkit_resources.gyp:webkit_strings',
78       ],
79       'actions': [
80         {
81           'action_name': 'repack_cast_shell_pack',
82           'variables': {
83             'pak_inputs': [
84               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
85               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
86               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
87               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
88               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
89               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
90               '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
91               '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
92               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
93               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
94             ],
95             'pak_output': '<(PRODUCT_DIR)/cast_shell.pak',
96           },
97           'includes': [ '../build/repack_action.gypi' ],
98         },
99       ],
100     },
101     {
102       'target_name': 'cast_shell',
103       'type': 'executable',
104       'dependencies': [
105         'cast_common',
106         'cast_service',
107         'cast_shell_pak',
108         '../ui/aura/aura.gyp:aura_test_support',
109         '../content/content.gyp:content',
110         '../content/content.gyp:content_app_browser',
111         '../skia/skia.gyp:skia',
112       ],
113       'sources': [
114         'net/network_change_notifier_cast.cc',
115         'net/network_change_notifier_cast.h',
116         'net/network_change_notifier_factory_cast.cc',
117         'net/network_change_notifier_factory_cast.h',
118         'shell/app/cast_main.cc',
119         'shell/app/cast_main_delegate.cc',
120         'shell/app/cast_main_delegate.h',
121         'shell/browser/cast_browser_context.cc',
122         'shell/browser/cast_browser_context.h',
123         'shell/browser/cast_browser_main_parts.cc',
124         'shell/browser/cast_browser_main_parts.h',
125         'shell/browser/cast_content_browser_client.cc',
126         'shell/browser/cast_content_browser_client.h',
127         'shell/browser/cast_http_user_agent_settings.cc',
128         'shell/browser/cast_http_user_agent_settings.h',
129         'shell/browser/geolocation/cast_access_token_store.cc',
130         'shell/browser/geolocation/cast_access_token_store.h',
131         'shell/browser/url_request_context_factory.cc',
132         'shell/browser/url_request_context_factory.h',
133         'shell/common/cast_content_client.cc',
134         'shell/common/cast_content_client.h',
135         'shell/renderer/cast_content_renderer_client.cc',
136         'shell/renderer/cast_content_renderer_client.h',
137       ],
138       'conditions': [
139         ['chromecast_branding=="Chrome"', {
140           'dependencies': [
141             'internal/chromecast_internal.gyp:cast_gfx_internal',
142           ],
143         }, {
144           'dependencies': [
145             '../ui/ozone/ozone.gyp:eglplatform_shim_x11',
146           ],
147         }],
148       ],
149     },
150   ],  # end of targets