| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 'includes': [ | 5 'includes': [ |
| 6 '../../chrome/chrome_android_paks.gypi', # Included for the list of pak reso
urces. | 6 '../../chrome/chrome_android_paks.gypi', # Included for the list of pak reso
urces. |
| 7 '../../build/util/version.gypi' | 7 '../../build/util/version.gypi' |
| 8 ], | 8 ], |
| 9 'variables': { | 9 'variables': { |
| 10 'chromium_code': 1, | 10 'chromium_code': 1, |
| 11 'package_name': 'chrome_public_apk', | 11 'package_name': 'chrome_public_apk', |
| 12 'manifest_package': 'org.chromium.chrome', | 12 'manifest_package': 'org.chromium.chrome', |
| 13 'chrome_public_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public_apk_
manifest/AndroidManifest.xml', | 13 'chrome_public_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public_apk_
manifest/AndroidManifest.xml', |
| 14 'chrome_public_test_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public
_test_apk_manifest/AndroidManifest.xml', | 14 'chrome_public_test_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public
_test_apk_manifest/AndroidManifest.xml', |
| 15 'chrome_java_dir': 'java_staging', | 15 'chrome_java_dir': 'java_staging', |
| 16 'chrome_java_tests_dir': 'javatests', | 16 'chrome_java_tests_dir': 'javatests', |
| 17 'chrome_java_test_support_dir': '../test/android/javatests_staging', | 17 'chrome_java_test_support_dir': '../test/android/javatests_staging', |
| 18 'chrome_native_sources_dir': '../browser/android/', | 18 'chrome_native_sources_dir': '../browser/android/', |
| 19 # This list is shared with GN. | 19 # This list is shared with GN. |
| 20 'chrome_staging_jni_files': [ | |
| 21 '<(chrome_java_dir)/src/org/chromium/chrome/browser/bookmark/EditBookmarkH
elper.java', | |
| 22 '<(chrome_java_dir)/src/org/chromium/chrome/browser/compositor/CompositorV
iew.java', | |
| 23 '<(chrome_java_dir)/src/org/chromium/chrome/browser/compositor/scene_layer
/ContextualSearchSceneLayer.java', | |
| 24 '<(chrome_java_dir)/src/org/chromium/chrome/browser/compositor/scene_layer
/ReaderModeSceneLayer.java', | |
| 25 '<(chrome_java_dir)/src/org/chromium/chrome/browser/compositor/scene_layer
/TabListSceneLayer.java', | |
| 26 '<(chrome_java_dir)/src/org/chromium/chrome/browser/compositor/scene_layer
/TabStripSceneLayer.java', | |
| 27 '<(chrome_java_dir)/src/org/chromium/chrome/browser/contextualsearch/Conte
xtualSearchManager.java', | |
| 28 '<(chrome_java_dir)/src/org/chromium/chrome/browser/contextualsearch/Conte
xtualSearchTabHelper.java', | |
| 29 '<(chrome_java_dir)/src/org/chromium/chrome/browser/document/DocumentWebCo
ntentsDelegate.java', | |
| 30 '<(chrome_java_dir)/src/org/chromium/chrome/browser/rlz/RevenueStats.java'
, | |
| 31 '<(chrome_java_dir)/src/org/chromium/chrome/browser/tab/ThumbnailTabHelper
.java', | |
| 32 ], | |
| 33 # This list is shared with GN. | |
| 34 'chrome_staging_native_sources': [ | |
| 35 '<(chrome_native_sources_dir)/bookmark/edit_bookmark_helper.cc', | |
| 36 '<(chrome_native_sources_dir)/bookmark/edit_bookmark_helper.h', | |
| 37 '<(chrome_native_sources_dir)/chrome_main_delegate_staging_android.cc', | |
| 38 '<(chrome_native_sources_dir)/chrome_main_delegate_staging_android.h', | |
| 39 '<(chrome_native_sources_dir)/compositor/compositor_view.cc', | |
| 40 '<(chrome_native_sources_dir)/compositor/compositor_view.h', | |
| 41 '<(chrome_native_sources_dir)/compositor/layer/reader_mode_layer.cc', | |
| 42 '<(chrome_native_sources_dir)/compositor/layer/reader_mode_layer.h', | |
| 43 '<(chrome_native_sources_dir)/compositor/layer/tab_handle_layer.cc', | |
| 44 '<(chrome_native_sources_dir)/compositor/layer/tab_handle_layer.h', | |
| 45 '<(chrome_native_sources_dir)/compositor/scene_layer/contextual_search_sce
ne_layer.cc', | |
| 46 '<(chrome_native_sources_dir)/compositor/scene_layer/contextual_search_sce
ne_layer.h', | |
| 47 '<(chrome_native_sources_dir)/compositor/scene_layer/reader_mode_scene_lay
er.cc', | |
| 48 '<(chrome_native_sources_dir)/compositor/scene_layer/reader_mode_scene_lay
er.h', | |
| 49 '<(chrome_native_sources_dir)/compositor/scene_layer/tab_list_scene_layer.
cc', | |
| 50 '<(chrome_native_sources_dir)/compositor/scene_layer/tab_list_scene_layer.
h', | |
| 51 '<(chrome_native_sources_dir)/compositor/scene_layer/tab_strip_scene_layer
.cc', | |
| 52 '<(chrome_native_sources_dir)/compositor/scene_layer/tab_strip_scene_layer
.h', | |
| 53 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_context.c
c', | |
| 54 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_context.h
', | |
| 55 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_delegate.
cc', | |
| 56 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_delegate.
h', | |
| 57 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_manager.c
c', | |
| 58 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_manager.h
', | |
| 59 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_tab_helpe
r.cc', | |
| 60 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_tab_helpe
r.h', | |
| 61 '<(chrome_native_sources_dir)/document/document_web_contents_delegate.cc', | |
| 62 '<(chrome_native_sources_dir)/rlz/revenue_stats.cc', | |
| 63 '<(chrome_native_sources_dir)/rlz/revenue_stats.h', | |
| 64 '<(chrome_native_sources_dir)/staging_jni_registrar.cc', | |
| 65 '<(chrome_native_sources_dir)/staging_jni_registrar.h', | |
| 66 '<(chrome_native_sources_dir)/tab/thumbnail_tab_helper_android.cc', | |
| 67 '<(chrome_native_sources_dir)/tab/thumbnail_tab_helper_android.h', | |
| 68 ], | |
| 69 # This list is shared with GN. | |
| 70 # Defines a list of source files should be present in the open-source | 20 # Defines a list of source files should be present in the open-source |
| 71 # chrome-apk but not in the published static_library which is included in th
e | 21 # chrome-apk but not in the published static_library which is included in th
e |
| 72 # real chrome for android. | 22 # real chrome for android. |
| 73 'chrome_public_app_native_sources': [ | 23 'chrome_public_app_native_sources': [ |
| 74 '<(chrome_native_sources_dir)/chrome_entry_point.cc', | 24 '<(chrome_native_sources_dir)/chrome_entry_point.cc', |
| 75 '<(chrome_native_sources_dir)/chrome_main_delegate_staging_android_initial
izer.cc', | 25 '<(chrome_native_sources_dir)/chrome_main_delegate_staging_android_initial
izer.cc', |
| 76 '<(chrome_native_sources_dir)/chrome_staging_jni_onload.cc', | 26 '<(chrome_native_sources_dir)/chrome_staging_jni_onload.cc', |
| 77 '<(chrome_native_sources_dir)/chrome_staging_jni_onload.h', | 27 '<(chrome_native_sources_dir)/chrome_staging_jni_onload.h', |
| 78 ], | 28 ], |
| 79 }, | 29 }, |
| 80 'targets': [ | 30 'targets': [ |
| 81 { | 31 { |
| 82 # GN: //chrome/browser/android:chrome_staging | 32 # TODO(newt): delete this once all references are gone. |
| 83 'target_name': 'libchrome_staging', | 33 'target_name': 'libchrome_staging', |
| 84 'type': 'static_library', | |
| 85 'dependencies': [ | |
| 86 'staging_jni_headers', | |
| 87 '<(DEPTH)/chrome/chrome.gyp:browser', | |
| 88 '<(DEPTH)/components/components.gyp:component_metrics_proto', | |
| 89 '<(DEPTH)/skia/skia.gyp:skia', | |
| 90 '<(DEPTH)/third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | |
| 91 ], | |
| 92 'sources': [ | |
| 93 '<@(chrome_staging_native_sources)', | |
| 94 ], | |
| 95 'include_dirs': [ | |
| 96 '<(DEPTH)', | |
| 97 '<(SHARED_INTERMEDIATE_DIR)/staging/android', | |
| 98 '<(android_ndk_include)', # For native_window.h, GL includes, etc. | |
| 99 '<(DEPTH)/skia/config', | |
| 100 ], | |
| 101 'link_settings': { | |
| 102 'libraries': [ | |
| 103 '-landroid', # ANativeWindow | |
| 104 '-ljnigraphics', # NDK access to bitmap | |
| 105 ], | |
| 106 }, | |
| 107 'conditions': [ | |
| 108 ['safe_browsing!=0', { | |
| 109 'sources': [ | |
| 110 '<(chrome_native_sources_dir)/spdy_proxy_resource_throttle.cc', | |
| 111 '<(chrome_native_sources_dir)/spdy_proxy_resource_throttle.h', | |
| 112 ], | |
| 113 }], | |
| 114 ], | |
| 115 }, | |
| 116 { | |
| 117 # GN: //chrome/android:staging_jni_headers | |
| 118 'target_name': 'staging_jni_headers', | |
| 119 'type': 'none', | 34 'type': 'none', |
| 120 'sources': [ | |
| 121 '<@(chrome_staging_jni_files)', | |
| 122 ], | |
| 123 'variables': { | |
| 124 'jni_gen_package': 'staging/android', | |
| 125 }, | |
| 126 'includes': [ '../../build/jni_generator.gypi' ], | |
| 127 }, | 35 }, |
| 128 { | 36 { |
| 129 # GN: //chrome/android:chrome_staging_java | 37 # GN: //chrome/android:chrome_staging_java |
| 130 'target_name': 'chrome_staging_java', | 38 'target_name': 'chrome_staging_java', |
| 131 'type': 'none', | 39 'type': 'none', |
| 132 'variables': { | 40 'variables': { |
| 133 'java_in_dir': '<(chrome_java_dir)', | 41 'java_in_dir': '<(chrome_java_dir)', |
| 134 }, | 42 }, |
| 135 'dependencies': [ | 43 'dependencies': [ |
| 136 'custom_tabs_service_aidl', | 44 'custom_tabs_service_aidl', |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 'dependencies_res_zip_paths': ['<(jinja_outputs_zip)'], | 125 'dependencies_res_zip_paths': ['<(jinja_outputs_zip)'], |
| 218 }, | 126 }, |
| 219 }, | 127 }, |
| 220 'includes': [ '../../build/android/jinja_template.gypi' ], | 128 'includes': [ '../../build/android/jinja_template.gypi' ], |
| 221 }, | 129 }, |
| 222 { | 130 { |
| 223 # GN: //chrome/android:chrome_public | 131 # GN: //chrome/android:chrome_public |
| 224 'target_name': 'libchrome_public', | 132 'target_name': 'libchrome_public', |
| 225 'type': 'shared_library', | 133 'type': 'shared_library', |
| 226 'dependencies': [ | 134 'dependencies': [ |
| 227 'libchrome_staging', | |
| 228 '<(DEPTH)/chrome/chrome.gyp:chrome_android_core', | 135 '<(DEPTH)/chrome/chrome.gyp:chrome_android_core', |
| 229 ], | 136 ], |
| 230 'include_dirs': [ | 137 'include_dirs': [ |
| 231 '<(DEPTH)', | 138 '<(DEPTH)', |
| 232 ], | 139 ], |
| 233 'sources': [ | 140 'sources': [ |
| 234 '<@(chrome_public_app_native_sources)', | 141 '<@(chrome_public_app_native_sources)', |
| 235 ], | 142 ], |
| 236 'ldflags': [ | 143 'ldflags': [ |
| 237 # Some android targets still depend on --gc-sections to link. | 144 # Some android targets still depend on --gc-sections to link. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 # chrome_public_apk creates a .jar as a side effect. Any java targets | 217 # chrome_public_apk creates a .jar as a side effect. Any java targets |
| 311 # that need that .jar in their classpath should depend on this target, | 218 # that need that .jar in their classpath should depend on this target, |
| 312 'target_name': 'chrome_public_apk_java', | 219 'target_name': 'chrome_public_apk_java', |
| 313 'type': 'none', | 220 'type': 'none', |
| 314 'dependencies': [ | 221 'dependencies': [ |
| 315 'chrome_public_apk', | 222 'chrome_public_apk', |
| 316 ], | 223 ], |
| 317 'includes': [ '../../build/apk_fake_jar.gypi' ], | 224 'includes': [ '../../build/apk_fake_jar.gypi' ], |
| 318 }, | 225 }, |
| 319 { | 226 { |
| 320 # GN: //chrome/browser/android:chrome_staging_unittests | 227 # TODO(newt): delete this target once all references are gone. |
| 321 'target_name': 'chrome_staging_unittests', | 228 'target_name': 'chrome_staging_unittests', |
| 322 'type': 'static_library', | 229 'type': 'static_library', |
| 323 'sources': [ | 230 'sources': [ |
| 324 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_delegat
e_unittest.cc', | 231 # This file is already tested elsewhere but is included here to |
| 325 '<(chrome_native_sources_dir)/history_report/delta_file_commons_unittest
.cc', | 232 # prevent this from being an empty static_library, which would |
| 326 '<(chrome_native_sources_dir)/history_report/delta_file_backend_leveldb_
unittest.cc', | 233 # break the the test APK that depends on this. |
| 327 '<(chrome_native_sources_dir)/history_report/usage_reports_buffer_backen
d_unittest.cc', | 234 '../browser/android/policy/policy_manager_unittest.cc', |
| 328 '<(chrome_native_sources_dir)/policy/policy_manager_unittest.cc', | |
| 329 ], | 235 ], |
| 330 'dependencies': [ | 236 'dependencies': [ |
| 331 'libchrome_staging', | |
| 332 '<(DEPTH)/base/base.gyp:base_java', | 237 '<(DEPTH)/base/base.gyp:base_java', |
| 238 '<(DEPTH)/chrome/chrome.gyp:browser', |
| 333 '<(DEPTH)/chrome/chrome.gyp:chrome_java', | 239 '<(DEPTH)/chrome/chrome.gyp:chrome_java', |
| 334 '<(DEPTH)/chrome/chrome.gyp:delta_file_proto', | |
| 335 '<(DEPTH)/chrome/chrome.gyp:test_support_unit', | 240 '<(DEPTH)/chrome/chrome.gyp:test_support_unit', |
| 336 '<(DEPTH)/net/net.gyp:net_test_support', | 241 '<(DEPTH)/net/net.gyp:net_test_support', |
| 337 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | 242 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 338 '<(DEPTH)/testing/gtest.gyp:gtest', | 243 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 339 ], | 244 ], |
| 340 'include_dirs': [ | |
| 341 '<(DEPTH)', | |
| 342 ], | |
| 343 }, | 245 }, |
| 344 { | 246 { |
| 345 # GN: None. | 247 # GN: None. |
| 346 # This target is for sharing tests between both upstream and internal | 248 # This target is for sharing tests between both upstream and internal |
| 347 # trees until sufficient test coverage is upstream. | 249 # trees until sufficient test coverage is upstream. |
| 348 'target_name': 'chrome_shared_test_java', | 250 'target_name': 'chrome_shared_test_java', |
| 349 'type': 'none', | 251 'type': 'none', |
| 350 'variables': { | 252 'variables': { |
| 351 'java_in_dir': '<(chrome_java_tests_dir)', | 253 'java_in_dir': '<(chrome_java_tests_dir)', |
| 352 }, | 254 }, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 ], | 307 ], |
| 406 }, | 308 }, |
| 407 ], | 309 ], |
| 408 } | 310 } |
| 409 | 311 |
| 410 # Local Variables: | 312 # Local Variables: |
| 411 # tab-width:2 | 313 # tab-width:2 |
| 412 # indent-tabs-mode:nil | 314 # indent-tabs-mode:nil |
| 413 # End: | 315 # End: |
| 414 # vim: set expandtab tabstop=2 shiftwidth=2: | 316 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |