Making autoload of profiles obey the kBackgroundModeEnabled preference. That is,...
[chromium-blink-merge.git] / android_webview / android_webview.gyp
blob086523a848b9e97c7e4a0d22c7d2abe96ecc960f
1 # Copyright (c) 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.
5   'variables': {
6     'chromium_code': 1,
7   },
8   'includes': [
9     'android_webview_tests.gypi',
10   ],
11   'targets': [
12     {
13       'target_name': 'libwebviewchromium',
14       'type': 'shared_library',
15       'android_unmangled_name': 1,
16       'dependencies': [
17         'android_webview_common',
18       ],
19       'ldflags': [
20         # fix linking to hidden symbols and re-enable this (crbug.com/157326)
21         '-Wl,--no-fatal-warnings'
22       ],
23       'sources': [
24         'lib/main/webview_entry_point.cc',
25       ],
26       'conditions': [
27         ['android_build_type != 0', {
28           'libraries': [
29             # The "android" gyp backend doesn't quite handle static libraries'
30             # dependencies correctly; force this to be linked as a workaround.
31             'cpufeatures.a',
32           ],
33         }],
34       ],
35     },
36     {
37       'target_name': 'android_webview_common',
38       'type': 'static_library',
39       'dependencies': [
40         '../android_webview/native/webview_native.gyp:webview_native',
41         '../content/content.gyp:content',
42         '../content/content.gyp:navigation_interception',
43         '../content/content.gyp:web_contents_delegate_android',
44         '../ui/ui.gyp:ui_resources',
45       ],
46       'include_dirs': [
47         '..',
48         '../skia/config',
49       ],
50       'sources': [
51         'browser/aw_browser_context.cc',
52         'browser/aw_browser_context.h',
53         'browser/aw_browser_main_parts.cc',
54         'browser/aw_browser_main_parts.h',
55         'browser/aw_content_browser_client.cc',
56         'browser/aw_content_browser_client.h',
57         'browser/aw_contents_io_thread_client.h',
58         'browser/aw_cookie_access_policy.cc',
59         'browser/aw_cookie_access_policy.h',
60         'browser/aw_http_auth_handler_base.cc',
61         'browser/aw_http_auth_handler_base.h',
62         'browser/aw_login_delegate.cc',
63         'browser/aw_login_delegate.h',
64         'browser/aw_quota_permission_context.cc',
65         'browser/aw_quota_permission_context.h',
66         'browser/aw_request_interceptor.cc',
67         'browser/aw_request_interceptor.h',
68         'browser/aw_result_codes.h',
69         'browser/find_helper.cc',
70         'browser/find_helper.h',
71         'browser/input_stream.h',
72         'browser/intercepted_request_data.h',
73         'browser/net/android_stream_reader_url_request_job.cc',
74         'browser/net/android_stream_reader_url_request_job.h',
75         'browser/net/aw_network_delegate.cc',
76         'browser/net/aw_network_delegate.h',
77         'browser/net/aw_url_request_context_getter.cc',
78         'browser/net/aw_url_request_context_getter.h',
79         'browser/net/aw_url_request_job_factory.cc',
80         'browser/net/aw_url_request_job_factory.h',
81         'browser/net/init_native_callback.h',
82         'browser/net/input_stream_reader.cc',
83         'browser/net/input_stream_reader.h',
84         'browser/net_disk_cache_remover.cc',
85         'browser/net_disk_cache_remover.h',
86         'browser/renderer_host/aw_render_view_host_ext.cc',
87         'browser/renderer_host/aw_render_view_host_ext.h',
88         'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
89         'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
90         'browser/scoped_allow_wait_for_legacy_web_view_api.h',
91         'browser/scoped_allow_wait_for_legacy_web_view_api.h',
92         'common/android_webview_message_generator.cc',
93         'common/android_webview_message_generator.h',
94         'common/aw_content_client.cc',
95         'common/aw_content_client.h',
96         'common/aw_hit_test_data.cc',
97         'common/aw_hit_test_data.h',
98         'common/aw_resource.h',
99         'common/render_view_messages.cc',
100         'common/render_view_messages.h',
101         'common/url_constants.cc',
102         'common/url_constants.h',
103         'lib/aw_browser_dependency_factory_impl.cc',
104         'lib/aw_browser_dependency_factory_impl.h',
105         'lib/main/aw_main_delegate.cc',
106         'lib/main/aw_main_delegate.h',
107         'public/browser/draw_gl.h',
108         'renderer/aw_content_renderer_client.cc',
109         'renderer/aw_content_renderer_client.h',
110         'renderer/aw_render_process_observer.cc',
111         'renderer/aw_render_process_observer.h',
112         'renderer/aw_render_view_ext.cc',
113         'renderer/aw_render_view_ext.h',
114       ],
115     },
116     {
117       'target_name': 'android_webview_java',
118       'type': 'none',
119       'dependencies': [
120         '../content/content.gyp:content_java',
121         '../content/content.gyp:navigation_interception_java',
122         '../content/content.gyp:web_contents_delegate_android_java',
123         '../ui/ui.gyp:ui_java',
124       ],
125       'variables': {
126         'package_name': 'android_webview_java',
127         'java_in_dir': '../android_webview/java',
128       },
129       'includes': [ '../build/java.gypi' ],
130     },
131     {
132       'target_name': 'android_webview_apk',
133       'type': 'none',
134       'dependencies': [
135         '../base/base.gyp:base_java',
136         '../chrome/chrome_resources.gyp:packed_extra_resources',
137         '../chrome/chrome_resources.gyp:packed_resources',
138         '../content/content.gyp:content_java',
139         '../content/content.gyp:navigation_interception_java',
140         '../content/content.gyp:web_contents_delegate_android_java',
141         '../media/media.gyp:media_java',
142         '../net/net.gyp:net_java',
143         '../ui/ui.gyp:ui_java',
144         'libwebviewchromium',
145       ],
146       'variables': {
147         'package_name': 'android_webview',
148         'apk_name': 'AndroidWebView',
149         'manifest_package_name': 'org.chromium.android_webview',
150         'java_in_dir': '../android_webview/java',
151         'native_libs_paths': ['<(SHARED_LIB_DIR)/libwebviewchromium.so'],
152         'input_pak_files': [
153           '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
154           '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak',
155           '<(SHARED_INTERMEDIATE_DIR)/repack/en-US.pak',
156         ],
157         'copied_pak_files': [
158           '<(PRODUCT_DIR)/android_webview/assets/chrome.pak',
159           '<(PRODUCT_DIR)/android_webview/assets/chrome_100_percent.pak',
160           '<(PRODUCT_DIR)/android_webview/assets/en-US.pak',
161         ],
162         'additional_input_paths': [ '<@(copied_pak_files)' ],
163       },
164       'copies': [
165         {
166           'destination': '<(PRODUCT_DIR)/android_webview/assets',
167           'files': [ '<@(input_pak_files)' ]
168         },
169       ],
170       'includes': [ '../build/java_apk.gypi' ],
171     },
172   ],