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

Side by Side Diff: android_webview/android_webview.gyp

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 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
« no previous file with comments | « no previous file | android_webview/android_webview_shell.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 2009 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 'variables': {
6 'chromium_code': 1,
7 'system_webview_package_name%': 'com.android.webview',
8 },
9 'targets': [
10 {
11 'target_name': 'android_webview_pak',
12 'type': 'none',
13 'dependencies': [
14 '<(DEPTH)/components/components_resources.gyp:components_resources',
15 '<(DEPTH)/content/app/resources/content_resources.gyp:content_resources' ,
16 '<(DEPTH)/net/net.gyp:net_resources',
17 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources' ,
18 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
19 ],
20 'variables': {
21 'conditions': [
22 ['target_arch=="arm" or target_arch=="ia32" or target_arch=="mipsel"', {
23 'arch_suffix':'32'
24 }],
25 ['target_arch=="arm64" or target_arch=="x64" or target_arch=="mips64el "', {
26 'arch_suffix':'64'
27 }],
28 ],
29 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/android_webview',
30 },
31 'actions': [
32 # GN version: //android_webview:generate_aw_resources
33 {
34 'action_name': 'generate_aw_resources',
35 'variables': {
36 'grit_grd_file': 'ui/aw_resources.grd',
37 },
38 'includes': [ '../build/grit_action.gypi' ],
39 },
40 # GN version: //android_webview:repack_pack
41 {
42 'action_name': 'repack_android_webview_pack',
43 'variables': {
44 'pak_inputs': [
45 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources .pak',
46 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_res ources_100_percent.pak',
47 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resource s_100_percent.pak',
48 '<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pak',
49 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
50 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
51 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent. pak',
52 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
53 '<(grit_out_dir)/aw_resources.pak',
54 ],
55 'pak_output': '<(webview_chromium_pak_path)',
56 },
57 'includes': [ '../build/repack_action.gypi' ],
58 },
59 # GN version: //android_webview:generate_aw_strings
60 {
61 'action_name': 'generate_aw_strings',
62 'variables': {
63 'grit_grd_file': 'ui/aw_strings.grd',
64 },
65 'includes': [ '../build/grit_action.gypi' ],
66 },
67 # GN version: //android_webview:generate_components_strings
68 {
69 'action_name': 'generate_components_strings',
70 'variables': {
71 # components_strings contains strings from all components. WebView
72 # will never display most of them, so we try to limit the included
73 # strings
74 'grit_whitelist': 'ui/grit_components_whitelist.txt',
75 'grit_grd_file': '../components/components_strings.grd',
76 },
77 'includes': [ '../build/grit_action.gypi' ],
78 },
79 # GN Version: //android_webview:repack_locales
80 {
81 'action_name': 'android_webview_repack_locales',
82 'variables': {
83 'repack_locales': 'tools/webview_repack_locales.py',
84 },
85 'inputs': [
86 '<(repack_locales)',
87 '<!@pymod_do_main(webview_repack_locales -i -p <(PRODUCT_DIR) -s <(S HARED_INTERMEDIATE_DIR) <(locales))'
88 ],
89 'outputs': [
90 '<!@pymod_do_main(webview_repack_locales -o -p <(PRODUCT_DIR) -s <(S HARED_INTERMEDIATE_DIR) <(locales))'
91 ],
92 'action': [
93 'python',
94 '<(repack_locales)',
95 '-p', '<(PRODUCT_DIR)',
96 '-s', '<(SHARED_INTERMEDIATE_DIR)',
97 '<@(locales)',
98 ],
99 },
100 # GN version: //android_webview/rename_snapshot_blob
101 {
102 'action_name': 'rename_snapshot_blob',
103 'inputs': [
104 '<(PRODUCT_DIR)/snapshot_blob.bin',
105 ],
106 'outputs': [
107 '<(PRODUCT_DIR)/snapshot_blob_<(arch_suffix).bin',
108 ],
109 'action': [
110 'python',
111 '<(DEPTH)/build/cp.py',
112 '<@(_inputs)',
113 '<@(_outputs)',
114 ],
115 },
116 # GN version: //android_webview/rename_natives_blob
117 {
118 'action_name': 'rename_natives_blob',
119 'inputs': [
120 '<(PRODUCT_DIR)/natives_blob.bin',
121 ],
122 'outputs': [
123 '<(PRODUCT_DIR)/natives_blob_<(arch_suffix).bin',
124 ],
125 'action': [
126 'python',
127 '<(DEPTH)/build/cp.py',
128 '<@(_inputs)',
129 '<@(_outputs)',
130 ],
131 },
132 # GN version: //android_webview/generate_webview_license_notice
133 {
134 'action_name': 'generate_webview_license_notice',
135 'inputs': [
136 '<!@(python <(DEPTH)/android_webview/tools/webview_licenses.py notic e_deps)',
137 '<(DEPTH)/android_webview/tools/licenses_notice.tmpl',
138 '<(DEPTH)/android_webview/tools/webview_licenses.py',
139 ],
140 'outputs': [
141 '<(webview_licenses_path)',
142 ],
143 'action': [
144 'python',
145 '<(DEPTH)/android_webview/tools/webview_licenses.py',
146 'notice',
147 '<(webview_licenses_path)',
148 ],
149 'message': 'Generating WebView license notice',
150 },
151 ],
152 },
153 # GN version: //android_webview/locale_paks
154 {
155 'target_name': 'android_webview_locale_paks',
156 'type': 'none',
157 'variables': {
158 'locale_pak_files': [
159 '<@(webview_locales_input_common_paks)',
160 '<@(webview_locales_input_individual_paks)',
161 ],
162 },
163 'includes': [
164 '../build/android/locale_pak_resources.gypi',
165 ],
166 },
167 {
168 # GN version: //android_webview:strings_grd
169 'target_name': 'android_webview_strings_grd',
170 'android_unmangled_name': 1,
171 'type': 'none',
172 'variables': {
173 'grd_file': '../android_webview/java/strings/android_webview_strings.grd ',
174 },
175 'includes': [
176 '../build/java_strings_grd.gypi',
177 ],
178 },
179 {
180 # GN version: //android_webview/common:version
181 'target_name': 'android_webview_version',
182 'type': 'none',
183 'direct_dependent_settings': {
184 'include_dirs': [
185 '<(SHARED_INTERMEDIATE_DIR)',
186 ],
187 },
188 # Because generate_version generates a header, we must set the
189 # hard_dependency flag.
190 'hard_dependency': 1,
191 'actions': [
192 {
193 'action_name': 'generate_version',
194 'includes': [
195 '../build/util/version.gypi',
196 ],
197 'variables': {
198 'template_input_path': 'common/aw_version_info_values.h.version',
199 },
200 'inputs': [
201 '<(version_py_path)',
202 '<(template_input_path)',
203 '<(version_path)',
204 '<(lastchange_path)',
205 ],
206 'outputs': [
207 '<(SHARED_INTERMEDIATE_DIR)/android_webview/common/aw_version_info_v alues.h',
208 ],
209 'action': [
210 'python',
211 '<(version_py_path)',
212 '-f', '<(version_path)',
213 '-f', '<(lastchange_path)',
214 '<(template_input_path)',
215 '<@(_outputs)',
216 ],
217 'message': 'Generating version information',
218 },
219 ],
220 },
221 # GN version: //android_webview:common
222 {
223 'target_name': 'android_webview_common',
224 'type': 'static_library',
225 'dependencies': [
226 '../android_webview/native/webview_native.gyp:webview_native',
227 '../cc/cc.gyp:cc_surfaces',
228 '../components/components.gyp:auto_login_parser',
229 '../components/components.gyp:autofill_content_renderer',
230 '../components/components.gyp:breakpad_host',
231 '../components/components.gyp:cdm_browser',
232 '../components/components.gyp:cdm_renderer',
233 '../components/components.gyp:component_metrics_proto',
234 '../components/components.gyp:crash_component',
235 '../components/components.gyp:metrics',
236 '../components/components.gyp:metrics_gpu',
237 '../components/components.gyp:metrics_net',
238 '../components/components.gyp:metrics_profiler',
239 '../components/components.gyp:metrics_ui',
240 '../components/components.gyp:navigation_interception',
241 '../components/components.gyp:printing_common',
242 '../components/components.gyp:printing_browser',
243 '../components/components.gyp:printing_renderer',
244 '../components/components.gyp:supervised_user_error_page',
245 '../components/components.gyp:supervised_user_error_page_gin',
246 '../components/components.gyp:visitedlink_browser',
247 '../components/components.gyp:visitedlink_renderer',
248 '../components/components.gyp:web_contents_delegate_android',
249 '../components/components.gyp:web_restrictions_browser',
250 '../content/content.gyp:content_app_both',
251 '../content/content.gyp:content_browser',
252 '../gin/gin.gyp:gin',
253 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
254 '../gpu/gpu.gyp:command_buffer_service',
255 '../gpu/gpu.gyp:gl_in_process_context',
256 '../gpu/gpu.gyp:gles2_c_lib',
257 '../gpu/gpu.gyp:gles2_implementation',
258 '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
259 '../media/media.gyp:media',
260 '../media/midi/midi.gyp:midi',
261 '../net/net.gyp:net_extras',
262 '../printing/printing.gyp:printing',
263 '../skia/skia.gyp:skia',
264 '../third_party/WebKit/public/blink.gyp:blink',
265 '../ui/events/events.gyp:gesture_detection',
266 '../ui/gl/gl.gyp:gl',
267 '../ui/gl/init/gl_init.gyp:gl_init',
268 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
269 '../url/ipc/url_ipc.gyp:url_ipc',
270 '../v8/src/v8.gyp:v8',
271 'android_webview_pak',
272 'android_webview_version',
273 '../components/components.gyp:pref_registry',
274 '../components/url_formatter/url_formatter.gyp:url_formatter',
275 ],
276 'include_dirs': [
277 '..',
278 '../skia/config',
279 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/',
280 ],
281 'sources': [
282 'browser/aw_browser_context.cc',
283 'browser/aw_browser_context.h',
284 'browser/aw_browser_main_parts.cc',
285 'browser/aw_browser_main_parts.h',
286 'browser/aw_browser_permission_request_delegate.h',
287 'browser/aw_browser_policy_connector.cc',
288 'browser/aw_browser_policy_connector.h',
289 'browser/aw_content_browser_client.cc',
290 'browser/aw_content_browser_client.h',
291 'browser/aw_contents_client_bridge_base.cc',
292 'browser/aw_contents_client_bridge_base.h',
293 'browser/aw_contents_io_thread_client.h',
294 'browser/aw_cookie_access_policy.cc',
295 'browser/aw_cookie_access_policy.h',
296 'browser/aw_devtools_manager_delegate.cc',
297 'browser/aw_devtools_manager_delegate.h',
298 'browser/aw_download_manager_delegate.cc',
299 'browser/aw_download_manager_delegate.h',
300 'browser/aw_form_database_service.cc',
301 'browser/aw_form_database_service.h',
302 'browser/aw_gl_surface.cc',
303 'browser/aw_gl_surface.h',
304 'browser/aw_http_auth_handler_base.cc',
305 'browser/aw_http_auth_handler_base.h',
306 'browser/aw_javascript_dialog_manager.cc',
307 'browser/aw_javascript_dialog_manager.h',
308 'browser/aw_locale_manager.h',
309 'browser/aw_login_delegate.cc',
310 'browser/aw_login_delegate.h',
311 'browser/aw_message_port_message_filter.cc',
312 'browser/aw_message_port_message_filter.h',
313 'browser/aw_message_port_service.h',
314 'browser/aw_metrics_service_client.cc',
315 'browser/aw_metrics_service_client.h',
316 'browser/aw_permission_manager.cc',
317 'browser/aw_permission_manager.h',
318 'browser/aw_print_manager.cc',
319 'browser/aw_print_manager.h',
320 'browser/aw_printing_message_filter.cc',
321 'browser/aw_printing_message_filter.h',
322 'browser/aw_quota_manager_bridge.cc',
323 'browser/aw_quota_manager_bridge.h',
324 'browser/aw_quota_permission_context.cc',
325 'browser/aw_quota_permission_context.h',
326 'browser/aw_render_thread_context_provider.cc',
327 'browser/aw_render_thread_context_provider.h',
328 'browser/aw_resource_context.cc',
329 'browser/aw_resource_context.h',
330 'browser/aw_result_codes.h',
331 'browser/aw_ssl_host_state_delegate.cc',
332 'browser/aw_ssl_host_state_delegate.h',
333 'browser/aw_web_preferences_populater.cc',
334 'browser/aw_web_preferences_populater.h',
335 'browser/browser_view_renderer.cc',
336 'browser/browser_view_renderer.h',
337 'browser/browser_view_renderer_client.h',
338 'browser/child_frame.cc',
339 'browser/child_frame.h',
340 'browser/compositor_id.cc',
341 'browser/compositor_id.h',
342 'browser/deferred_gpu_command_service.cc',
343 'browser/deferred_gpu_command_service.h',
344 'browser/find_helper.cc',
345 'browser/find_helper.h',
346 'browser/gl_view_renderer_manager.cc',
347 'browser/gl_view_renderer_manager.h',
348 'browser/hardware_renderer.cc',
349 'browser/hardware_renderer.h',
350 'browser/icon_helper.cc',
351 'browser/icon_helper.h',
352 'browser/input_stream.h',
353 'browser/jni_dependency_factory.h',
354 'browser/net/android_stream_reader_url_request_job.cc',
355 'browser/net/android_stream_reader_url_request_job.h',
356 'browser/net/aw_cookie_store_wrapper.cc',
357 'browser/net/aw_cookie_store_wrapper.h',
358 'browser/net/aw_http_user_agent_settings.cc',
359 'browser/net/aw_http_user_agent_settings.h',
360 'browser/net/aw_network_change_notifier.cc',
361 'browser/net/aw_network_change_notifier.h',
362 'browser/net/aw_network_change_notifier_factory.cc',
363 'browser/net/aw_network_change_notifier_factory.h',
364 'browser/net/aw_network_delegate.cc',
365 'browser/net/aw_network_delegate.h',
366 'browser/net/aw_request_interceptor.cc',
367 'browser/net/aw_request_interceptor.h',
368 'browser/net/aw_url_request_context_getter.cc',
369 'browser/net/aw_url_request_context_getter.h',
370 'browser/net/aw_url_request_job_factory.cc',
371 'browser/net/aw_url_request_job_factory.h',
372 'browser/net/aw_web_resource_response.h',
373 'browser/net/init_native_callback.h',
374 'browser/net/input_stream_reader.cc',
375 'browser/net/input_stream_reader.h',
376 'browser/net/token_binding_manager.cc',
377 'browser/net/token_binding_manager.h',
378 'browser/net_disk_cache_remover.cc',
379 'browser/net_disk_cache_remover.h',
380 'browser/parent_compositor_draw_constraints.cc',
381 'browser/parent_compositor_draw_constraints.h',
382 'browser/parent_output_surface.cc',
383 'browser/parent_output_surface.h',
384 'browser/popup_touch_handle_drawable.cc',
385 'browser/popup_touch_handle_drawable.h',
386 'browser/render_thread_manager.cc',
387 'browser/render_thread_manager.h',
388 'browser/renderer_host/aw_render_view_host_ext.cc',
389 'browser/renderer_host/aw_render_view_host_ext.h',
390 'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
391 'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
392 'browser/scoped_allow_wait_for_legacy_web_view_api.h',
393 'browser/scoped_app_gl_state_restore.cc',
394 'browser/scoped_app_gl_state_restore.h',
395 'common/android_webview_message_generator.cc',
396 'common/android_webview_message_generator.h',
397 'common/aw_content_client.cc',
398 'common/aw_content_client.h',
399 'common/aw_descriptors.h',
400 'common/aw_hit_test_data.cc',
401 'common/aw_hit_test_data.h',
402 'common/aw_media_client_android.cc',
403 'common/aw_media_client_android.h',
404 'common/aw_message_port_messages.h',
405 'common/aw_resource.h',
406 'common/aw_switches.cc',
407 'common/aw_switches.h',
408 'common/devtools_instrumentation.h',
409 'common/render_view_messages.cc',
410 'common/render_view_messages.h',
411 'common/url_constants.cc',
412 'common/url_constants.h',
413 'crash_reporter/aw_microdump_crash_reporter.cc',
414 'crash_reporter/aw_microdump_crash_reporter.h',
415 'gpu/aw_content_gpu_client.cc',
416 'gpu/aw_content_gpu_client.h',
417 'lib/aw_browser_dependency_factory_impl.cc',
418 'lib/aw_browser_dependency_factory_impl.h',
419 'lib/main/aw_main_delegate.cc',
420 'lib/main/aw_main_delegate.h',
421 'lib/main/webview_jni_onload.cc',
422 'lib/main/webview_jni_onload.h',
423 'public/browser/draw_gl.h',
424 'renderer/aw_content_renderer_client.cc',
425 'renderer/aw_content_renderer_client.h',
426 'renderer/aw_content_settings_client.cc',
427 'renderer/aw_content_settings_client.h',
428 'renderer/aw_key_systems.cc',
429 'renderer/aw_key_systems.h',
430 'renderer/aw_message_port_client.cc',
431 'renderer/aw_message_port_client.h',
432 'renderer/aw_print_web_view_helper_delegate.cc',
433 'renderer/aw_print_web_view_helper_delegate.h',
434 'renderer/aw_render_frame_ext.cc',
435 'renderer/aw_render_frame_ext.h',
436 'renderer/aw_render_thread_observer.cc',
437 'renderer/aw_render_thread_observer.h',
438 'renderer/aw_render_view_ext.cc',
439 'renderer/aw_render_view_ext.h',
440 'renderer/print_render_frame_observer.cc',
441 'renderer/print_render_frame_observer.h',
442 ],
443 'conditions': [
444 ['configuration_policy==1', {
445 'dependencies': [
446 '../components/components.gyp:policy',
447 '../components/components.gyp:policy_component',
448 ],
449 }],
450 ],
451 },
452 # GN version: //android_webview:libwebviewchromium
453 {
454 'target_name': 'libwebviewchromium',
455 'includes': [
456 'libwebviewchromium.gypi',
457 ],
458 },
459 {
460 # GN version: //android_webview:android_webview_java
461 'target_name': 'android_webview_java',
462 'type': 'none',
463 'dependencies': [
464 '../android_webview/native/webview_native.gyp:android_webview_aw_permiss ion_request_resource',
465 '../components/components.gyp:external_video_surface_java',
466 '../components/components.gyp:navigation_interception_java',
467 '../components/components.gyp:web_contents_delegate_android_java',
468 '../components/components.gyp:web_restrictions_java_browser',
469 '../content/content.gyp:content_java',
470 '../ui/android/ui_android.gyp:ui_java',
471 'android_webview_locale_paks',
472 'android_webview_strings_grd',
473 ],
474 'variables': {
475 'java_in_dir': '../android_webview/java',
476 'has_java_resources': 1,
477 'R_package': 'org.chromium.android_webview',
478 'R_package_relpath': 'org/chromium/android_webview',
479 # for lint; do not use the system webview's manifest because it's a temp late
480 'android_manifest_path': '../android_webview/test/shell/AndroidManifest. xml',
481 },
482 'conditions': [
483 ['configuration_policy==1', {
484 'dependencies': [
485 '../components/components.gyp:policy_java',
486 ],
487 }],
488 ],
489 'includes': [ '../build/java.gypi' ],
490 },
491 # GN version: //android_webview/glue
492 {
493 'target_name': 'system_webview_glue_java',
494 'variables': {
495 'android_sdk_jar': '../third_party/android_platform/webview/frameworks_6 .0.jar',
496 'java_in_dir': 'glue/java',
497 },
498 'includes': [ 'apk/system_webview_glue_common.gypi' ],
499 },
500 ],
501 'conditions': [
502 ['use_webview_internal_framework==0', {
503 'targets': [
504 # GN version: //android_webview:system_webview_apk
505 {
506 'target_name': 'system_webview_apk',
507 'dependencies': [
508 'system_webview_glue_java',
509 ],
510 'variables': {
511 'apk_name': 'SystemWebView',
512 'android_sdk_jar': '../third_party/android_platform/webview/framewor ks_6.0.jar',
513 'java_in_dir': '../build/android/empty',
514 'resource_dir': 'apk/java/res',
515 'android_manifest_template_vars': ['package=<(system_webview_package _name)'],
516 },
517 'includes': [ 'apk/system_webview_apk_common.gypi' ],
518 },
519 ],
520 }]
521 ],
522 'includes': [
523 'android_webview_tests.gypi',
524 'apk/system_webview_paks.gypi',
525 ],
526 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/android_webview_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698