Chromium Code Reviews| 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)', |
|
Yaron
2015/06/19 13:53:58
I think this is evidence of poor test coverage. Yo
newt (away)
2015/06/19 16:47:07
Yeah. I guess the C++ files I've moved are tested
| |
| 134 'R_package': 'com.google.android.apps.chrome', | 42 'R_package': 'com.google.android.apps.chrome', |
| 135 'R_package_relpath': 'com/google/android/apps/chrome', | 43 'R_package_relpath': 'com/google/android/apps/chrome', |
| 136 'has_java_resources': 1, | 44 'has_java_resources': 1, |
| 137 }, | 45 }, |
| 138 'dependencies': [ | 46 'dependencies': [ |
| 139 'custom_tabs_service_aidl', | 47 'custom_tabs_service_aidl', |
| 140 '<(DEPTH)/base/base.gyp:base_java', | 48 '<(DEPTH)/base/base.gyp:base_java', |
| 141 '<(DEPTH)/chrome/chrome.gyp:chrome_java', | 49 '<(DEPTH)/chrome/chrome.gyp:chrome_java', |
| 142 '<(DEPTH)/chrome/chrome.gyp:document_tab_model_info_proto_java', | 50 '<(DEPTH)/chrome/chrome.gyp:document_tab_model_info_proto_java', |
| 143 '<(DEPTH)/components/components.gyp:app_restrictions_resources', | 51 '<(DEPTH)/components/components.gyp:app_restrictions_resources', |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 'dependencies_res_zip_paths': ['<(jinja_outputs_zip)'], | 128 'dependencies_res_zip_paths': ['<(jinja_outputs_zip)'], |
| 221 }, | 129 }, |
| 222 }, | 130 }, |
| 223 'includes': [ '../../build/android/jinja_template.gypi' ], | 131 'includes': [ '../../build/android/jinja_template.gypi' ], |
| 224 }, | 132 }, |
| 225 { | 133 { |
| 226 # GN: //chrome/android:chrome_public | 134 # GN: //chrome/android:chrome_public |
| 227 'target_name': 'libchrome_public', | 135 'target_name': 'libchrome_public', |
| 228 'type': 'shared_library', | 136 'type': 'shared_library', |
| 229 'dependencies': [ | 137 'dependencies': [ |
| 230 'libchrome_staging', | |
| 231 '<(DEPTH)/chrome/chrome.gyp:chrome_android_core', | 138 '<(DEPTH)/chrome/chrome.gyp:chrome_android_core', |
| 232 ], | 139 ], |
| 233 'include_dirs': [ | 140 'include_dirs': [ |
| 234 '<(DEPTH)', | 141 '<(DEPTH)', |
| 235 ], | 142 ], |
| 236 'sources': [ | 143 'sources': [ |
| 237 '<@(chrome_public_app_native_sources)', | 144 '<@(chrome_public_app_native_sources)', |
| 238 ], | 145 ], |
| 239 'ldflags': [ | 146 'ldflags': [ |
| 240 # Some android targets still depend on --gc-sections to link. | 147 # Some android targets still depend on --gc-sections to link. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 313 # chrome_public_apk creates a .jar as a side effect. Any java targets | 220 # chrome_public_apk creates a .jar as a side effect. Any java targets |
| 314 # that need that .jar in their classpath should depend on this target, | 221 # that need that .jar in their classpath should depend on this target, |
| 315 'target_name': 'chrome_public_apk_java', | 222 'target_name': 'chrome_public_apk_java', |
| 316 'type': 'none', | 223 'type': 'none', |
| 317 'dependencies': [ | 224 'dependencies': [ |
| 318 'chrome_public_apk', | 225 'chrome_public_apk', |
| 319 ], | 226 ], |
| 320 'includes': [ '../../build/apk_fake_jar.gypi' ], | 227 'includes': [ '../../build/apk_fake_jar.gypi' ], |
| 321 }, | 228 }, |
| 322 { | 229 { |
| 323 # GN: //chrome/browser/android:chrome_staging_unittests | 230 # TODO(newt): delete this target once all references are gone. |
| 324 'target_name': 'chrome_staging_unittests', | 231 'target_name': 'chrome_staging_unittests', |
| 325 'type': 'static_library', | 232 'type': 'static_library', |
| 326 'sources': [ | 233 'sources': [ |
| 327 '<(chrome_native_sources_dir)/contextualsearch/contextual_search_delegat e_unittest.cc', | 234 # This file is already tested elsewhere but is included here to |
| 328 '<(chrome_native_sources_dir)/history_report/delta_file_commons_unittest .cc', | 235 # prevent this from being an empty static_library, which would |
| 329 '<(chrome_native_sources_dir)/history_report/delta_file_backend_leveldb_ unittest.cc', | 236 # break the the test APK that depends on this. |
| 330 '<(chrome_native_sources_dir)/history_report/usage_reports_buffer_backen d_unittest.cc', | 237 '../browser/android/policy/policy_manager_unittest.cc', |
| 331 '<(chrome_native_sources_dir)/policy/policy_manager_unittest.cc', | |
| 332 ], | 238 ], |
| 333 'dependencies': [ | 239 'dependencies': [ |
| 334 'libchrome_staging', | |
| 335 '<(DEPTH)/base/base.gyp:base_java', | 240 '<(DEPTH)/base/base.gyp:base_java', |
| 241 '<(DEPTH)/chrome/chrome.gyp:browser', | |
| 336 '<(DEPTH)/chrome/chrome.gyp:chrome_java', | 242 '<(DEPTH)/chrome/chrome.gyp:chrome_java', |
| 337 '<(DEPTH)/chrome/chrome.gyp:delta_file_proto', | |
| 338 '<(DEPTH)/chrome/chrome.gyp:test_support_unit', | 243 '<(DEPTH)/chrome/chrome.gyp:test_support_unit', |
| 339 '<(DEPTH)/net/net.gyp:net_test_support', | 244 '<(DEPTH)/net/net.gyp:net_test_support', |
| 340 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | 245 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 341 '<(DEPTH)/testing/gtest.gyp:gtest', | 246 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 342 ], | 247 ], |
| 343 'include_dirs': [ | |
| 344 '<(DEPTH)', | |
| 345 ], | |
| 346 }, | 248 }, |
| 347 { | 249 { |
| 348 # GN: None. | 250 # GN: None. |
| 349 # This target is for sharing tests between both upstream and internal | 251 # This target is for sharing tests between both upstream and internal |
| 350 # trees until sufficient test coverage is upstream. | 252 # trees until sufficient test coverage is upstream. |
| 351 'target_name': 'chrome_shared_test_java', | 253 'target_name': 'chrome_shared_test_java', |
| 352 'type': 'none', | 254 'type': 'none', |
| 353 'variables': { | 255 'variables': { |
| 354 'java_in_dir': '<(chrome_java_tests_dir)', | 256 'java_in_dir': '<(chrome_java_tests_dir)', |
| 355 }, | 257 }, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 408 ], | 310 ], |
| 409 }, | 311 }, |
| 410 ], | 312 ], |
| 411 } | 313 } |
| 412 | 314 |
| 413 # Local Variables: | 315 # Local Variables: |
| 414 # tab-width:2 | 316 # tab-width:2 |
| 415 # indent-tabs-mode:nil | 317 # indent-tabs-mode:nil |
| 416 # End: | 318 # End: |
| 417 # vim: set expandtab tabstop=2 shiftwidth=2: | 319 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |