/// Returns the path to the built object file for the android native glue
Returns the path to the built object file for the android native glue
Returns the path to the built object file for the android native glue
fn build_android_native_glue(
    config: &AndroidConfig,
    android_native_glue_src_path: &PathBuf,
    build_target_dir: &PathBuf,
    build_target: AndroidBuildTarget,
) -> CargoResult<PathBuf> {
    let clang = util::find_clang(config, build_target)?;
    let android_native_glue_build_path = build_target_dir.join("android_native_glue");
    fs::create_dir_all(&android_native_glue_build_path)?;
    let android_native_glue_object_path =
        android_native_glue_build_path.join("android_native_glue.o");
    // Will produce warnings when bulding on linux? Create constants for extensions that can be used.. Or have separate functions?
    util::script_process(clang)
        .arg(android_native_glue_src_path)
        .arg("-c")
        .arg("-o")
        .arg(&android_native_glue_object_path)
        .exec()?;
    Ok(android_native_glue_object_path)
}
fn build_android_native_glue ( config : & AndroidConfig , android_native_glue_src_path : & PathBuf , build_target_dir : & PathBuf , build_target : AndroidBuildTarget , ) -> CargoResult < PathBuf > { let clang = util :: find_clang ( config , build_target ) ? ; let android_native_glue_build_path = build_target_dir . join ( " " ) ; fs :: create_dir_all ( & android_native_glue_build_path ) ? ; let android_native_glue_object_path = android_native_glue_build_path . join ( " " ) ; // Will produce warnings when bulding on linux? Create constants for extensions that can be used.. Or have separate functions? util :: script_process ( clang ) . arg ( android_native_glue_src_path ) . arg ( " " ) . arg ( " " ) . arg ( & android_native_glue_object_path ) . exec ( ) ? ; Ok ( android_native_glue_object_path ) }
Returns the path to the built object file for the android native glue
Returns the path to the built object file for the android native glue
config
&AndroidConfig
android_native_glue_src_path
&PathBuf
build_target_dir
&PathBuf
build_target
AndroidBuildTarget