Guest User

Untitled

a guest
Aug 5th, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1. workspace "platformer"
  2.     configurations { "debug", "release" }
  3.  
  4. include "../external/libghhgfx"
  5. include "../external/libghh"
  6. include "../external/glad"
  7. include "../external/cJSON"
  8.  
  9. project "game"
  10.     kind "ConsoleApp"
  11.     language "C"
  12.     cdialect "C11"
  13.     targetdir ".."
  14.  
  15.     enablewarnings "all"
  16.  
  17.     includedirs {
  18.         "../external/",
  19.         "../external/**/include",
  20.         "../external/cJSON"
  21.     }
  22.  
  23.     files {
  24.         "../src/**.h",
  25.         "../src/**.c"
  26.     }
  27.  
  28.     links {
  29.         "m", "ghh", "ghhgfx", "glad", "cJSON", "SDL2main", "SDL2",
  30.     }
  31.  
  32.     if os.target() == "windows" then
  33.         makesettings "CC=gcc"
  34.         links {
  35.             "mingw32", "dinput8", "dxguid", "dxerr8", "user32", "gdi32", "winmm", "imm32", "ole32", "oleaut32", "shell32", "version", "uuid", "setupapi",  -- SDL2
  36.         }
  37.     else
  38.         links { "dl" }
  39.     end
  40.  
  41.     filter "configurations:debug"
  42.         defines { "DEBUG" }
  43.         symbols "On"
  44.  
  45.     filter "configurations:release"
  46.         defines { "NDEBUG" }
  47.         optimize "On"
  48.  
  49.         if os.target() == "windows" then
  50.             kind "WindowedApp"
  51.             linkoptions { "-static" }
  52.         end
Advertisement
Add Comment
Please, Sign In to add comment