This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
doghook/premake5.lua
F1ssi0N c34b8dd1b7 Lagexploit + convar fix (#36)
* InputSystem m33m

* CS fixes???

* doom'n'shoot

* Significantly cleanup lagexploit code and fix convar constructor issues

* Add clip1 to weapon class further lagexploit cleanup

* Fix some more code style

* Add convarwrapper meme

* Ensure that profiler leaf functions are never inlined to save the icache

* Enable AVX extensions and fix some platform defines

* Properly move cmd_delta into the target structure

* Fix some codestyle memes
2018-04-05 14:08:38 +02:00

83 lines
2.2 KiB
Lua

require("premake_modules/export-compile-commands")
require("premake_modules/cmake")
workspace "doghook"
configurations { "Debug", "Release" }
platforms { "x32" }
location "premake"
filter "system:windows"
characterset "MBCS"
filter {}
filter "platforms:x32"
architecture "x32"
filter "system:windows"
cppdialect "C++17"
filter "system:linux"
buildoptions "-std=c++2a"
filter {}
filter "configurations:Debug"
defines { "DEBUG", "_DEBUG" }
optimize "Off"
filter "system:windows"
symbols "Full"
filter "system:linux"
symbols "On"
buildoptions "-g3"
filter ""
runtime "Debug"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "Full"
symbols "Off"
flags {"LinkTimeOptimization"}
floatingpoint "Fast"
vectorextensions "AVX"
filter {}
project "doghook"
filter "system:linux"
toolset "clang"
filter "system:windows"
toolset "msc-v141"
filter {}
kind "SharedLib"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
filter "system:linux"
pchheader "src/precompiled.hh"
filter "system:windows"
pchheader "precompiled.hh"
filter {}
pchsource "src/precompiled.cc"
includedirs { "src" }
files { "src/**.hh", "src/**.cc" }
filter "system:linux"
prebuildcommands {
"{MKDIR} %{wks.location}/compile_commands/",
"{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json",
"{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json"
}
filter "system:windows"
prebuildcommands {
"cmd.exe /c \"" .. "{MKDIR} %{wks.location}/compile_commands/",
"cmd.exe /c \"" .. "{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json",
"cmd.exe /c \"" .. "{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json*"
}