| # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| # |
| # Use of this source code is governed by a BSD-style license |
| # that can be found in the LICENSE file in the root of the source |
| # tree. An additional intellectual property rights grant can be found |
| # in the file PATENTS. All contributing project authors may |
| # be found in the AUTHORS file in the root of the source tree. |
| |
| # This file exists in two versions. A no-op version under |
| # webrtc/build/apk_tests_noop.gyp and this one. This gyp file builds the apk |
| # unit tests (for Android) assuming that WebRTC is built inside a Chromium |
| # workspace. The no-op version is included when building WebRTC without |
| # Chromium. This is a workaround for the fact that 'includes' don't expand |
| # variables and that the relative location of apk_test.gypi is different for |
| # WebRTC when built as part of Chromium and when it is built without Chromium. |
| { |
| 'includes': [ |
| '../build/common.gypi', |
| ], |
| 'targets': [ |
| { |
| 'target_name': 'modules_unittests_apk', |
| 'type': 'none', |
| 'conditions': [ |
| # TODO(henrike): remove build_with_chromium==1 when the bots are using |
| # Chromium's buildbots. |
| ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', { |
| 'variables': { |
| 'test_suite_name': 'modules_unittests', |
| 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_unittests<(SHARED_LIB_SUFFIX)', |
| }, |
| 'dependencies': [ |
| '<(webrtc_root)/modules/modules.gyp:modules_unittests', |
| ], |
| 'includes': [ |
| '../../../build/apk_test.gypi', |
| ], |
| }], |
| ], |
| }, |
| ] |
| } |
| |
| |