OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 { |
| 5 'variables': { |
| 6 'chromium_code': 1, |
| 7 }, |
| 8 'includes': [ |
| 9 'chrome_android_paks.gypi', # Included for the list of pak resources. |
| 10 ], |
| 11 'targets': [ |
| 12 { |
| 13 'target_name': 'libchromiumtestshell', |
| 14 'type': 'shared_library', |
| 15 'dependencies': [ |
| 16 'chrome_android_core', |
| 17 ], |
| 18 'sources': [ |
| 19 'android/testshell/chrome_main_delegate_testshell_android.cc', |
| 20 'android/testshell/chrome_main_delegate_testshell_android.h', |
| 21 'android/testshell/testshell_entry_point.cc', |
| 22 'android/testshell/testshell_stubs.cc', |
| 23 ], |
| 24 'include_dirs': [ |
| 25 '<(SHARED_INTERMEDIATE_DIR)/android', |
| 26 '../skia/config', |
| 27 ], |
| 28 'conditions': [ |
| 29 [ 'order_profiling!=0', { |
| 30 'conditions': [ |
| 31 [ 'OS="android"', { |
| 32 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile',
], |
| 33 }], |
| 34 ], |
| 35 }], |
| 36 ], |
| 37 }, |
| 38 { |
| 39 'target_name': 'chromium_testshell', |
| 40 'type': 'none', |
| 41 'dependencies': [ |
| 42 'chrome_android_paks', |
| 43 'libchromiumtestshell', |
| 44 ], |
| 45 'actions': [ |
| 46 { |
| 47 'action_name': 'copy_and_strip_so', |
| 48 'inputs': ['<(SHARED_LIB_DIR)/libchromiumtestshell.so'], |
| 49 'outputs': ['<(PRODUCT_DIR)/chromium_testshell/libs/<(android_app_abi)
/libchromiumtestshell.so'], |
| 50 'action': [ |
| 51 '<(android_strip)', |
| 52 '--strip-unneeded', |
| 53 '<@(_inputs)', |
| 54 '-o', |
| 55 '<@(_outputs)', |
| 56 ], |
| 57 }, |
| 58 { |
| 59 'action_name': 'chromium_testshell_generate_apk', |
| 60 'inputs': [ |
| 61 '<@(chrome_android_pak_output_resources)', |
| 62 '<!@(find android/testshell/java/src -name "*.java")', |
| 63 # TODO(dtrainor): Uncomment these once resources are added. |
| 64 #'<!@(find android/testshell/java/res -name "*.png")', |
| 65 #'<!@(find android/testshell/java/res -name "*.xml")', |
| 66 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', |
| 67 '<(PRODUCT_DIR)/lib.java/chromium_net.jar', |
| 68 '<(PRODUCT_DIR)/lib.java/chromium_media.jar', |
| 69 '<(PRODUCT_DIR)/lib.java/chromium_content.jar', |
| 70 '<(PRODUCT_DIR)/lib.java/chromium_chrome.jar', |
| 71 '<(PRODUCT_DIR)/lib.java/chromium_web_contents_delegate_android.jar'
, |
| 72 '<(PRODUCT_DIR)/chromium_testshell/libs/<(android_app_abi)/libchromi
umtestshell.so' |
| 73 ], |
| 74 'outputs': [ |
| 75 '<(PRODUCT_DIR)/chromium_testshell/ChromiumTestShell-debug.apk', |
| 76 ], |
| 77 'action': [ |
| 78 'ant', |
| 79 '-DPRODUCT_DIR=<(ant_build_out)', |
| 80 '-DAPP_ABI=<(android_app_abi)', |
| 81 '-DANDROID_SDK=<(android_sdk)', |
| 82 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
| 83 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
| 84 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
| 85 '-DANDROID_GDBSERVER=<(android_gdbserver)', |
| 86 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
| 87 '-buildfile', |
| 88 '<(DEPTH)/chrome/android/testshell/java/chromium_testshell_apk.xml', |
| 89 ], |
| 90 }, |
| 91 ], |
| 92 }, |
| 93 { |
| 94 'target_name': 'chrome_android_core', |
| 95 'type': 'static_library', |
| 96 'dependencies': [ |
| 97 'chrome.gyp:browser', |
| 98 'chrome.gyp:plugin', |
| 99 'chrome.gyp:renderer', |
| 100 'chrome.gyp:utility', |
| 101 '../content/content.gyp:content', |
| 102 ], |
| 103 'include_dirs': [ |
| 104 '..', |
| 105 '<(SHARED_INTERMEDIATE_DIR)/android', |
| 106 '<(SHARED_INTERMEDIATE_DIR)/chrome', |
| 107 '<(android_ndk_include)', |
| 108 ], |
| 109 'sources': [ |
| 110 'app/android/chrome_android_initializer.cc', |
| 111 'app/android/chrome_android_initializer.h', |
| 112 'app/android/chrome_main_delegate_android.cc', |
| 113 'app/android/chrome_main_delegate_android.h', |
| 114 'app/chrome_main_delegate.cc', |
| 115 'app/chrome_main_delegate.h', |
| 116 ], |
| 117 'link_settings': { |
| 118 'libraries': [ |
| 119 '-landroid', |
| 120 '-ljnigraphics', |
| 121 ], |
| 122 }, |
| 123 }, |
| 124 { |
| 125 'target_name': 'chrome_android_paks', |
| 126 'type': 'none', |
| 127 'dependencies': [ |
| 128 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources', |
| 129 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources', |
| 130 ], |
| 131 'copies': [ |
| 132 { |
| 133 'destination': '<(chrome_android_pak_output_folder)', |
| 134 'files': [ '<@(chrome_android_pak_input_resources)' ], |
| 135 } |
| 136 ], |
| 137 }, |
| 138 ], |
| 139 } |
| 140 |
OLD | NEW |