8000 Merge pull request #68 from youxiachai/patch-1 · metacortex/android-gpuimage@da9d3f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit da9d3f4

Browse files
committed
Merge pull request cats-oss#68 from youxiachai/patch-1
Update build.gradle
2 parents a6030f0 + c9899f6 commit da9d3f4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

library/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
9797

9898
task buildNative(type: Exec) {
9999
if (System.env.ANDROID_NDK_HOME != null) {
100-
def ndkBuild = new File(System.env.ANDROID_NDK_HOME, 'ndk-build')
100+
def ndkBuild
101+
if (System.properties['os.name'].toLowerCase().contains('windows')) {
102+
ndkBuild = new File(System.env.ANDROID_NDK_HOME, 'ndk-build.cmd')
103+
} else {
104+
ndkBuild = new File(System.env.ANDROID_NDK_HOME, 'ndk-build')
105+
}
101106
commandLine ndkBuild
102107
} else {
103108
doLast {
@@ -112,4 +117,4 @@ task buildNative(type: Exec) {
112117
// UTF-8
113118
tasks.withType(Compile) {
114119
options.encoding = 'UTF-8'
115-
}
120+
}

0 commit comments

Comments
 (0)
0