package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
863 B

package("cppfront")
set_kind("binary")
set_homepage("https://github.com/hsutter/cppfront")
set_description("A personal experimental C++ Syntax 2 -> Syntax 1 compiler")
add_urls("https://github.com/hsutter/cppfront.git")
add_versions("2022.09.23", "fa65d346996ec472e16c61838fbc7a47736d7872")
on_install("windows", "linux", function (package)
local configs = {}
io.writefile("xmake.lua", [[
add_rules("mode.release", "mode.debug")
target("cppfront")
set_kind("binary")
add_files("source/*.cpp")
add_includedirs("include")
set_languages("c++20")
]])
import("package.tools.xmake").install(package, configs)
end)
on_test(function (package)
os.touch("test.cpp2")
os.vrun("cppfront test.cpp2")
end)