OLD | NEW |
1 # Copyright 2009 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
5 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 }, | 7 }, |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'libwebviewchromium', | |
11 'type': 'shared_library', | |
12 'android_unmangled_name': 1, | |
13 'dependencies': [ | |
14 'android_webview_common', | |
15 ], | |
16 'conditions': [ | |
17 # Avoid clashes between the versions of this library built with | |
18 # android_webview_build==1 by using a different name prefix. | |
19 [ 'android_webview_build==0', { | |
20 'product_prefix': 'libstandalone', | |
21 }], | |
22 [ 'android_webview_build==1', { | |
23 # When building inside the android tree we also need to depend on all | |
24 # the java sources generated from templates which will be needed by | |
25 # android_webview_java in android_webview/java_library_common.mk. | |
26 'dependencies': [ | |
27 '../base/base.gyp:base_java_application_state', | |
28 '../base/base.gyp:base_java_memory_pressure_level_list', | |
29 '../content/content.gyp:content_gamepad_mapping', | |
30 '../content/content.gyp:gesture_event_type_java', | |
31 '../content/content.gyp:page_transition_types_java', | |
32 '../content/content.gyp:popup_item_type_java', | |
33 '../content/content.gyp:result_codes_java', | |
34 '../content/content.gyp:screen_orientation_values_java', | |
35 '../content/content.gyp:selection_event_type_java', | |
36 '../content/content.gyp:speech_recognition_error_java', | |
37 '../media/media.gyp:media_android_imageformat_list', | |
38 '../net/net.gyp:cert_verify_status_android_java', | |
39 '../net/net.gyp:certificate_mime_types_java', | |
40 '../net/net.gyp:net_errors_java', | |
41 '../net/net.gyp:private_key_types_java', | |
42 '../ui/android/ui_android.gyp:bitmap_format_java', | |
43 '../ui/android/ui_android.gyp:window_open_disposition_java', | |
44 ], | |
45 }], | |
46 [ 'android_webview_build==1 and use_system_skia==0', { | |
47 # When not using the system skia there are linker warnings about | |
48 # overriden hidden symbols which there's no easy way to eliminate; | |
49 # disable them. http://crbug.com/157326 | |
50 'ldflags': [ | |
51 '-Wl,--no-fatal-warnings', | |
52 ], | |
53 'ldflags!': [ | |
54 '-Wl,--fatal-warnings', | |
55 ], | |
56 }], | |
57 ], | |
58 'sources': [ | |
59 'lib/main/webview_entry_point.cc', | |
60 ], | |
61 }, | |
62 { | |
63 'target_name': 'android_webview_pak', | 10 'target_name': 'android_webview_pak', |
64 'type': 'none', | 11 'type': 'none', |
65 'dependencies': [ | 12 'dependencies': [ |
66 '<(DEPTH)/content/content_resources.gyp:content_resources', | 13 '<(DEPTH)/content/content_resources.gyp:content_resources', |
67 '<(DEPTH)/net/net.gyp:net_resources', | 14 '<(DEPTH)/net/net.gyp:net_resources', |
68 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources'
, | 15 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources'
, |
69 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', | 16 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', |
70 '<(DEPTH)/webkit/glue/resources/webkit_resources.gyp:webkit_resources', | 17 '<(DEPTH)/webkit/glue/resources/webkit_resources.gyp:webkit_resources', |
71 ], | 18 ], |
72 'actions': [ | 19 'actions': [ |
73 { | 20 { |
74 'action_name': 'repack_android_webview_pack', | 21 'action_name': 'repack_android_webview_pack', |
75 'variables': { | 22 'variables': { |
76 'pak_inputs': [ | 23 'pak_inputs': [ |
77 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources
.pak', | 24 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources
.pak', |
78 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', | 25 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', |
79 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', | 26 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
80 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.
pak', | 27 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.
pak', |
81 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pa
k', | 28 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pa
k', |
82 ], | 29 ], |
83 'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchro
mium.pak', | 30 'pak_output': '<(PRODUCT_DIR)/android_webview_assets/webviewchromium
.pak', |
84 }, | 31 }, |
85 'includes': [ '../build/repack_action.gypi' ], | 32 'includes': [ '../build/repack_action.gypi' ], |
86 }, | 33 }, |
87 { | 34 { |
88 'action_name': 'add_en_US_pak_locale', | 35 'action_name': 'add_en_US_pak_locale', |
89 'variables': { | 36 'variables': { |
90 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/content/app/strings/conte
nt_strings_en-US.pak'], | 37 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/content/app/strings/conte
nt_strings_en-US.pak'], |
91 'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak', | 38 'pak_output': '<(PRODUCT_DIR)/android_webview_assets/en-US.pak', |
92 }, | 39 }, |
93 'includes': [ '../build/repack_action.gypi' ], | 40 'includes': [ '../build/repack_action.gypi' ], |
94 } | 41 } |
95 ], | 42 ], |
96 }, | 43 }, |
97 { | 44 { |
98 'target_name': 'android_webview_common', | 45 'target_name': 'android_webview_common', |
99 'type': 'static_library', | 46 'type': 'static_library', |
100 'dependencies': [ | 47 'dependencies': [ |
101 '../android_webview/native/webview_native.gyp:webview_native', | 48 '../android_webview/native/webview_native.gyp:webview_native', |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 'renderer/aw_render_view_ext.cc', | 200 'renderer/aw_render_view_ext.cc', |
254 'renderer/aw_render_view_ext.h', | 201 'renderer/aw_render_view_ext.h', |
255 'renderer/print_web_view_helper.cc', | 202 'renderer/print_web_view_helper.cc', |
256 'renderer/print_web_view_helper.h', | 203 'renderer/print_web_view_helper.h', |
257 'renderer/print_web_view_helper_android.cc', | 204 'renderer/print_web_view_helper_android.cc', |
258 'renderer/print_web_view_helper_linux.cc', | 205 'renderer/print_web_view_helper_linux.cc', |
259 'renderer/print_render_frame_observer.cc', | 206 'renderer/print_render_frame_observer.cc', |
260 'renderer/print_render_frame_observer.h', | 207 'renderer/print_render_frame_observer.h', |
261 ], | 208 ], |
262 }, | 209 }, |
| 210 { |
| 211 'target_name': 'libwebviewchromium', |
| 212 'includes': [ |
| 213 'libwebviewchromium.gypi', |
| 214 ], |
| 215 } |
263 ], | 216 ], |
264 'conditions': [ | 217 'conditions': [ |
265 ['android_webview_build==0', { | 218 ['android_webview_build==0', { |
266 'includes': [ | 219 'includes': [ |
267 'android_webview_tests.gypi', | 220 'android_webview_tests.gypi', |
| 221 'android_webview_glue.gypi', |
268 ], | 222 ], |
269 'targets': [ | 223 'targets': [ |
270 { | 224 { |
271 'target_name': 'android_webview_java', | 225 'target_name': 'android_webview_java', |
272 'type': 'none', | 226 'type': 'none', |
273 'dependencies': [ | 227 'dependencies': [ |
274 '../components/components.gyp:navigation_interception_java', | 228 '../components/components.gyp:navigation_interception_java', |
275 '../components/components.gyp:web_contents_delegate_android_java', | 229 '../components/components.gyp:web_contents_delegate_android_java', |
276 '../content/content.gyp:content_java', | 230 '../content/content.gyp:content_java', |
277 '../ui/android/ui_android.gyp:ui_java', | 231 '../ui/android/ui_android.gyp:ui_java', |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 '../content/content.gyp:content_strings_grd', | 266 '../content/content.gyp:content_strings_grd', |
313 '../ui/android/ui_android.gyp:ui_strings_grd', | 267 '../ui/android/ui_android.gyp:ui_strings_grd', |
314 'android_webview_jarjar_ui_resources', | 268 'android_webview_jarjar_ui_resources', |
315 'android_webview_jarjar_content_resources' | 269 'android_webview_jarjar_content_resources' |
316 ], | 270 ], |
317 }, | 271 }, |
318 ], | 272 ], |
319 }], | 273 }], |
320 ], | 274 ], |
321 } | 275 } |
OLD | NEW |