1 Star 0 Fork 29

TREE_3/Goldfish Scheme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xmake.lua 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
JackYansongLi 提交于 2025-05-13 13:23 +08:00 . bump to version 17.11.13 (#303)
set_version ("17.11.13")
-- mode
set_allowedmodes("releasedbg", "release", "debug", "profile")
add_rules("mode.releasedbg", "mode.release", "mode.debug", "mode.profile")
-- plat
set_allowedplats("linux", "macosx", "windows")
-- proj
set_project("Goldfish Scheme")
-- repo
add_repositories("goldfish-repo xmake")
option("tbox")
set_description("Use tbox installed via apt")
set_default(false)
set_values(false, true)
option_end()
local S7_VERSION = "20241230"
add_requires("s7 "..S7_VERSION, {system=false})
local TBOX_VERSION = "1.7.6"
if has_config("tbox") then
add_requires("apt::libtbox-dev", {alias="tbox"})
else
tbox_configs = {hash=true, ["force-utf8"]=true}
add_requires("tbox " .. TBOX_VERSION, {system=false, configs=tbox_configs})
end
target ("goldfish") do
set_languages("c++98")
if is_plat("linux") then
-- for Ubuntu 20.04
add_syslinks("stdc++")
end
set_targetdir("$(projectdir)/bin/")
add_files ("src/goldfish.cpp")
add_packages("s7")
add_packages("tbox")
add_installfiles("$(projectdir)/goldfish/(scheme/*.scm)", {prefixdir = "share/goldfish"})
add_installfiles("$(projectdir)/goldfish/(srfi/*.scm)", {prefixdir = "share/goldfish"})
add_installfiles("$(projectdir)/goldfish/(liii/*.scm)", {prefixdir = "share/goldfish"})
end
includes("@builtin/xpack")
xpack ("goldfish")
set_formats("deb", "rpm", "srpm")
set_author("Da Shen <da@liii.pro>")
set_license("Apache-2.0")
set_title("Goldfish Scheme")
set_description("A Python-like Scheme Interpreter")
set_homepage("https://gitee.com/LiiiLabs/goldfish")
add_targets ("goldfish")
add_sourcefiles("(xmake/**)")
add_sourcefiles("xmake.lua")
add_sourcefiles("(src/**)")
add_sourcefiles("(goldfish/**)")
on_load(function (package)
if package:with_source() then
package:set("basename", "goldfish-$(plat)-src-v$(version)")
else
package:set("basename", "goldfish-$(plat)-$(arch)-v$(version)")
end
end)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Scheme
1
https://gitee.com/tree_3/goldfish.git
git@gitee.com:tree_3/goldfish.git
tree_3
goldfish
Goldfish Scheme
main

搜索帮助