public AndroidApkToolchain(AndroidNdk ndk, string sdkPath, string javaPath, string gradlePath) : base(ndk) { DynamicLibraryFormat = new AndroidApkDynamicLibraryFormat(this); ExecutableFormat = new AndroidApkMainModuleFormat(this); CppCompiler = new AndroidNdkCompilerNoThumb(ActionName, Architecture, Platform, Sdk, ndk.ApiLevel); SdkPath = sdkPath; JavaPath = javaPath; GradlePath = gradlePath; }
public AndroidApkToolchain(AndroidNdk ndk, bool useStatic, bool mainTarget) : base(ndk) { DynamicLibraryFormat = useStatic ? new AndroidApkStaticLibraryFormat(this) as NativeProgramFormat : new AndroidApkDynamicLibraryFormat(this) as NativeProgramFormat; ExecutableFormat = mainTarget ? new AndroidApkFormat(this) as NativeProgramFormat : new AndroidApkMainModuleFormat(this) as NativeProgramFormat; CppCompiler = new AndroidNdkCompilerNoThumb(ActionName, Architecture, Platform, Sdk, ndk.ApiLevel, useStatic); }