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 ['android_webview_build==1 and use_system_stlport==1', { | |
58 # ICU requires RTTI, which is not present in the system's stlport, so | |
59 # we have to include gabi++. We can't include it in icu.gyp because | |
60 # link_settings cannot be used inside target_conditions. This will be | |
61 # removed once we stop using the system stlport. | |
62 # http://crbug.com/409851 | |
63 'libraries': [ | |
64 '-lgabi++', | |
65 ], | |
66 }], | |
67 ], | |
68 'sources': [ | |
69 'lib/main/webview_entry_point.cc', | |
70 ], | |
71 }, | |
72 { | |
73 'target_name': 'android_webview_pak', | 10 'target_name': 'android_webview_pak', |
74 'type': 'none', | 11 'type': 'none', |
75 'dependencies': [ | 12 'dependencies': [ |
76 '<(DEPTH)/content/app/resources/content_resources.gyp:content_resources'
, | 13 '<(DEPTH)/content/app/resources/content_resources.gyp:content_resources'
, |
77 '<(DEPTH)/net/net.gyp:net_resources', | 14 '<(DEPTH)/net/net.gyp:net_resources', |
78 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources'
, | 15 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources'
, |
79 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', | 16 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', |
80 ], | 17 ], |
81 'actions': [ | 18 'actions': [ |
82 { | 19 { |
83 'action_name': 'repack_android_webview_pack', | 20 'action_name': 'repack_android_webview_pack', |
84 'variables': { | 21 'variables': { |
85 'pak_inputs': [ | 22 'pak_inputs': [ |
86 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources
.pak', | 23 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources
.pak', |
87 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resource
s_100_percent.pak', | 24 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resource
s_100_percent.pak', |
88 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', | 25 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', |
89 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', | 26 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
90 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.
pak', | 27 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.
pak', |
91 ], | 28 ], |
92 'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchro
mium.pak', | 29 'pak_output': '<(PRODUCT_DIR)/android_webview_assets/webviewchromium
.pak', |
93 }, | 30 }, |
94 'includes': [ '../build/repack_action.gypi' ], | 31 'includes': [ '../build/repack_action.gypi' ], |
95 }, | 32 }, |
96 { | 33 { |
97 'action_name': 'add_en_US_pak_locale', | 34 'action_name': 'add_en_US_pak_locale', |
98 'variables': { | 35 'variables': { |
99 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/content/app/strings/conte
nt_strings_en-US.pak'], | 36 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/content/app/strings/conte
nt_strings_en-US.pak'], |
100 'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak', | 37 'pak_output': '<(PRODUCT_DIR)/android_webview_assets/en-US.pak', |
101 }, | 38 }, |
102 'includes': [ '../build/repack_action.gypi' ], | 39 'includes': [ '../build/repack_action.gypi' ], |
103 } | 40 } |
104 ], | 41 ], |
105 }, | 42 }, |
106 { | 43 { |
107 'target_name': 'android_webview_strings_grd', | 44 'target_name': 'android_webview_strings_grd', |
108 'android_unmangled_name': 1, | 45 'android_unmangled_name': 1, |
109 'type': 'none', | 46 'type': 'none', |
110 'variables': { | 47 'variables': { |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 'renderer/aw_render_view_ext.cc', | 207 'renderer/aw_render_view_ext.cc', |
271 'renderer/aw_render_view_ext.h', | 208 'renderer/aw_render_view_ext.h', |
272 'renderer/print_web_view_helper.cc', | 209 'renderer/print_web_view_helper.cc', |
273 'renderer/print_web_view_helper.h', | 210 'renderer/print_web_view_helper.h', |
274 'renderer/print_web_view_helper_android.cc', | 211 'renderer/print_web_view_helper_android.cc', |
275 'renderer/print_web_view_helper_linux.cc', | 212 'renderer/print_web_view_helper_linux.cc', |
276 'renderer/print_render_frame_observer.cc', | 213 'renderer/print_render_frame_observer.cc', |
277 'renderer/print_render_frame_observer.h', | 214 'renderer/print_render_frame_observer.h', |
278 ], | 215 ], |
279 }, | 216 }, |
| 217 { |
| 218 'target_name': 'libwebviewchromium', |
| 219 'includes': [ |
| 220 'libwebviewchromium.gypi', |
| 221 ], |
| 222 } |
280 ], | 223 ], |
281 'conditions': [ | 224 'conditions': [ |
282 ['android_webview_build==0', { | 225 ['android_webview_build==0', { |
283 'includes': [ | 226 'includes': [ |
284 'android_webview_tests.gypi', | 227 'android_webview_tests.gypi', |
| 228 '../third_party/android_webview_glue/android_webview_glue.gypi', |
285 ], | 229 ], |
286 'targets': [ | 230 'targets': [ |
287 { | 231 { |
288 'target_name': 'android_webview_java', | 232 'target_name': 'android_webview_java', |
289 'type': 'none', | 233 'type': 'none', |
290 'dependencies': [ | 234 'dependencies': [ |
291 '../components/components.gyp:navigation_interception_java', | 235 '../components/components.gyp:navigation_interception_java', |
292 '../components/components.gyp:web_contents_delegate_android_java', | 236 '../components/components.gyp:web_contents_delegate_android_java', |
293 '../content/content.gyp:content_java', | 237 '../content/content.gyp:content_java', |
294 '../ui/android/ui_android.gyp:ui_java', | 238 '../ui/android/ui_android.gyp:ui_java', |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 '../ui/android/ui_android.gyp:ui_strings_grd', | 275 '../ui/android/ui_android.gyp:ui_strings_grd', |
332 'android_webview_jarjar_content_resources', | 276 'android_webview_jarjar_content_resources', |
333 'android_webview_jarjar_ui_resources', | 277 'android_webview_jarjar_ui_resources', |
334 'android_webview_strings_grd', | 278 'android_webview_strings_grd', |
335 ], | 279 ], |
336 }, | 280 }, |
337 ], | 281 ], |
338 }], | 282 }], |
339 ], | 283 ], |
340 } | 284 } |
OLD | NEW |