OLD | NEW |
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 Loading... |
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': [ |
86 'app/webrtc/java/jni/androidvideocapturer_jni.cc', | 81 'app/webrtc/androidvideocapturer.cc', |
87 'app/webrtc/java/jni/androidvideocapturer_jni.h', | 82 'app/webrtc/androidvideocapturer.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', | 83 'app/webrtc/java/jni/androidmediacodeccommon.h', |
98 'app/webrtc/java/jni/androidmediadecoder_jni.cc', | 84 'app/webrtc/java/jni/androidmediadecoder_jni.cc', |
99 'app/webrtc/java/jni/androidmediadecoder_jni.h', | 85 'app/webrtc/java/jni/androidmediadecoder_jni.h', |
100 'app/webrtc/java/jni/androidmediaencoder_jni.cc', | 86 'app/webrtc/java/jni/androidmediaencoder_jni.cc', |
101 'app/webrtc/java/jni/androidmediaencoder_jni.h', | 87 'app/webrtc/java/jni/androidmediaencoder_jni.h', |
102 'app/webrtc/java/jni/androidnetworkmonitor_jni.cc', | 88 'app/webrtc/java/jni/androidnetworkmonitor_jni.cc', |
103 'app/webrtc/java/jni/androidnetworkmonitor_jni.h', | 89 'app/webrtc/java/jni/androidnetworkmonitor_jni.h', |
| 90 'app/webrtc/java/jni/androidvideocapturer_jni.cc', |
| 91 'app/webrtc/java/jni/androidvideocapturer_jni.h', |
104 'app/webrtc/java/jni/surfacetexturehelper_jni.cc', | 92 'app/webrtc/java/jni/surfacetexturehelper_jni.cc', |
105 'app/webrtc/java/jni/surfacetexturehelper_jni.h', | 93 'app/webrtc/java/jni/surfacetexturehelper_jni.h', |
106 ] | 94 ] |
107 }], | 95 }], |
108 ], | 96 ], |
109 }, | 97 }, |
110 { | 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': [ |
| 116 'HAVE_GTK', |
| 117 ], |
| 118 'include_dirs': [ |
| 119 '<(java_home)/include', |
| 120 '<(java_home)/include/linux', |
| 121 ], |
| 122 'conditions': [ |
| 123 ['use_gtk==1', { |
| 124 'link_settings': { |
| 125 'libraries': [ |
| 126 '<!@(pkg-config --libs-only-l gobject-2.0 gthread-2.0' |
| 127 ' gtk+-2.0)', |
| 128 ], |
| 129 }, |
| 130 }], |
| 131 ], |
| 132 }], |
| 133 ], |
| 134 }, |
| 135 { |
111 'target_name': 'libjingle_peerconnection_jar', | 136 'target_name': 'libjingle_peerconnection_jar', |
112 'type': 'none', | 137 'type': 'none', |
113 'actions': [ | 138 'actions': [ |
114 { | 139 { |
115 # TODO(jiayl): extract peerconnection_java_files and android_java_
files into a webrtc | 140 # 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 | 141 # gyp var that can be included here, or better yet, build a proper
.jar in webrtc |
117 # and include it here. | 142 # and include it here. |
118 'variables': { | 143 'variables': { |
119 'java_src_dir': 'app/webrtc/java/src', | 144 'java_src_dir': 'app/webrtc/java/src', |
120 'webrtc_base_dir': '<(webrtc_root)/base', | 145 'webrtc_base_dir': '<(webrtc_root)/base', |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 'app/webrtc/videotrack.h', | 810 'app/webrtc/videotrack.h', |
786 'app/webrtc/videotrackrenderers.cc', | 811 'app/webrtc/videotrackrenderers.cc', |
787 'app/webrtc/videotrackrenderers.h', | 812 'app/webrtc/videotrackrenderers.h', |
788 'app/webrtc/webrtcsdp.cc', | 813 'app/webrtc/webrtcsdp.cc', |
789 'app/webrtc/webrtcsdp.h', | 814 'app/webrtc/webrtcsdp.h', |
790 'app/webrtc/webrtcsession.cc', | 815 'app/webrtc/webrtcsession.cc', |
791 'app/webrtc/webrtcsession.h', | 816 'app/webrtc/webrtcsession.h', |
792 'app/webrtc/webrtcsessiondescriptionfactory.cc', | 817 'app/webrtc/webrtcsessiondescriptionfactory.cc', |
793 'app/webrtc/webrtcsessiondescriptionfactory.h', | 818 'app/webrtc/webrtcsessiondescriptionfactory.h', |
794 ], | 819 ], |
795 'conditions': [ | |
796 ['OS=="android" and build_with_chromium==0', { | |
797 'sources': [ | |
798 'app/webrtc/androidvideocapturer.h', | |
799 'app/webrtc/androidvideocapturer.cc', | |
800 ], | |
801 }], | |
802 ], | |
803 }, # target libjingle_peerconnection | 820 }, # target libjingle_peerconnection |
804 ], | 821 ], |
805 } | 822 } |
OLD | NEW |