I’m currently using gradle to build a native library, I’m wonder can use different sources for different library type inside one component.
for example:
mylibrary(NativeLibrarySpec) {
targetPlatform "x64"
sources {
cpp {
source {
srcDir "$win_top_srcdir"
include ‘*.cpp’
//if(binaries.static) {
//include ‘static.cpp’
//}
}
}
}
}
Is there some flag that I can use to tell the current build type, like static or dynamic?
Thanks a lot!