blob: dfb2385dbf875ca41644be348e829ca493a0fc6f [file] [log] [blame]
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'chrome_android_paks.gypi', # Included for the list of pak resources.
],
'targets': [
{
'target_name': 'libchromiumtestshell',
'type': 'shared_library',
'dependencies': [
'chrome_android_core',
'chromium_testshell_jni_headers',
],
'sources': [
'android/testshell/chrome_main_delegate_testshell_android.cc',
'android/testshell/chrome_main_delegate_testshell_android.h',
'android/testshell/tab_manager.cc',
'android/testshell/tab_manager.h',
'android/testshell/testshell_entry_point.cc',
'android/testshell/testshell_stubs.cc',
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/android',
'<(SHARED_INTERMEDIATE_DIR)/chromium_testshell',
'../skia/config',
],
'conditions': [
[ 'order_profiling!=0', {
'conditions': [
[ 'OS="android"', {
'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
}],
],
}],
],
},
{
'target_name': 'chromium_testshell',
'type': 'none',
'dependencies': [
'../media/media.gyp:media_java',
'chrome.gyp:chrome_java',
'chrome_android_paks',
'libchromiumtestshell',
],
'variables': {
'package_name': 'chromium_testshell',
'apk_name': 'ChromiumTestShell',
'java_in_dir': 'android/testshell/java',
'resource_dir': '../res',
'native_libs_paths': [ '<(PRODUCT_DIR)/chromium_testshell/libs/<(android_app_abi)/libchromiumtestshell.so', ],
'additional_input_paths': [ '<@(chrome_android_pak_output_resources)', ],
},
'actions': [
{
'action_name': 'copy_and_strip_so',
'inputs': ['<(SHARED_LIB_DIR)/libchromiumtestshell.so'],
'outputs': ['<(PRODUCT_DIR)/chromium_testshell/libs/<(android_app_abi)/libchromiumtestshell.so'],
'action': [
'<(android_strip)',
'--strip-unneeded',
'<@(_inputs)',
'-o',
'<@(_outputs)',
],
},
],
'includes': [ '../build/java_apk.gypi', ],
},
{
'target_name': 'chromium_testshell_jni_headers',
'type': 'none',
'sources': [
'android/testshell/java/src/org/chromium/chrome/testshell/TabManager.java',
],
'variables': {
'jni_gen_dir': 'chromium_testshell',
},
'includes': [ '../build/jni_generator.gypi' ],
},
{
'target_name': 'chrome_android_core',
'type': 'static_library',
'dependencies': [
'chrome.gyp:browser',
'chrome.gyp:plugin',
'chrome.gyp:renderer',
'chrome.gyp:utility',
'../content/content.gyp:content',
],
'include_dirs': [
'..',
'<(SHARED_INTERMEDIATE_DIR)/android',
'<(SHARED_INTERMEDIATE_DIR)/chrome',
'<(android_ndk_include)',
],
'sources': [
'app/android/chrome_android_initializer.cc',
'app/android/chrome_android_initializer.h',
'app/android/chrome_main_delegate_android.cc',
'app/android/chrome_main_delegate_android.h',
'app/chrome_main_delegate.cc',
'app/chrome_main_delegate.h',
],
'link_settings': {
'libraries': [
'-landroid',
'-ljnigraphics',
],
},
},
{
'target_name': 'chrome_android_paks',
'type': 'none',
'dependencies': [
'<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
'<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
],
'copies': [
{
'destination': '<(chrome_android_pak_output_folder)',
'files': [ '<@(chrome_android_pak_input_resources)' ],
}
],
},
],
}