netty/netty-channel-unix-native/build.gradle

11 lines
535 B
Groovy
Raw Normal View History

2024-01-22 08:39:20 +01:00
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"))
}