mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
3d252fe527
Fixed some critical bugs and typos (carrer_task, tutor, zbot and other) Added command line option `-bots` to run bots in CS 1.6 Removed the tests demo record/player from myself the project and also dependency of the steam library. Fixed the progress bar when generating a nav file.
59 lines
1.1 KiB
Groovy
59 lines
1.1 KiB
Groovy
import org.doomedsociety.gradlecpp.cfg.ToolchainConfigUtils
|
|
import org.doomedsociety.gradlecpp.msvc.MsvcToolchainConfig
|
|
import org.doomedsociety.gradlecpp.toolchain.icc.Icc
|
|
import org.doomedsociety.gradlecpp.toolchain.icc.IccCompilerPlugin
|
|
import org.gradle.nativeplatform.NativeBinarySpec
|
|
import org.gradle.nativeplatform.NativeLibrarySpec
|
|
|
|
apply plugin: 'cpp'
|
|
apply plugin: IccCompilerPlugin
|
|
|
|
void setupToolchain(NativeBinarySpec b) {
|
|
def cfg = rootProject.createToolchainConfig(b)
|
|
|
|
ToolchainConfigUtils.apply(project, cfg, b)
|
|
}
|
|
|
|
model {
|
|
buildTypes {
|
|
debug
|
|
release
|
|
}
|
|
|
|
platforms {
|
|
x86 {
|
|
architecture "x86"
|
|
}
|
|
}
|
|
|
|
toolChains {
|
|
visualCpp(VisualCpp) {
|
|
}
|
|
icc(Icc) {
|
|
}
|
|
}
|
|
|
|
components {
|
|
cppunitlite(NativeLibrarySpec) {
|
|
targetPlatform 'x86'
|
|
|
|
sources {
|
|
cppul_main(CppSourceSet) {
|
|
source {
|
|
srcDir "src"
|
|
include "**/*.cpp"
|
|
}
|
|
|
|
exportedHeaders {
|
|
srcDir "include"
|
|
}
|
|
}
|
|
}
|
|
|
|
binaries.all { NativeBinarySpec b ->
|
|
project.setupToolchain(b)
|
|
}
|
|
}
|
|
}
|
|
}
|