blob: e69f0e2789cb23fab81a82ca91dfb2c139d13ca4 [file] [log] [blame]
kjellander442e6ee2016-06-20 01:34:06 -07001# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9# This file exists only because there's no other way to avoid errors in the
10# Chromium build due to the inclusion of build/java.gypi. GYP unfortunately
11# processes all 'includes' for all .gyp files, ignoring conditions. This
12# processing takes place early in the cycle, before it's possible to use
13# variables. It will go away when WebRTC has fully migrated to GN.
14
15{
16 'includes': [ '../build/common.gypi', ],
17 'conditions': [
18 ['OS=="android"', {
19 'targets': [
20 {
21 # |libjingle_peerconnection_java| builds a jar file with name
22 # libjingle_peerconnection_java.jar using Chrome's build system.
23 # It includes all Java files needed to setup a PeeerConnection call
24 # from Android.
25 'target_name': 'libjingle_peerconnection_java',
26 'type': 'none',
27 'dependencies': [
28 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection_so',
29 ],
30 'variables': {
31 # Designate as Chromium code and point to our lint settings to
32 # enable linting of the WebRTC code (this is the only way to make
33 # lint_action invoke the Android linter).
34 'android_manifest_path': '<(webrtc_root)/build/android/AndroidManifest.xml',
35 'suppressions_file': '<(webrtc_root)/build/android/suppressions.xml',
36 'chromium_code': 1,
37 'java_in_dir': 'java',
38 'webrtc_base_dir': '<(webrtc_root)/base',
39 'webrtc_modules_dir': '<(webrtc_root)/modules',
40 'additional_src_dirs' : [
41 'java/android',
42 '<(webrtc_base_dir)/java/src',
43 '<(webrtc_modules_dir)/audio_device/android/java/src',
44
45 ],
46 },
47 'includes': ['../../build/java.gypi'],
48 },
49 ], # targets
50 }], # OS=="android"
51 ], # conditions
52}