mkbootfs: revert 'cpp-application'
use legacy 'c' and 'cpp' plugin for MacOS comapatibilitypull/31/head
parent
30fe87357b
commit
bcf3c2e2b4
@ -0,0 +1,18 @@
|
||||
apply plugin: 'cpp'
|
||||
apply plugin: 'c'
|
||||
|
||||
model {
|
||||
buildTypes {
|
||||
release
|
||||
}
|
||||
|
||||
components {
|
||||
mkbootfs(NativeExecutableSpec) {
|
||||
binaries.all {
|
||||
cppCompiler.define "__ANDROID_VNDK__"
|
||||
//cppCompiler.define 'CFIG_NO_FIX_STAT'
|
||||
cppCompiler.args << '-std=gnu++11' << "-Wno-write-strings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
plugins {
|
||||
`cpp-application`
|
||||
}
|
||||
|
||||
application {
|
||||
targetMachines.set(listOf(machines.linux.x86_64, machines.macOS.x86_64))
|
||||
}
|
||||
|
||||
tasks.withType(CppCompile::class.java).configureEach {
|
||||
macros.put("__ANDROID_VNDK__", null)
|
||||
//macros.put("CFIG_NO_FIX_STAT", 1)
|
||||
compilerArgs.add("-std=c++17")
|
||||
compilerArgs.add("-Wno-write-strings")
|
||||
}
|
Loading…
Reference in New Issue