Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- workspace "platformer"
- configurations { "debug", "release" }
- include "../external/libghhgfx"
- include "../external/libghh"
- include "../external/glad"
- include "../external/cJSON"
- project "game"
- kind "ConsoleApp"
- language "C"
- cdialect "C11"
- targetdir ".."
- enablewarnings "all"
- includedirs {
- "../external/",
- "../external/**/include",
- "../external/cJSON"
- }
- files {
- "../src/**.h",
- "../src/**.c"
- }
- links {
- "m", "ghh", "ghhgfx", "glad", "cJSON", "SDL2main", "SDL2",
- }
- if os.target() == "windows" then
- makesettings "CC=gcc"
- links {
- "mingw32", "dinput8", "dxguid", "dxerr8", "user32", "gdi32", "winmm", "imm32", "ole32", "oleaut32", "shell32", "version", "uuid", "setupapi", -- SDL2
- }
- else
- links { "dl" }
- end
- filter "configurations:debug"
- defines { "DEBUG" }
- symbols "On"
- filter "configurations:release"
- defines { "NDEBUG" }
- optimize "On"
- if os.target() == "windows" then
- kind "WindowedApp"
- linkoptions { "-static" }
- end
Advertisement
Add Comment
Please, Sign In to add comment