11 lines
535 B
Groovy
11 lines
535 B
Groovy
|
|
||
|
tasks.register("compile", org.xbib.gradle.plugin.c.tasks.ExtendedCCompile) {
|
||
|
group = "build"
|
||
|
source(layout.projectDirectory.files("src/main/c").asFileTree)
|
||
|
includes(layout.projectDirectory.files("src/main/headers"))
|
||
|
toolChain.set(c.localTool("12.3.1", "/usr/bin/gcc", ".o"))
|
||
|
compilerArgs.addAll('-v', '-O3', '-Werror', '-Wno-attributes', '-fPIC', '-fno-omit-frame-pointer', '-Wunused-variable', '-fvisibility=hidden')
|
||
|
targetPlatform.set(c.platform())
|
||
|
objectFileDir.set(layout.buildDirectory.dir("libs"))
|
||
|
}
|