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

Side by Side Diff: talk/libjingle.gyp

Issue 1521993002: Revert of Add APK targets to build libjingle tests for Android. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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
« no previous file with comments | « talk/app/webrtc/webrtcsdp_unittest.cc ('k') | talk/libjingle_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_jni', 46 'target_name': 'libjingle_peerconnection_so',
47 'type': 'static_library', 47 'type': 'shared_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 'include_dirs': [
67 '<(java_home)/include',
68 '<(java_home)/include/linux',
69 ],
70 }],
71 ['build_json==1', {
72 'dependencies': [
73 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
74 ],
75 'export_dependent_settings': [
76 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
77 ],
78 }],
79 ['OS=="android"', {
80 'sources': [
81 'app/webrtc/androidvideocapturer.cc',
82 'app/webrtc/androidvideocapturer.h',
83 'app/webrtc/java/jni/androidmediacodeccommon.h',
84 'app/webrtc/java/jni/androidmediadecoder_jni.cc',
85 'app/webrtc/java/jni/androidmediadecoder_jni.h',
86 'app/webrtc/java/jni/androidmediaencoder_jni.cc',
87 'app/webrtc/java/jni/androidmediaencoder_jni.h',
88 'app/webrtc/java/jni/androidnetworkmonitor_jni.cc',
89 'app/webrtc/java/jni/androidnetworkmonitor_jni.h',
90 'app/webrtc/java/jni/androidvideocapturer_jni.cc',
91 'app/webrtc/java/jni/androidvideocapturer_jni.h',
92 'app/webrtc/java/jni/surfacetexturehelper_jni.cc',
93 'app/webrtc/java/jni/surfacetexturehelper_jni.h',
94 ]
95 }],
96 ],
97 },
98 {
99 'target_name': 'libjingle_peerconnection_so',
100 'type': 'shared_library',
101 'dependencies': [
102 'libjingle_peerconnection',
103 'libjingle_peerconnection_jni',
104 ],
105 'sources': [
106 'app/webrtc/java/jni/jni_onload.cc',
107 ],
108 'variables': {
109 # This library uses native JNI exports; tell GYP so that the
110 # required symbols will be kept.
111 'use_native_jni_exports': 1,
112 },
113 'conditions': [
114 ['OS=="linux"', {
115 'defines': [ 66 'defines': [
116 'HAVE_GTK', 67 'HAVE_GTK',
117 ], 68 ],
118 'include_dirs': [ 69 'include_dirs': [
119 '<(java_home)/include', 70 '<(java_home)/include',
120 '<(java_home)/include/linux', 71 '<(java_home)/include/linux',
121 ], 72 ],
122 'conditions': [ 73 'conditions': [
123 ['use_gtk==1', { 74 ['use_gtk==1', {
124 'link_settings': { 75 'link_settings': {
125 'libraries': [ 76 'libraries': [
126 '<!@(pkg-config --libs-only-l gobject-2.0 gthread-2.0' 77 '<!@(pkg-config --libs-only-l gobject-2.0 gthread-2.0'
127 ' gtk+-2.0)', 78 ' gtk+-2.0)',
128 ], 79 ],
129 }, 80 },
130 }], 81 }],
131 ], 82 ],
132 }], 83 }],
84 ['OS=="android"', {
85 'sources': [
86 'app/webrtc/java/jni/androidvideocapturer_jni.cc',
87 'app/webrtc/java/jni/androidvideocapturer_jni.h',
88 ],
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 }],
95 ['OS=="android" and build_with_chromium==0', {
96 'sources': [
97 'app/webrtc/java/jni/androidmediacodeccommon.h',
98 'app/webrtc/java/jni/androidmediadecoder_jni.cc',
99 'app/webrtc/java/jni/androidmediadecoder_jni.h',
100 'app/webrtc/java/jni/androidmediaencoder_jni.cc',
101 'app/webrtc/java/jni/androidmediaencoder_jni.h',
102 'app/webrtc/java/jni/androidnetworkmonitor_jni.cc',
103 'app/webrtc/java/jni/androidnetworkmonitor_jni.h',
104 'app/webrtc/java/jni/surfacetexturehelper_jni.cc',
105 'app/webrtc/java/jni/surfacetexturehelper_jni.h',
106 ]
107 }],
133 ], 108 ],
134 }, 109 },
135 { 110 {
136 'target_name': 'libjingle_peerconnection_jar', 111 'target_name': 'libjingle_peerconnection_jar',
137 'type': 'none', 112 'type': 'none',
138 'actions': [ 113 'actions': [
139 { 114 {
140 # TODO(jiayl): extract peerconnection_java_files and android_java_ files into a webrtc 115 # TODO(jiayl): extract peerconnection_java_files and android_java_ files into a webrtc
141 # gyp var that can be included here, or better yet, build a proper .jar in webrtc 116 # gyp var that can be included here, or better yet, build a proper .jar in webrtc
142 # and include it here. 117 # and include it here.
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 'app/webrtc/videotrack.h', 787 'app/webrtc/videotrack.h',
813 'app/webrtc/videotrackrenderers.cc', 788 'app/webrtc/videotrackrenderers.cc',
814 'app/webrtc/videotrackrenderers.h', 789 'app/webrtc/videotrackrenderers.h',
815 'app/webrtc/webrtcsdp.cc', 790 'app/webrtc/webrtcsdp.cc',
816 'app/webrtc/webrtcsdp.h', 791 'app/webrtc/webrtcsdp.h',
817 'app/webrtc/webrtcsession.cc', 792 'app/webrtc/webrtcsession.cc',
818 'app/webrtc/webrtcsession.h', 793 'app/webrtc/webrtcsession.h',
819 'app/webrtc/webrtcsessiondescriptionfactory.cc', 794 'app/webrtc/webrtcsessiondescriptionfactory.cc',
820 'app/webrtc/webrtcsessiondescriptionfactory.h', 795 'app/webrtc/webrtcsessiondescriptionfactory.h',
821 ], 796 ],
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 ],
822 }, # target libjingle_peerconnection 805 }, # target libjingle_peerconnection
823 ], 806 ],
824 } 807 }
OLDNEW
« no previous file with comments | « talk/app/webrtc/webrtcsdp_unittest.cc ('k') | talk/libjingle_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698