xmake-io / xmake-docs Goto Github PK
View Code? Open in Web Editor NEWThe xmake online documentation site
Home Page: https://xmake.io
The xmake online documentation site
Home Page: https://xmake.io
首先,目前API手册中的包依赖管理部分仍然写着敬请期待,但实际上已经在别的地方写了
其次,目前的位置有些难找,而且这种涉及API内容最好集中在一起,方便查看
移动这部分内容到API手册,并留下指向新位置链接
No response
No response
xmake-io/xmake#2374 describes how to embed rules in package, but current document about this part is missing.
Fix format issues in existing document
No response
No response
我现在正在做 xmake 的 lua-ls 的 addon,给所有的 xmake.lua 中的 api 提供 definitions 文件
repo: https://github.com/LelouchHe/xmake-luals-addon
个人感觉如果 API 的文档能把 definitions 和此处的 doc 结合起来,会更好,这样让二者是同步的
有几个可能的实现:
No response
我本人不是特别熟悉 lua 的文档生成,不知道这样做是否可行?
目前 addon 的内容生成是先通过抓取 md 的内容,然后解析
但从抓取的结果来看,有很多信息丢失,或者格式不统一,导致需要很多手工修改,甚至直接从头开始写
这样的话,如果 api 进行变动,没有很好的办法同步更新 definition
025fbe9
macOS Ventura 13.2
Not a bug, but improve the consistency and grammar of some of the documentation. I understand English is not the author's first language, and am submitting this issue to attach a PR to.
A clear reading experience, not:
we need not write any make-like file (xmake.lua, makefile.am, cmakelist.txt, etc.) and also build it directly.
Not applicable
Not applicable
文档中没有找到在linux上怎么卸载xmake;这需要rm几个文件(xmake、xrepo),rm一个文件夹(xmake-script),复原.profile文件(删除xmake引入的一段),还比较复杂,需要一段说明
https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html
类似cmake,xmake提供的target、option、package等也有很多get
、set
接口。有一个表可以看哪些property可以去执行get、set会很方便。
在API Manual (Script Scope)里面加一节property;或者在每个instance介绍里面加一张表介绍可设置的property
No response
No response
Translating ..., help me please! Edit this page
不能用/没效果/有问题/报错
此类模糊表达,但又没有根据下面的模板给出任何相关辅助信息的,将会直接标记为 Invalid。Arch Linux 下AUR辅助工具yaourt已经停止开发,此项目的仓库已经标注unmaintained。
更新文档为yay -S xmake
或其他AUR helper。
不适用
不适用
不适用
4.7.3
All
In the set_plat description, the link to "set_arch" goes to link "project_target?id=target_setarch" but it should be "project_target?id=targetset_arch"
Correct link
No response
No response
注:如果是
问题报障
或者特性请求
,请选择报告缺陷
,特性请求
模板,否则一律不回复。
目前官网只有install by powershell/bash的instruction,以及unix环境local installation的instruction,没有windows上手动安装的instruction;(xmake-installer.exe缺少自动补全功能,需要手动安装)
unix环境的安装缺少自定义文件夹的instruction;无法选择script/binary安装到哪个文件夹。
Using the documentation page can be frustrating when searching for information multiple times due to the search bar being located at the top of the sidebar. As users scroll down to view all the results, the search bar becomes hidden and difficult to locate again, forcing them to scroll all the way up to the top of the sidebar. This causes inconvenience and hinders the user experience.
Furthermore, this problem is compounded by the fact that users may not even be aware of the search bar's existence in the first place. For example, when I first accessed the documentation page, I completely missed the search bar as it is not immediately apparent that it is located at the top of the sidebar. Since my intention was to scroll down to browse the site, I spent several days unaware of the search bar's existence.
To improve the user experience, it would be beneficial to have the search bar remain fixed at the top of the page Additionally, it may be helpful to make the search bar more prominent and visible to ensure that users are aware of its existence, for example by adding a search bar icon.
not really any, fixing the search bar position should be straight forward
It would be interesting and useful for consultation in an offline environment during development.
xmake v2.7.6+master.eda07a2a7
22H2(22631.1265)
当通过win11默认终端(powershell5.2)安装xmake时,即执行
Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicParsing).Content
无法解析的地方看起来像是一个三元表达式,而正好powershell7才提供三元表达式这个新特性:
所以我觉得,要么需要在官网注明需要用powershell7来执行,要么需要把这段三元表达式改写成powershell5兼容的语法。
No response
No response
在Gentoo中安装xmake
糊了一份简单的ebuild,只在amd64做过测试
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="A cross-platform build utility based on Lua"
HOMEPAGE="https://github.com/xmake-io/xmake"
SRC_URI="https://github.com/xmake-io/xmake/releases/download/v${PV}/${PN}-v${PV}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
S="${WORKDIR}"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_compile() {
emake build
}
src_install() {
emake install DESTDIR="${D}" PREFIX="/usr"
}
No response
No response
有几个问题
zh
cn
两个文件夹注:提问题时若使用
不能用/没效果/有问题/报错
此类模糊表达,但又没有根据下面的模板给出任何相关辅助信息的,将绝对不会有任何反馈。
在文档 https://xmake.io/#/zh-cn/manual/project_target?id=targetadd_files中
此接口使用方式跟add_installfiles接口几乎完全一样,都可以用来天剑安装文件,不过此接口仅用于安装头文件。 因此,使用上比add_installfiles简化了不少,默认不设置prefixdir,也会自动将头文件安装到对应的include子目录中。
可能应当为
此接口使用方式跟add_installfiles接口几乎完全一样,都可以用来添加安装文件,不过此接口仅用于安装头文件。 因此,使用上比add_installfiles简化了不少,默认不设置prefixdir,也会自动将头文件安装到对应的include子目录中。
注:如果是
问题报障
或者特性请求
,请选择报告缺陷
,特性请求
模板,否则一律不回复。
这个功能用的环境变量,在文档里面没写,要找issue才找得到,太隐蔽了
4.7.3
All
In the set_plat description, the link to "set_toolchains" goes to link "project_target?id=target_settoolchains" but it should be "project_target?id=targetset_toolchains"
Correct link
No response
No response
切换为中方后,搜索出来的条目地址是英文的,不知道应该报在哪里,就在这里报错了。
In package/local_3rd_source_library.md, there are instructions for wrapping a CMake-based library from a local directory as an xmake package and then integrating this within our main project.
Would it be possible to upload this (and maybe other) example packages so that users can work from them and work out how to copy the structure for a real package? Alternatively, it may make sense to change the example to use a real library that is available online (e.g. how we use things like liblzma, libpng in other examples). Then I could clone this package and try the code with my xmake project myself.
No response
The reason I ask is that the library I need to wrap is not so simple. It would help to see have the example foo package and its CMakeLists to see what xmake is doing behind the scenes, and then see what I need to change to ensure I wrap my dependency properly. I think this might be useful for others given that CMake is a very large ecosystem now, and part of the reason I am switching to xmake is because there are too many ways to do the same thing and it becomes as hard to maintain as the code itself.
4.7.3
All
in the introduction it says
Xmake ~= Make/Ninja + CMake/Meson + Vcpkg/Conan + distcc + ccache/sccache
because xmake uses lua and in lua syntax ~= means ”is not”, this makes this line pretty confusing and I think we should remove the ~
not confusing
No response
No response
类似 https://cmake.org/cmake/help/latest/manual/cmake-env-variables.7.html
希望有一个表说明xmake中用到的环境变量(xmake-repo包用到的除外),以便查询、排错
无关。
无关。
xmake-docs/zh-cn/manual/conditions.md文件的is_plat接口介绍中有错字,原文如下:
如果指定的平台名不存在,就会自动切到cross
平台进行交叉编译,但是缺可以通过is_plat("other")
来判断自己的平台逻辑。
其次,英文文档和中文文档不一致,缺少相关内容。
”但是缺“应改为“但是却”,修改后如下:
如果指定的平台名不存在,就会自动切到cross
平台进行交叉编译,但是却可以通过is_plat("other")
来判断自己的平台逻辑。
无关。
无关。
v2.8.9+20240324
Windows 10 LTSC 21H2 v19044.2965
-p PLAT, --plat=PLAT Compile for the given platform. (default: auto)
- android
- appletvos
- applexros
- bsd
- cross
- cygwin
- haiku
- iphoneos
- linux
- macosx
- mingw
- msys
- wasm
- watchos
- windows
Show the platforms available on the executable that are not described in the documentation.
N/A
N/A
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.