Skip to content

Instantly share code, notes, and snippets.

@jmingtan
Created October 25, 2010 14:24
Show Gist options
  • Save jmingtan/645028 to your computer and use it in GitHub Desktop.
Save jmingtan/645028 to your computer and use it in GitHub Desktop.
Premake4 script for libRocket
-- premake4 build file for libRocket http://librocket.com
--
-- edit the includedirs section to point to your local freetype2 folder.
--
-- originally written for a OSX and homebrew-based system
solution "libRocket"
configurations { "Release" }
platforms { "x32" }
configuration { "Release" }
targetdir "bin/release"
includedirs { "Include", "/usr/local/include/freetype2" }
if _ACTION == "clean" then
os.rmdir("bin/release")
os.rmdir("obj")
end
project "RocketCore"
language "C++"
kind "SharedLib"
files { "**.h", "Source/Core/*.cpp" }
links { "freetype" }
project "RocketControls"
language "C++"
kind "SharedLib"
files { "**.h", "Source/Controls/*.cpp" }
links { "RocketCore" }
configuration { "Release*" }
defines { "NDEBUG" }
flags { "Optimize" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment