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# This is all.gyp file for Android to prevent breakage in Android and other 6# platform; It will be churning a lot in the short term and eventually be merged 7# into all.gyp. 8 9{ 10 'variables': { 11 # A hook that can be overridden in other repositories to add additional 12 # compilation targets to 'All' 13 'android_app_targets%': [], 14 }, 15 'targets': [ 16 { 17 'target_name': 'All', 18 'type': 'none', 19 'dependencies': [ 20 '../content/content_shell_and_tests.gyp:content_shell_apk', 21 '../mojo/mojo.gyp:mojo_shell_apk', 22 '<@(android_app_targets)', 23 'android_builder_tests', 24 '../android_webview/android_webview.gyp:android_webview_apk', 25 '../chrome/chrome.gyp:chromium_testshell', 26 '../remoting/remoting.gyp:remoting_apk', 27 # TODO(nyquist) This should instead by a target for sync when all of 28 # the sync-related code for Android has been upstreamed. 29 # See http://crbug.com/159203 30 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_javalib', 31 ], 32 }, # target_name: All 33 { 34 'target_name': 'blink_tests', 35 'type': 'none', 36 'dependencies': [ 37 '../third_party/WebKit/public/all.gyp:all_blink', 38 '../content/content_shell_and_tests.gyp:content_shell_apk', 39 '../breakpad/breakpad.gyp:dump_syms#host', 40 '../breakpad/breakpad.gyp:minidump_stackwalk#host', 41 ], 42 }, # target_name: blink_tests 43 { 44 # TODO(jochen): Eventually remove this target after everybody and the 45 # bots started to use blink_tests only. 46 'target_name': 'all_webkit', 47 'type': 'none', 48 'dependencies': [ 49 'blink_tests', 50 ], 51 }, # target_name: all_webkit 52 { 53 # The current list of tests for android. This is temporary 54 # until the full set supported. If adding a new test here, 55 # please also add it to build/android/pylib/gtest/gtest_config.py, 56 # else the test is not run. 57 # 58 # WARNING: 59 # Do not add targets here without communicating the implications 60 # on tryserver triggers and load. Discuss with jrg please. 61 'target_name': 'android_builder_tests', 62 'type': 'none', 63 'dependencies': [ 64 '../android_webview/android_webview.gyp:android_webview_unittests', 65 '../base/android/jni_generator/jni_generator.gyp:jni_generator_tests', 66 '../base/base.gyp:base_unittests', 67 '../breakpad/breakpad.gyp:breakpad_unittests', 68 # Also compile the tools needed to deal with minidumps, they are 69 # needed to run minidump tests upstream. 70 '../breakpad/breakpad.gyp:dump_syms#host', 71 '../breakpad/breakpad.gyp:symupload#host', 72 '../breakpad/breakpad.gyp:minidump_dump#host', 73 '../breakpad/breakpad.gyp:minidump_stackwalk#host', 74 '../build/android/tests/multiple_proguards/multiple_proguards.gyp:multiple_proguards_test_apk', 75 '../cc/cc_tests.gyp:cc_perftests_apk', 76 '../cc/cc_tests.gyp:cc_unittests', 77 '../chrome/chrome.gyp:unit_tests', 78 '../components/components_tests.gyp:components_unittests', 79 '../content/content_shell_and_tests.gyp:content_browsertests', 80 '../content/content_shell_and_tests.gyp:content_gl_tests', 81 '../content/content_shell_and_tests.gyp:content_shell_test_apk', 82 '../content/content_shell_and_tests.gyp:content_unittests', 83 '../gpu/gpu.gyp:gl_tests', 84 '../gpu/gpu.gyp:gpu_unittests', 85 '../ipc/ipc.gyp:ipc_tests', 86 '../media/media.gyp:media_perftests_apk', 87 '../media/media.gyp:media_unittests', 88 '../net/net.gyp:net_unittests', 89 '../sandbox/sandbox.gyp:sandbox_linux_unittests', 90 '../sql/sql.gyp:sql_unittests', 91 '../sync/sync.gyp:sync_unit_tests', 92 '../third_party/WebKit/public/all.gyp:*', 93 '../tools/android/android_tools.gyp:android_tools', 94 '../tools/android/android_tools.gyp:memconsumer', 95 '../tools/android/findbugs_plugin/findbugs_plugin.gyp:findbugs_plugin_test', 96 '../ui/ui_unittests.gyp:ui_unittests', 97 # Required by ui_unittests. 98 # TODO(wangxianzhu): It'd better let ui_unittests depend on it, but 99 # this would cause circular gyp dependency which needs refactoring the 100 # gyps to resolve. 101 '../chrome/chrome_resources.gyp:packed_resources', 102 ], 103 'conditions': [ 104 ['"<(gtest_target_type)"=="shared_library"', { 105 'dependencies': [ 106 # Unit test bundles packaged as an apk. 107 '../android_webview/android_webview.gyp:android_webview_unittests_apk', 108 '../base/base.gyp:base_unittests_apk', 109 '../cc/cc_tests.gyp:cc_unittests_apk', 110 '../chrome/chrome.gyp:unit_tests_apk', 111 '../components/components_tests.gyp:components_unittests_apk', 112 '../content/content_shell_and_tests.gyp:content_browsertests_apk', 113 '../content/content_shell_and_tests.gyp:content_gl_tests_apk', 114 '../content/content_shell_and_tests.gyp:content_unittests_apk', 115 '../content/content_shell_and_tests.gyp:video_decode_accelerator_unittest_apk', 116 '../gpu/gpu.gyp:gl_tests_apk', 117 '../gpu/gpu.gyp:gpu_unittests_apk', 118 '../ipc/ipc.gyp:ipc_tests_apk', 119 '../media/media.gyp:media_unittests_apk', 120 '../net/net.gyp:net_unittests_apk', 121 '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk', 122 '../sql/sql.gyp:sql_unittests_apk', 123 '../sync/sync.gyp:sync_unit_tests_apk', 124 '../ui/ui_unittests.gyp:ui_unittests_apk', 125 '../android_webview/android_webview.gyp:android_webview_test_apk', 126 '../chrome/chrome.gyp:chromium_testshell_test_apk', 127 '../chrome/chrome.gyp:chromium_testshell_uiautomator_tests', 128 '../webkit/renderer/compositor_bindings/compositor_bindings_tests.gyp:webkit_compositor_bindings_unittests_apk' 129 ], 130 }], 131 ], 132 }, 133 { 134 # WebRTC Android APK tests. 135 'target_name': 'android_builder_webrtc', 136 'type': 'none', 137 'variables': { 138 # Set default value for include_tests to '0'. It is normally only 139 # used in WebRTC GYP files. It is set to '1' only when building 140 # WebRTC for Android, inside a Chromium checkout. 141 'include_tests%': 0, 142 }, 143 'conditions': [ 144 ['"<(gtest_target_type)"=="shared_library" and include_tests==1', { 145 'dependencies': [ 146 '../third_party/webrtc/build/apk_tests.gyp:*', 147 ], 148 }], 149 ], 150 }, # target_name: android_builder_webrtc 151 { 152 # WebRTC Chromium tests to run on Android. 153 'target_name': 'android_builder_chromium_webrtc', 154 'type': 'none', 155 'dependencies': [ 156 '../content/content_shell_and_tests.gyp:content_browsertests', 157 '../tools/android/android_tools.gyp:android_tools', 158 '../tools/android/android_tools.gyp:memconsumer', 159 ], 160 'conditions': [ 161 ['"<(gtest_target_type)"=="shared_library"', { 162 'dependencies': [ 163 # Unit test bundles packaged as an apk. 164 '../content/content_shell_and_tests.gyp:content_browsertests_apk', 165 ], 166 }], 167 ], 168 }, # target_name: android_builder_chromium_webrtc 169 { 170 # Experimental / in-progress targets that are expected to fail 171 # but we still try to compile them on bots (turning the stage 172 # orange, not red). 173 'target_name': 'android_experimental', 174 'type': 'none', 175 'dependencies': [ 176 ], 177 }, 178 { 179 # In-progress targets that are expected to fail and are NOT run 180 # on any bot. 181 'target_name': 'android_in_progress', 182 'type': 'none', 183 'dependencies': [ 184 ], 185 }, 186 ], # targets 187} 188