From 08af4320236186e9bdc27f6bb4708f057a40f06e Mon Sep 17 00:00:00 2001 From: Torben Hoffmann Date: Fri, 18 May 2018 22:26:12 +0200 Subject: [PATCH] Make a --with-freetype option instead of having to uncomment In premake4.lua there was a comment about what to uncomment when needing FreeType support. This has now been turned into a premake option that can be passed in as a command line option like this: $ premake4 --with-freetype gmake --- premake4.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/premake4.lua b/premake4.lua index 0f861686..f2f15622 100644 --- a/premake4.lua +++ b/premake4.lua @@ -6,13 +6,22 @@ solution "nanovg" configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} + newoption + { + trigger = "with-freetype", + description = "Compile with FreeType support" + } + project "nanovg" language "C" kind "StaticLib" includedirs { "src" } files { "src/*.c" } targetdir("build") - defines { "_CRT_SECURE_NO_WARNINGS" } --,"FONS_USE_FREETYPE" } Uncomment to compile with FreeType support + defines { "_CRT_SECURE_NO_WARNINGS" } + + configuration "with-freetype" + defines { "FONS_USE_FREETYPE" } configuration "Debug" defines { "DEBUG" }