From aa44b9cc3fe5ab874a6b75faf7b4309c20642ad4 Mon Sep 17 00:00:00 2001 From: nekobit Date: Thu, 23 Mar 2023 11:49:29 +0000 Subject: [PATCH] Switch to premake4 for compat FossilOrigin-Name: 7f62c6520aa3a5e3e959cd68229459d6126c84153a9b131f2d406fa75e77baa7 --- .fossil-settings/ignore-glob | 2 +- premake5.lua => premake4.lua | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) rename premake5.lua => premake4.lua (60%) diff --git a/.fossil-settings/ignore-glob b/.fossil-settings/ignore-glob index a066f58..5581499 100644 --- a/.fossil-settings/ignore-glob +++ b/.fossil-settings/ignore-glob @@ -5,5 +5,5 @@ docs/html/ docs/latex/ build/ obj/ -Mastodont.make +mastodont.make Makefile diff --git a/premake5.lua b/premake4.lua similarity index 60% rename from premake5.lua rename to premake4.lua index a5749a3..42b8fcc 100644 --- a/premake5.lua +++ b/premake4.lua @@ -1,22 +1,22 @@ -workspace("Mastodont"); +solution "mastodont-c" configurations { "Debug", "Release" }; -- BEGIN Mastodont project -project("Mastodont"); +project("mastodont"); kind("StaticLib"); language("C"); files { "include/*.h", "src/*.c" }; includedirs { "include/" }; -filter { "system:linux or bsd or macosx", "action:gmake" } +configuration { "linux", "bsd", "gmake" } linkoptions { "`curl-config --libs`" } linkoptions { "`pkg-config --libs cjson`" } -filter { "configurations:Debug" }; +configuration { "Debug" }; defines { "DEBUG" }; - symbols("On"); + flags("Symbols"); -filter { "configurations:Release" }; +configuration { "Release" }; defines { "NDEBUG" }; - optimize("On"); + flags("Optimize"); -- END Mastodont-c