OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # TODO(torne): This is vaguely based on the downstream android target | 10 # TODO(torne): This is vaguely based on the downstream android target |
11 # "chromeview_core" and once that target has been upstreamed we should | 11 # "chromeview_core" and once that target has been upstreamed we should |
12 # just depend on it instead. | 12 # just depend on it instead. |
13 'target_name': 'webview_core', | 13 'target_name': 'webview_core', |
14 'type': 'static_library', | 14 'type': 'static_library', |
15 'dependencies': [ | 15 'dependencies': [ |
16 '../../chrome/chrome.gyp:browser', | 16 '../../chrome/chrome.gyp:browser', |
17 '../../chrome/chrome.gyp:renderer', | 17 '../../chrome/chrome.gyp:renderer', |
18 '../../content/content.gyp:content', | 18 '../../content/content.gyp:content', |
19 ], | 19 ], |
20 'include_dirs': [ | 20 'include_dirs': [ |
21 '../..', | 21 '../..', |
22 ], | 22 ], |
23 }, | 23 }, |
24 { | 24 { |
25 'target_name': 'libwebview', | 25 'target_name': 'libwebview', |
26 'type': 'shared_library', | 26 'type': 'shared_library', |
27 'dependencies': [ | 27 'dependencies': [ |
28 'webview_core', | 28 'webview_core', |
| 29 '../native/webview_native.gyp:webview_native', |
29 ], | 30 ], |
30 'include_dirs': [ | 31 'include_dirs': [ |
31 '../..', | 32 '../..', |
| 33 '../../skia/config', |
32 ], | 34 ], |
33 'sources': [ | 35 'sources': [ |
34 'main/webview_entry_point.cc', | 36 'main/webview_entry_point.cc', |
35 'main/webview_main_delegate.cc', | 37 'main/webview_main_delegate.cc', |
36 'main/webview_main_delegate.h', | 38 'main/webview_main_delegate.h', |
37 'main/webview_stubs.cc', | 39 'main/webview_stubs.cc', |
38 ], | 40 ], |
39 }, | 41 }, |
| 42 { |
| 43 'target_name': 'android_webview', |
| 44 'type' : 'none', |
| 45 'dependencies': [ |
| 46 'libwebview', |
| 47 ], |
| 48 'variables': { |
| 49 'install_binary_script': '../build/install_binary', |
| 50 }, |
| 51 'actions': [ |
| 52 { |
| 53 'action_name': 'libwebview_strip_and_install_in_android', |
| 54 'inputs': [ |
| 55 '<(SHARED_LIB_DIR)/libwebview.so', |
| 56 ], |
| 57 'outputs': [ |
| 58 '<(android_product_out)/obj/lib/libwebview.so', |
| 59 '<(android_product_out)/system/lib/libwebview.so', |
| 60 '<(android_product_out)/symbols/system/lib/libwebview.so', |
| 61 ], |
| 62 'action': [ |
| 63 '<(install_binary_script)', |
| 64 '<@(_inputs)', |
| 65 '<@(_outputs)', |
| 66 ], |
| 67 }, |
| 68 ], |
| 69 }, |
40 ], | 70 ], |
41 } | 71 } |
42 | |
43 # Local Variables: | |
44 # tab-width:2 | |
45 # indent-tabs-mode:nil | |
46 # End: | |
47 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |