make 命令在 android 中的 gradle 之外工作
make command is working outside the gradle in android
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
exec {
workingDir './src/main/cpp/'
executable 'cmd'
args "/C"
args "make.exe"
args "-f"
args "swigGenerate.mk"
}
exec {
workingDir './src/main/cpp/'
executable 'cmd'
args "/C"
args "make.exe"
args "-f"
args "swig.mk"
}
}
任务 swigGenerate(dependsOn : "preBuild") 中的上述 gradle 命令在使用 make 命令执行时在命令行上运行,而在 gradle 为 运行.
我几乎尝试了所有方法,需要一些帮助。
评论 args "/C" 行正在消除问题并使其正常工作。但是根据 cmd MSDN documentation 有 /c 不是问题。仍然想知道为什么在某些系统中它可以工作而其他系统却不能。
需要对此有一些见解
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
exec {
workingDir './src/main/cpp/'
executable 'cmd'
args "/C"
args "make.exe"
args "-f"
args "swigGenerate.mk"
}
exec {
workingDir './src/main/cpp/'
executable 'cmd'
args "/C"
args "make.exe"
args "-f"
args "swig.mk"
}
}
任务 swigGenerate(dependsOn : "preBuild") 中的上述 gradle 命令在使用 make 命令执行时在命令行上运行,而在 gradle 为 运行.
我几乎尝试了所有方法,需要一些帮助。
评论 args "/C" 行正在消除问题并使其正常工作。但是根据 cmd MSDN documentation 有 /c 不是问题。仍然想知道为什么在某些系统中它可以工作而其他系统却不能。
需要对此有一些见解