From 08b7c4aaaeaf5fdc01c5f4d4f9d84d3601697d7b Mon Sep 17 00:00:00 2001 From: David Given Date: Fri, 12 Aug 2016 00:24:40 +0200 Subject: [PATCH] The Basic runtime builds now. --- lang/basic/lib/build.lua | 26 ++++++++++++++++++++++++++ plat/build.lua | 7 ++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 lang/basic/lib/build.lua diff --git a/lang/basic/lib/build.lua b/lang/basic/lib/build.lua new file mode 100644 index 000000000..f0fe3724b --- /dev/null +++ b/lang/basic/lib/build.lua @@ -0,0 +1,26 @@ +include("plat/build.lua") + +for _, plat in ipairs(vars.plats) do + acklibrary { + name = "lib_"..plat, + srcs = { + "./*.c", + "./*.e", + }, + hdrs = {}, -- must be empty + deps = { + "h+emheaders", + "lang/cem/libcc.ansi/headers+headers", + "plat/"..plat.."+headers", + }, + vars = { plat = plat } + } + + installable { + name = "pkg_"..plat, + map = { + ["$(PLATIND)/"..plat.."/libbasic.a"] = "+lib_"..plat, + } + } +end + diff --git a/plat/build.lua b/plat/build.lua index 52c45fdd4..c6019d34a 100644 --- a/plat/build.lua +++ b/plat/build.lua @@ -90,10 +90,11 @@ definerule("build_plat_libs", return installable { name = e.name, map = { - ["$(PLATIND)/"..e.plat.."/libend.a"] = "mach/"..e.arch.."/libend+lib_"..e.plat, - ["$(PLATIND)/"..e.plat.."/libem.a"] = "mach/"..e.arch.."/libem+lib_"..e.plat, - ["$(PLATIND)/"..e.plat.."/libsys.a"] = "mach/"..e.arch.."/libsys+lib_"..e.plat, + "lang/basic/lib+pkg_"..e.plat, "lang/cem/libcc.ansi+pkg_"..e.plat, + ["$(PLATIND)/"..e.plat.."/libem.a"] = "mach/"..e.arch.."/libem+lib_"..e.plat, + ["$(PLATIND)/"..e.plat.."/libend.a"] = "mach/"..e.arch.."/libend+lib_"..e.plat, + ["$(PLATIND)/"..e.plat.."/libsys.a"] = "mach/"..e.arch.."/libsys+lib_"..e.plat, } } end