Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/fabric/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ add_requires("cairo", { optional = true })

target("fabric")
set_kind("binary")
set_default(false)
add_files("src/*.c")
add_packages("cairo", "lcui")
add_deps("lcui")
add_packages("cairo")
if has_package("cairo") then
add_defines("HAS_CAIRO")
end
5 changes: 3 additions & 2 deletions examples/hello/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
target("hello")
add_installfiles("app/*")
set_kind("binary")
set_default(false)
set_rundir("app")
add_packages("lcui")
add_files("src/*.c")
add_deps("lcui")
add_syslinks("m")
3 changes: 2 additions & 1 deletion examples/todolist/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ target("todolist")
add_installfiles("app/*")
set_kind("binary")
set_rundir("app")
add_packages("lcui")
set_default(false)
add_deps("lcui")
add_files("src/*.c")
256 changes: 241 additions & 15 deletions examples/xmake-requires.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,230 @@
{
["linux|x86_64"] = {
["ca-certificates#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "20250131"
},
["cairo#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.18.0"
},
["cmake#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "4.2.3"
},
["expat#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "2.7.4"
},
["fontconfig#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "2.17.1"
},
["freetype#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "2.14.1"
},
["gperf#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "3.2.1"
},
["libffi#0b3b0fcf"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "3.4.8"
},
["libpng#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "v1.6.55"
},
["libpthread-stubs#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "0.5"
},
["libx11#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.8.13"
},
["libxau#16fb575b"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.0.12"
},
["libxcb#16fb575b"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.17.0"
},
["libxdmcp#16fb575b"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.1.5"
},
["libxext#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.3.7"
},
["libxrender#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "0.9.12"
},
["meson#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.10.2"
},
["ninja#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "v1.13.1"
},
["openssl >=1.1.1-a#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.1.1-w"
},
["pixman#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "0.46.2"
},
["pkg-config#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "0.29.2"
},
["python 3.x#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "3.13.11"
},
["util-macros#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.20.0"
},
["xcb-proto#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.17.0"
},
["xorgproto#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "2023.2"
},
["xtrans#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "1.6.0"
},
["zlib#0b3b0fcf"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "v1.3.2"
},
["zlib#f56260b5"] = {
repo = {
branch = "master",
commit = "75c3fcffb897a8aeb37863c495b9f58266216b26",
url = "https://gitlab.com/tboox/xmake-repo.git"
},
version = "v1.3.2"
}
},
__meta__ = {
version = "1.0"
},
Expand Down Expand Up @@ -53,19 +279,19 @@
},
["lcui#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libcss#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libi18n#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
Expand Down Expand Up @@ -95,7 +321,7 @@
},
["libplatform#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
Expand All @@ -109,55 +335,55 @@
},
["libthread#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libtimer#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libui#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libui-cursor#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libui-router#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libui-server#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libui-widgets#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libui-xml#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
["libworker#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
Expand Down Expand Up @@ -195,7 +421,7 @@
},
["pandagl#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
Expand Down Expand Up @@ -225,7 +451,7 @@
},
["yutil#31fecfc4"] = {
repo = {
url = "../build"
url = "../build/packages"
},
version = "latest"
},
Expand Down
2 changes: 0 additions & 2 deletions examples/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
set_policy("package.requires_lock", true)
add_repositories("lcui-repo ../build")
add_requires("lcui")
add_rules("mode.debug", "mode.release")
if is_plat("windows") then
add_rules("win.sdk.application")
Expand Down
2 changes: 1 addition & 1 deletion lib/i18n/include/i18n.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* lib/i18n/include/i18n.h
*
* Copyright (c) 2023-2025, Liu Chao <i@lc-soft.io> All rights reserved.
Expand Down
Loading
Loading