У модуля:Buld DLL с Gradle CPP плагин
mod-native
------ build
------ sources
------------ myDll
----------------------- cpp
------------------------------ dllmain.cpp
------------------------------ MakeString.cpp
------------------------------ stdafx.cpp
------------------------------ MyDll.cpp
----------------------- headers
------------------------------ base64.h
------------------------------ tmain.h
------ build.gradle
Итак, мой build.gradle
apply plugin: 'cpp'
model{
toolChains{
vs(VisualCpp){
installDir "C:\\Microsoft Visual Studio 12.0"
windowsSdkDir "C:\\Microsoft SDKs\\Windows\\v7.0"
}
}
// target binary for win32
platforms{
win32{
architecture "i386"
operatingSystem "windows"
}
}
components {
toCms(NativeLibrarySpec){
sources{
cpp{
source.srcDir "sources/myDll/cpp"
exportedHeaders.srcDir "sources/myDll/headers"
}
}
}
}
}
Я хочу получ MyDLL.dll файл, но это, кажется Gradle пытается построить * .lib вместо * .dll. Как я могу построить MyDll.dll ?? Благодаря!
Спасибо !! Оно работает –