1. th3flyboy
  2. foundation-tasking

Source

foundation-tasking / premake4.lua

newaction {
  trigger = 'clean',
  description = 'Cleans up the project.',
  shortname = "clean",
  
  execute = function()
    os.rmdir("bin")
    os.rmdir("build")
  end
}

solution "foundation"
  configurations { "debug", "release" }
  platforms { "x32", "x64" }

  location "build"
  
  includedirs { "inc", "src" }
  
  flags { "FatalWarnings", "ExtraWarnings" }
  
  configuration { "windows" }
    defines { "WIN32", "_WIN32" }
    defines { "_CRT_SECURE_NO_WARNINGS", "_CRT_NONSTDC_NO_DEPRECATE" }
    includedirs "inc/win32"
    
  configuration { "debug" }
    defines { "DEBUG" }
    flags { "Symbols" }

  configuration { "release" }
    defines { "NDEBUG" }
    flags { "Optimize" }
  
  project "unit-test"
    kind "ConsoleApp"
    language "C++"
    
    links "foundation"
    
    includedirs { "src" }
    files { "src/unit-test/**.cpp",
            "src/unit-test/**.h" }
  
  project "foundation"
    kind "StaticLib"
    language "C++"
    
    includedirs { "src" }
    files { "src/foundation/**.cpp",
            "src/foundation/**.h" }