mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2026-01-02 04:17:19 +08:00
Add gradle support
This commit is contained in:
36
workspace/Gradle/build.gradle
Normal file
36
workspace/Gradle/build.gradle
Normal file
@@ -0,0 +1,36 @@
|
||||
plugins {
|
||||
id("org.gradle.cpp-library")
|
||||
}
|
||||
|
||||
library {
|
||||
/**
|
||||
* Gradle stipulates that the source directory is: $project/src/main/cpp/,
|
||||
* specifies the `.cpp` source file directory according to the project.
|
||||
* */
|
||||
source.from(
|
||||
"../core",
|
||||
"../widgets"
|
||||
)
|
||||
/**
|
||||
* Gradle conventions the header file directory is: $project/src/main/headers/,
|
||||
* specify the `.h` header file directory according to the project.
|
||||
*/
|
||||
privateHeaders.from(
|
||||
"../core_include",
|
||||
"../widgets_include"
|
||||
)
|
||||
/**
|
||||
* Gradle only exports shared libraries(dynamic libraries) by default,
|
||||
* adds support for static libraries.
|
||||
* */
|
||||
linkage.add(Linkage.STATIC)
|
||||
}
|
||||
/**
|
||||
* Compile tasks for custom release type dynamic and static libraries
|
||||
* */
|
||||
tasks.register("produce") {
|
||||
dependsOn(
|
||||
"assembleReleaseShared",
|
||||
"assembleReleaseStatic"
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user