Created
August 10, 2021 17:49
-
-
Save withmorten/7839a5529fcad1eb863f6f2fff16c510 to your computer and use it in GitHub Desktop.
AGE premake5.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workspace "AGE" | |
configurations | |
{ | |
"Debug", | |
"Release", | |
} | |
startproject "AGE" | |
location "build" | |
characterset ("Unicode") | |
toolset ("v142") | |
defines { "WIN32", "WIN32_LEAN_AND_MEAN", "_CRT_SECURE_NO_WARNINGS", "_CRT_NONSTDC_NO_DEPRECATE", "_CRT_NONSTDC_NO_WARNINGS" } | |
staticruntime "on" | |
filter "configurations:Debug" | |
defines { "DEBUG" } | |
symbols "full" | |
optimize "off" | |
runtime "debug" | |
filter { "configurations:Release" } | |
defines { "NDEBUG" } | |
runtime "release" | |
symbols "on" | |
optimize "speed" | |
inlining "auto" | |
flags { "LinkTimeOptimization" } | |
project "AGE" | |
kind "WindowedApp" | |
language "C++" | |
targetname "AdvancedGenieEditor3" | |
targetdir "bin/%{cfg.buildcfg}" | |
targetextension ".exe" | |
files { "AGE/Resources.rc" } | |
files { "AGE/AppIcon.ico" } | |
includedirs { "win-iconv" } | |
includedirs { "wxWidgets-3.1.2/include" } | |
includedirs { "wxWidgets-3.1.2/include/msvc" } | |
includedirs { "wxWidgets-3.1.2/lib/vc_lib/mswu" } | |
libdirs { "wxWidgets-3.1.2/lib/vc_lib" } | |
includedirs { "SFML/include" } | |
dependson { "genieutils" } | |
libdirs { "build/obj/%{cfg.buildcfg}/genieutils" } | |
links { "genieutils" } | |
includedirs { "genieutils/include" } | |
includedirs { "boost_1_76_0" } | |
libdirs { "boost_1_76_0/lib32-msvc-14.2" } | |
includedirs { "AGE" } | |
files { "AGE/*.h" } | |
files { "AGE/*.cpp" } | |
files { "AGE/AGE_Frame/*.cpp" } | |
libdirs { "SFML/lib" } | |
filter "configurations:Debug" | |
links { "sfml-audio-d", "sfml-system-d" } | |
filter "configurations:Release" | |
links { "sfml-audio", "sfml-system" } | |
project "genieutils" | |
kind "StaticLib" | |
language "C++" | |
targetname "genieutils" | |
targetdir "build/obj/%{cfg.buildcfg}/genieutils" | |
targetextension ".lib" | |
includedirs { "win-iconv" } | |
files { "win-iconv/win_iconv.c" } | |
includedirs { "." } | |
files { "pcrio/pcrio.c" } | |
includedirs { "boost_1_76_0" } | |
includedirs { "genieutils/include" } | |
files { "genieutils/include/genie/**.h" } | |
files { "genieutils/src/**.cpp" } | |
removefiles { "genieutils/src/tools/**.cpp" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment