Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: apps/shell/app_shell.gyp

Issue 223613005: Create new app_shell.gyp for app_shell targets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « apps/apps.gypi ('k') | build/all.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 {
6 'variables': {
7 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
8 },
9 'targets': [
10 {
11 'target_name': 'app_shell_pak',
12 'type': 'none',
13 'dependencies': [
14 # Need extension related resources in common_resources.pak and
15 # renderer_resources_100_percent.pak
16 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
17 # Need app related resources in theme_resources_100_percent.pak
18 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
19 # Need dev-tools related resources in shell_resources.pak and
20 # devtools_resources.pak.
21 '<(DEPTH)/content/content_shell_and_tests.gyp:generate_content_shell_res ources',
22 '<(DEPTH)/content/browser/devtools/devtools_resources.gyp:devtools_resou rces',
23 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
24 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
25 ],
26 'actions': [
27 {
28 'action_name': 'repack_app_shell_pack',
29 'variables': {
30 'pak_inputs': [
31 '<(grit_out_dir)/common_resources.pak',
32 '<(grit_out_dir)/extensions_api_resources.pak',
33 # TODO(jamescook): Extract the extension/app related resources
34 # from generated_resources_en-US.pak and
35 # theme_resources_100_percent.pak.
36 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_en-US.pak',
37 '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources_100_percent. pak',
38 '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_100_percent.pak ',
39 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
40 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_sett ings_en-US.pak',
41 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_perce nt.pak',
42 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
43 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
44 ],
45 'pak_output': '<(PRODUCT_DIR)/app_shell.pak',
46 },
47 'includes': [ '../../build/repack_action.gypi' ],
48 },
49 ],
50 },
51 {
52 # In this case, "temporary" means until //extensions houses all code
53 # necessary to support the app_shell_lib target. This target must be
54 # destroyed. See http://crbug.com/359656.
55 'target_name': 'app_shell_temporary_deps',
56 'type': 'static_library',
57 'defines!': ['CONTENT_IMPLEMENTATION'],
58 'variables': {
59 'chromium_code': 1,
60 },
61 'dependencies': [
62 # browser and browser_extensions are required because we still
63 # rely on the chrome.app.window API.
64 '<(DEPTH)/chrome/chrome.gyp:browser',
65 '<(DEPTH)/chrome/chrome.gyp:browser_extensions',
66 # The remaining chrome.gyp dependencies are needed for the renderer.
67 # They can go away when app_shell has no more //chrome/renderer deps.
68 '<(DEPTH)/chrome/chrome.gyp:debugger',
69 '<(DEPTH)/chrome/chrome.gyp:plugin',
70 '<(DEPTH)/chrome/chrome.gyp:renderer',
71 '<(DEPTH)/chrome/chrome.gyp:utility',
72 '<(DEPTH)/third_party/WebKit/public/blink_devtools.gyp:blink_devtools_fr ontend_resources',
73 ]
74 },
75 {
76 'target_name': 'app_shell_lib',
77 'type': 'static_library',
78 'defines!': ['CONTENT_IMPLEMENTATION'],
79 'variables': {
80 'chromium_code': 1,
81 },
82 'dependencies': [
83 'app_shell_temporary_deps',
84 '<(DEPTH)/apps/common/api/api.gyp:apps_api',
85 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
86 # TODO(rockot): Dependencies above this line are temporary.
87 # See http://crbug.com/359656.
88 'app_shell_pak',
89 '<(DEPTH)/base/base.gyp:base',
90 '<(DEPTH)/base/base.gyp:base_prefs_test_support',
91 '<(DEPTH)/content/content.gyp:content',
92 '<(DEPTH)/content/content.gyp:content_gpu',
93 '<(DEPTH)/content/content.gyp:content_ppapi_plugin',
94 '<(DEPTH)/content/content.gyp:content_worker',
95 '<(DEPTH)/content/content_shell_and_tests.gyp:content_shell_lib',
96 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
97 '<(DEPTH)/extensions/extensions.gyp:extensions_browser',
98 '<(DEPTH)/extensions/extensions.gyp:extensions_common',
99 '<(DEPTH)/skia/skia.gyp:skia',
100 '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
101 '<(DEPTH)/ui/views/views.gyp:views',
102 '<(DEPTH)/ui/wm/wm.gyp:wm_test_support',
103 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
104 ],
105 'include_dirs': [
106 '../..',
107 '<(SHARED_INTERMEDIATE_DIR)',
108 ],
109 'sources': [
110 'app/shell_main_delegate.cc',
111 'app/shell_main_delegate.h',
112 'browser/shell_app_sorting.cc',
113 'browser/shell_app_sorting.h',
114 'browser/shell_app_window_delegate.cc',
115 'browser/shell_app_window_delegate.h',
116 'browser/shell_apps_client.cc',
117 'browser/shell_apps_client.h',
118 'browser/shell_browser_context.cc',
119 'browser/shell_browser_context.h',
120 'browser/shell_browser_main_parts.cc',
121 'browser/shell_browser_main_parts.h',
122 'browser/shell_content_browser_client.cc',
123 'browser/shell_content_browser_client.h',
124 'browser/shell_desktop_controller.cc',
125 'browser/shell_desktop_controller.h',
126 'browser/shell_extension_system.cc',
127 'browser/shell_extension_system.h',
128 'browser/shell_extension_system_factory.cc',
129 'browser/shell_extension_system_factory.h',
130 'browser/shell_extension_web_contents_observer.cc',
131 'browser/shell_extension_web_contents_observer.h',
132 'browser/shell_extensions_browser_client.cc',
133 'browser/shell_extensions_browser_client.h',
134 'common/shell_content_client.cc',
135 'common/shell_content_client.h',
136 'common/shell_extensions_client.cc',
137 'common/shell_extensions_client.h',
138 'renderer/shell_content_renderer_client.cc',
139 'renderer/shell_content_renderer_client.h',
140 ],
141 },
142 {
143 'target_name': 'app_shell',
144 'type': 'executable',
145 'defines!': ['CONTENT_IMPLEMENTATION'],
146 'variables': {
147 'chromium_code': 1,
148 },
149 'dependencies': [
150 'app_shell_lib',
151 'app_shell_pak',
152 ],
153 'include_dirs': [
154 '../..',
155 ],
156 'sources': [
157 'app/shell_main.cc',
158 ],
159 'conditions': [
160 ['OS=="win"', {
161 'msvs_settings': {
162 'VCLinkerTool': {
163 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
164 },
165 },
166 'msvs_large_pdb': 1,
167 'dependencies': [
168 '<(DEPTH)/sandbox/sandbox.gyp:sandbox',
169 ],
170 }],
171 ],
172 },
173 {
174 'target_name': 'app_shell_browsertests',
175 'type': '<(gtest_target_type)',
176 'variables': {
177 'chromium_code': 1,
178 },
179 'dependencies': [
180 'app_shell_lib',
181 # TODO(yoz): find the right deps
182 '<(DEPTH)/base/base.gyp:test_support_base',
183 '<(DEPTH)/content/content.gyp:content_app_both',
184 '<(DEPTH)/content/content_shell_and_tests.gyp:content_browser_test_suppo rt',
185 '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
186 '<(DEPTH)/testing/gtest.gyp:gtest',
187 ],
188 'defines': [
189 'HAS_OUT_OF_PROC_TEST_RUNNER',
190 ],
191 'msvs_large_pdb': 1,
192 'sources': [
193 # TODO(yoz): Refactor once we have a second test target.
194 '../test/app_shell_test.h',
195 '../test/app_shell_test.cc',
196 '../test/apps_test_launcher_delegate.cc',
197 '../test/apps_test_launcher_delegate.h',
198 '../test/apps_tests_main.cc',
199 ],
200 },
201 ], # targets
202 }
OLDNEW
« no previous file with comments | « apps/apps.gypi ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698