| 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 'package_name': 'chromium_testshell', | 7 'package_name': 'chrome_shell_apk', |
| 8 }, | 8 }, |
| 9 'includes': [ | 9 'includes': [ |
| 10 'chrome_android_paks.gypi', # Included for the list of pak resources. | 10 'chrome_android_paks.gypi', # Included for the list of pak resources. |
| 11 ], | 11 ], |
| 12 'targets': [ | 12 'targets': [ |
| 13 { | 13 { |
| 14 'target_name': 'libchromiumtestshell', | 14 'target_name': 'libchromeshell', |
| 15 'type': 'shared_library', | 15 'type': 'shared_library', |
| 16 'dependencies': [ | 16 'dependencies': [ |
| 17 '../base/base.gyp:base', | 17 '../base/base.gyp:base', |
| 18 'chrome_android_core', | 18 'chrome_android_core', |
| 19 'chrome.gyp:browser_ui', | 19 'chrome.gyp:browser_ui', |
| 20 '../content/content.gyp:content_app_browser', | 20 '../content/content.gyp:content_app_browser', |
| 21 ], | 21 ], |
| 22 'sources': [ | 22 'sources': [ |
| 23 # This file must always be included in the shared_library step to ensure | 23 # This file must always be included in the shared_library step to ensure |
| 24 # JNI_OnLoad is exported. | 24 # JNI_OnLoad is exported. |
| 25 'app/android/chrome_jni_onload.cc', | 25 'app/android/chrome_jni_onload.cc', |
| 26 'android/shell/chrome_main_delegate_testshell_android.cc', | 26 'android/shell/chrome_main_delegate_chrome_shell_android.cc', |
| 27 'android/shell/chrome_main_delegate_testshell_android.h', | 27 'android/shell/chrome_main_delegate_chrome_shell_android.h', |
| 28 "android/shell/testshell_google_location_settings_helper.cc", | 28 "android/shell/chrome_shell_google_location_settings_helper.cc", |
| 29 "android/shell/testshell_google_location_settings_helper.h", | 29 "android/shell/chrome_shell_google_location_settings_helper.h", |
| 30 ], | 30 ], |
| 31 'include_dirs': [ | 31 'include_dirs': [ |
| 32 '../skia/config', | 32 '../skia/config', |
| 33 ], | 33 ], |
| 34 'conditions': [ | 34 'conditions': [ |
| 35 [ 'order_profiling!=0', { | 35 [ 'order_profiling!=0', { |
| 36 'conditions': [ | 36 'conditions': [ |
| 37 [ 'OS=="android"', { | 37 [ 'OS=="android"', { |
| 38 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile',
], | 38 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile',
], |
| 39 }], | 39 }], |
| 40 ], | 40 ], |
| 41 }], | 41 }], |
| 42 [ 'android_use_tcmalloc==1', { | 42 [ 'android_use_tcmalloc==1', { |
| 43 'dependencies': [ | 43 'dependencies': [ |
| 44 '../base/allocator/allocator.gyp:allocator', ], | 44 '../base/allocator/allocator.gyp:allocator', ], |
| 45 }], | 45 }], |
| 46 ], | 46 ], |
| 47 }, | 47 }, |
| 48 { | 48 { |
| 49 'target_name': 'chromium_testshell', | 49 'target_name': 'chrome_shell_apk', |
| 50 'type': 'none', | 50 'type': 'none', |
| 51 'dependencies': [ | 51 'dependencies': [ |
| 52 'chrome_java', | 52 'chrome_java', |
| 53 'chromium_testshell_paks', | 53 'chrome_shell_paks', |
| 54 'libchromiumtestshell', | 54 'libchromeshell', |
| 55 '../media/media.gyp:media_java', | 55 '../media/media.gyp:media_java', |
| 56 ], | 56 ], |
| 57 'variables': { | 57 'variables': { |
| 58 'apk_name': 'ChromiumTestShell', | 58 'apk_name': 'ChromeShell', |
| 59 'manifest_package_name': 'org.chromium.chrome.shell', | 59 'manifest_package_name': 'org.chromium.chrome.shell', |
| 60 'java_in_dir': 'android/shell/java', | 60 'java_in_dir': 'android/shell/java', |
| 61 'resource_dir': 'android/shell/res', | 61 'resource_dir': 'android/shell/res', |
| 62 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)', | 62 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)', |
| 63 'native_lib_target': 'libchromiumtestshell', | 63 'native_lib_target': 'libchromeshell', |
| 64 'native_lib_version_name': '<(version_full)', | 64 'native_lib_version_name': '<(version_full)', |
| 65 'additional_input_paths': [ | 65 'additional_input_paths': [ |
| 66 '<@(chrome_android_pak_output_resources)', | 66 '<@(chrome_android_pak_output_resources)', |
| 67 ], | 67 ], |
| 68 }, | 68 }, |
| 69 'includes': [ '../build/java_apk.gypi', ], | 69 'includes': [ '../build/java_apk.gypi', ], |
| 70 }, | 70 }, |
| 71 { | 71 { |
| 72 # chromium_testshell creates a .jar as a side effect. Any java targets | 72 # chrome_shell_apk creates a .jar as a side effect. Any java targets |
| 73 # that need that .jar in their classpath should depend on this target, | 73 # that need that .jar in their classpath should depend on this target, |
| 74 # chromium_testshell_java. Dependents of chromium_testshell receive its | 74 # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its |
| 75 # jar path in the variable 'apk_output_jar_path'. | 75 # jar path in the variable 'apk_output_jar_path'. |
| 76 'target_name': 'chromium_testshell_java', | 76 # This target should only be used by targets which instrument |
| 77 # chrome_shell_apk. |
| 78 'target_name': 'chrome_shell_apk_java', |
| 77 'type': 'none', | 79 'type': 'none', |
| 78 'dependencies': [ | 80 'dependencies': [ |
| 79 'chromium_testshell', | 81 'chrome_shell_apk', |
| 80 ], | 82 ], |
| 81 'includes': [ '../build/apk_fake_jar.gypi' ], | 83 'includes': [ '../build/apk_fake_jar.gypi' ], |
| 82 }, | 84 }, |
| 83 { | 85 { |
| 84 'target_name': 'chrome_android_core', | 86 'target_name': 'chrome_android_core', |
| 85 'type': 'static_library', | 87 'type': 'static_library', |
| 86 'dependencies': [ | 88 'dependencies': [ |
| 87 'chrome.gyp:browser', | 89 'chrome.gyp:browser', |
| 88 'chrome.gyp:browser_ui', | 90 'chrome.gyp:browser_ui', |
| 89 'chrome.gyp:plugin', | 91 'chrome.gyp:plugin', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 105 'app/chrome_main_delegate.h', | 107 'app/chrome_main_delegate.h', |
| 106 ], | 108 ], |
| 107 'link_settings': { | 109 'link_settings': { |
| 108 'libraries': [ | 110 'libraries': [ |
| 109 '-landroid', | 111 '-landroid', |
| 110 '-ljnigraphics', | 112 '-ljnigraphics', |
| 111 ], | 113 ], |
| 112 }, | 114 }, |
| 113 }, | 115 }, |
| 114 { | 116 { |
| 115 'target_name': 'chromium_testshell_paks', | 117 'target_name': 'chrome_shell_paks', |
| 116 'type': 'none', | 118 'type': 'none', |
| 117 'dependencies': [ | 119 'dependencies': [ |
| 118 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources', | 120 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources', |
| 119 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources', | 121 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources', |
| 120 ], | 122 ], |
| 121 'copies': [ | 123 'copies': [ |
| 122 { | 124 { |
| 123 'destination': '<(chrome_android_pak_output_folder)', | 125 'destination': '<(chrome_android_pak_output_folder)', |
| 124 'files': [ | 126 'files': [ |
| 125 '<@(chrome_android_pak_input_resources)', | 127 '<@(chrome_android_pak_input_resources)', |
| 126 ], | 128 ], |
| 127 } | 129 } |
| 128 ], | 130 ], |
| 129 }, | 131 }, |
| 130 ], | 132 ], |
| 131 } | 133 } |
| OLD | NEW |