@@ -170,11 +170,7 @@ fn main() {
170170 ] {
171171 let lib = pkg_config:: probe_library ( lib_name) . unwrap ( ) ;
172172 if lib_name == "gio-2.0" {
173- if std:: env:: var ( "LK_CUSTOM_WEBRTC" ) . is_ok ( ) {
174- builder. includes ( lib. include_paths ) ;
175- } else {
176- add_gio_headers ( & mut builder) ;
177- }
173+ builder. includes ( lib. include_paths ) ;
178174 }
179175 }
180176
@@ -372,29 +368,3 @@ fn configure_android_sysroot(builder: &mut cc::Build) {
372368
373369 builder. flag ( format ! ( "-isysroot{}" , sysroot. display( ) ) . as_str ( ) ) ;
374370}
375-
376- fn add_gio_headers ( builder : & mut cc:: Build ) {
377- let webrtc_dir = webrtc_sys_build:: webrtc_dir ( ) ;
378- let target_arch = webrtc_sys_build:: target_arch ( ) ;
379- let target_arch_sysroot = match target_arch. as_str ( ) {
380- "arm64" => "arm64" ,
381- "x64" => "amd64" ,
382- _ => panic ! ( "unsupported arch" ) ,
383- } ;
384- let sysroot_path = format ! ( "include/build/linux/debian_bullseye_{target_arch_sysroot}-sysroot" ) ;
385- let sysroot = webrtc_dir. join ( sysroot_path) ;
386- let glib_path = sysroot. join ( "usr/include/glib-2.0" ) ;
387- println ! ( "cargo:info=add_gio_headers {}" , glib_path. display( ) ) ;
388-
389- builder. include ( & glib_path) ;
390- let arch_specific_path = match target_arch. as_str ( ) {
391- "x64" => "x86_64-linux-gnu" ,
392- "arm64" => "aarch64-linux-gnu" ,
393- _ => panic ! ( "unsupported target" ) ,
394- } ;
395-
396- let glib_path_config = sysroot. join ( "usr/lib" ) ;
397- let glib_path_config = glib_path_config. join ( arch_specific_path) ;
398- let glib_path_config = glib_path_config. join ( "glib-2.0/include" ) ;
399- builder. include ( & glib_path_config) ;
400- }
0 commit comments