Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: talk/libjingle.gyp

Issue 1511633002: Add APK targets to build libjingle tests for Android. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Reverted <gtest of libjingle_media_unittests and p2p. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # 1 #
2 # libjingle 2 # libjingle
3 # Copyright 2012 Google Inc. 3 # Copyright 2012 Google Inc.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are met: 6 # modification, are permitted provided that the following conditions are met:
7 # 7 #
8 # 1. Redistributions of source code must retain the above copyright notice, 8 # 1. Redistributions of source code must retain the above copyright notice,
9 # this list of conditions and the following disclaimer. 9 # this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright notice, 10 # 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 25 matching lines...) Expand all
36 }, { 36 }, {
37 'variables': { 37 'variables': {
38 'pkg-config': 'pkg-config' 38 'pkg-config': 'pkg-config'
39 }, 39 },
40 }], 40 }],
41 ], 41 ],
42 }], 42 }],
43 ['OS=="linux" or OS=="android"', { 43 ['OS=="linux" or OS=="android"', {
44 'targets': [ 44 'targets': [
45 { 45 {
46 'target_name': 'libjingle_peerconnection_so', 46 'target_name': 'libjingle_peerconnection_jni',
47 'type': 'shared_library', 47 'type': 'static_library',
48 'dependencies': [ 48 'dependencies': [
49 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa ult', 49 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa ult',
50 'libjingle_peerconnection', 50 'libjingle_peerconnection',
51 ], 51 ],
52 'sources': [ 52 'sources': [
53 'app/webrtc/java/jni/classreferenceholder.cc', 53 'app/webrtc/java/jni/classreferenceholder.cc',
54 'app/webrtc/java/jni/classreferenceholder.h', 54 'app/webrtc/java/jni/classreferenceholder.h',
55 'app/webrtc/java/jni/jni_helpers.cc', 55 'app/webrtc/java/jni/jni_helpers.cc',
56 'app/webrtc/java/jni/jni_helpers.h', 56 'app/webrtc/java/jni/jni_helpers.h',
57 'app/webrtc/java/jni/native_handle_impl.cc', 57 'app/webrtc/java/jni/native_handle_impl.cc',
58 'app/webrtc/java/jni/native_handle_impl.h', 58 'app/webrtc/java/jni/native_handle_impl.h',
59 'app/webrtc/java/jni/peerconnection_jni.cc', 59 'app/webrtc/java/jni/peerconnection_jni.cc',
60 ], 60 ],
61 'include_dirs': [ 61 'include_dirs': [
62 '<(libyuv_dir)/include', 62 '<(libyuv_dir)/include',
63 ], 63 ],
64 'conditions': [ 64 'conditions': [
65 ['OS=="linux"', { 65 ['OS=="linux"', {
66 'defines': [
67 'HAVE_GTK',
68 ],
69 'include_dirs': [ 66 'include_dirs': [
70 '<(java_home)/include', 67 '<(java_home)/include',
71 '<(java_home)/include/linux', 68 '<(java_home)/include/linux',
72 ], 69 ],
73 'conditions': [ 70 }],
74 ['use_gtk==1', { 71 ['build_json==1', {
75 'link_settings': { 72 'dependencies': [
76 'libraries': [ 73 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
77 '<!@(pkg-config --libs-only-l gobject-2.0 gthread-2.0' 74 ],
78 ' gtk+-2.0)', 75 'export_dependent_settings': [
79 ], 76 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
80 },
81 }],
82 ], 77 ],
83 }], 78 }],
84 ['OS=="android"', { 79 ['OS=="android"', {
85 'sources': [ 80 'sources': [
81 'app/webrtc/androidvideocapturer.cc',
kjellander_webrtc 2015/12/14 04:37:50 Now these will be built when building in Chromium
perkj_webrtc 2015/12/14 07:22:21 I think we should just remove the build_with_chrom
kjellander_webrtc 2015/12/14 08:50:43 Fair enough, since Chromium uses it's own GYP file
82 'app/webrtc/androidvideocapturer.h',
86 'app/webrtc/java/jni/androidvideocapturer_jni.cc', 83 'app/webrtc/java/jni/androidvideocapturer_jni.cc',
87 'app/webrtc/java/jni/androidvideocapturer_jni.h', 84 'app/webrtc/java/jni/androidvideocapturer_jni.h',
88 ], 85 ],
89 'variables': {
90 # This library uses native JNI exports; tell GYP so that the
91 # required symbols will be kept.
92 'use_native_jni_exports': 1,
93 },
94 }], 86 }],
95 ['OS=="android" and build_with_chromium==0', { 87 ['OS=="android" and build_with_chromium==0', {
96 'sources': [ 88 'sources': [
97 'app/webrtc/java/jni/androidmediacodeccommon.h', 89 'app/webrtc/java/jni/androidmediacodeccommon.h',
98 'app/webrtc/java/jni/androidmediadecoder_jni.cc', 90 'app/webrtc/java/jni/androidmediadecoder_jni.cc',
99 'app/webrtc/java/jni/androidmediadecoder_jni.h', 91 'app/webrtc/java/jni/androidmediadecoder_jni.h',
100 'app/webrtc/java/jni/androidmediaencoder_jni.cc', 92 'app/webrtc/java/jni/androidmediaencoder_jni.cc',
101 'app/webrtc/java/jni/androidmediaencoder_jni.h', 93 'app/webrtc/java/jni/androidmediaencoder_jni.h',
102 'app/webrtc/java/jni/androidnetworkmonitor_jni.cc', 94 'app/webrtc/java/jni/androidnetworkmonitor_jni.cc',
103 'app/webrtc/java/jni/androidnetworkmonitor_jni.h', 95 'app/webrtc/java/jni/androidnetworkmonitor_jni.h',
104 'app/webrtc/java/jni/surfacetexturehelper_jni.cc', 96 'app/webrtc/java/jni/surfacetexturehelper_jni.cc',
105 'app/webrtc/java/jni/surfacetexturehelper_jni.h', 97 'app/webrtc/java/jni/surfacetexturehelper_jni.h',
106 ] 98 ]
107 }], 99 }],
108 ], 100 ],
109 }, 101 },
110 { 102 {
103 'target_name': 'libjingle_peerconnection_so',
104 'type': 'shared_library',
105 'dependencies': [
106 'libjingle_peerconnection',
107 'libjingle_peerconnection_jni',
108 ],
109 'sources': [
110 'app/webrtc/java/jni/jni_onload.cc',
111 ],
112 'variables': {
113 # This library uses native JNI exports; tell GYP so that the
114 # required symbols will be kept.
115 'use_native_jni_exports': 1,
116 },
117 'conditions': [
118 ['OS=="linux"', {
119 'defines': [
120 'HAVE_GTK',
121 ],
122 'include_dirs': [
123 '<(java_home)/include',
124 '<(java_home)/include/linux',
125 ],
126 'conditions': [
127 ['use_gtk==1', {
128 'link_settings': {
129 'libraries': [
130 '<!@(pkg-config --libs-only-l gobject-2.0 gthread-2.0'
131 ' gtk+-2.0)',
132 ],
133 },
134 }],
135 ],
136 }],
137 ],
138 },
139 {
111 'target_name': 'libjingle_peerconnection_jar', 140 'target_name': 'libjingle_peerconnection_jar',
112 'type': 'none', 141 'type': 'none',
113 'actions': [ 142 'actions': [
114 { 143 {
115 # TODO(jiayl): extract peerconnection_java_files and android_java_ files into a webrtc 144 # TODO(jiayl): extract peerconnection_java_files and android_java_ files into a webrtc
116 # gyp var that can be included here, or better yet, build a proper .jar in webrtc 145 # gyp var that can be included here, or better yet, build a proper .jar in webrtc
117 # and include it here. 146 # and include it here.
118 'variables': { 147 'variables': {
119 'java_src_dir': 'app/webrtc/java/src', 148 'java_src_dir': 'app/webrtc/java/src',
120 'webrtc_base_dir': '<(webrtc_root)/base', 149 'webrtc_base_dir': '<(webrtc_root)/base',
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 'app/webrtc/videotrack.h', 816 'app/webrtc/videotrack.h',
788 'app/webrtc/videotrackrenderers.cc', 817 'app/webrtc/videotrackrenderers.cc',
789 'app/webrtc/videotrackrenderers.h', 818 'app/webrtc/videotrackrenderers.h',
790 'app/webrtc/webrtcsdp.cc', 819 'app/webrtc/webrtcsdp.cc',
791 'app/webrtc/webrtcsdp.h', 820 'app/webrtc/webrtcsdp.h',
792 'app/webrtc/webrtcsession.cc', 821 'app/webrtc/webrtcsession.cc',
793 'app/webrtc/webrtcsession.h', 822 'app/webrtc/webrtcsession.h',
794 'app/webrtc/webrtcsessiondescriptionfactory.cc', 823 'app/webrtc/webrtcsessiondescriptionfactory.cc',
795 'app/webrtc/webrtcsessiondescriptionfactory.h', 824 'app/webrtc/webrtcsessiondescriptionfactory.h',
796 ], 825 ],
797 'conditions': [
798 ['OS=="android" and build_with_chromium==0', {
799 'sources': [
800 'app/webrtc/androidvideocapturer.h',
801 'app/webrtc/androidvideocapturer.cc',
802 ],
803 }],
804 ],
805 }, # target libjingle_peerconnection 826 }, # target libjingle_peerconnection
806 ], 827 ],
807 } 828 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698