11-- premake5.lua
22
3+ require " premake_modules/usage"
4+
35-- you can redefine dependencies
46SDL2_DIR = os.getenv (" SDL2_DIR" ) or " dependencies/SDL2"
57
68workspace " OpenDriver2Tools"
79 language " C++"
810 configurations { " Debug" , " Release" }
911 linkgroups ' On'
12+ characterset " ASCII"
1013
1114 includedirs {
1215 " ./"
@@ -50,17 +53,21 @@ project "libnstd"
5053 " dependencies/libnstd/src/**.h" ,
5154 }
5255
56+ usage " libnstd"
57+ includedirs {
58+ " dependencies/libnstd/include"
59+ }
60+ links " libnstd"
61+
5362-- little framework
5463project " frameworkLib"
5564 kind " StaticLib"
5665 targetdir " bin/%{cfg.buildcfg}"
66+
67+ uses " libnstd"
5768
5869 filter " system:Windows"
5970 defines { " _CRT_SECURE_NO_WARNINGS" }
60-
61- includedirs {
62- " dependencies/libnstd/include" ,
63- }
6471
6572 files {
6673 " math/**.cpp" ,
@@ -84,6 +91,11 @@ project "glad"
8491 " dependencies/glad/*.h" ,
8592 }
8693
94+ usage " glad"
95+ includedirs {
96+ " dependencies/glad/*.h" ,
97+ }
98+
8799-- ImGui
88100project " ImGui"
89101 kind " StaticLib"
@@ -106,9 +118,15 @@ project "ImGui"
106118 " dependencies/imgui/backends/imgui_impl_sdl.cpp" ,
107119 " dependencies/imgui/backends/imgui_impl_sdl.h" ,
108120 }
121+
122+ usage " ImGui"
123+ includedirs {
124+ " dependencies/imgui" ,
125+ }
126+ links { " ImGui" }
109127
110- dofile ( " DriverLevelTool/premake5.lua" )
111- dofile ( " DriverSoundTool/premake5.lua" )
112- dofile ( " DriverImageTool/premake5.lua" )
113- dofile ( " Driver2CutsceneTool/premake5.lua" )
114- dofile ( " Driver2MissionTool/premake5.lua" )
128+ include " DriverLevelTool/premake5.lua"
129+ include " DriverSoundTool/premake5.lua"
130+ include " DriverImageTool/premake5.lua"
131+ include " Driver2CutsceneTool/premake5.lua"
132+ include " Driver2MissionTool/premake5.lua"
0 commit comments