This native plugin gradle build script fails right around line 21 which is where I tried something outside the ordinary for gradle which is defining a nativelibraryspec with a slash in the folder path.
apply plugin: 'c'
model {
components {
project(NativeExecutableSpec) {
}
core_engine(NativeLibrarySpec) {
}
core_math(NativeLibrarySpec) {
}
core_graphics(NativeLibrarySpec) {
}
core_graphics/sprite(NativeLibrarySpec) {
}
}
}
Typically in c projects you’ll have one folder to describe a module then sub folders below that for different implementation of that module.
Example
…/math/
…/math/vector2
…/math/vector3
…ect
currently in gradle this can only be achieved by doing this?
sources {
c {
source {
srcDir "src/source"
include "**/*.c"
}
exportedHeaders {
srcDir "src/include"
}
}
}