2016-11-15 ruki
最近对xmake.lua的工程描述语法进行了增强,现已可以同时支持两种不同语法风格。 set-add描述风格 key-val描述风格 set-add描述风格 这种是xmake经典的设置风格,例如: lua target("test") set_kind("static") add_defines("DEBUG") add_files("src/*.c", "test/*.cpp") 优势:控制灵活,可以根据各种条件,通过if-then进行灵活的条件编译,可以驾驭各种高度复杂的配置需求。 劣势:作用域控制不明显,需要手动规范化缩进 key-val描述风格 这种是xmake最近新加的风格,例如: l 继续阅读 »
2017-02-07 ruki
之前的wiki文档结构不是很好,而且不方便检索。 因此最近使用docute这个文档工具,重写了一遍整个xmake文档,并且增加了更加详细的api文档手册,后续会持续更新维护。 目前英文版本的手册还不是很完善,有兴趣的同学可以帮忙一起翻译下哦,现在的新版文档支持多人编辑提交到github来共同维护。 文档地址: xmake中文文档 xmake英文文档 继续阅读 »
2016-08-29 ruki
新特性 在xmake.lua中添加原生shell支持,例如:add_ldflags("$(shell pkg-config --libs sqlite3)") 编译windows目标程序,默认默认启用pdb符号文件 在windows上添加调试器支持(vsjitdebugger, ollydbg, windbg ... ) 添加getenv接口到xmake.lua的全局作用域中 添加生成vstudio工程插件(支持:vs2002 - vs2015) 为option添加set_default接口 改进 增强内建变量的处理 支持字符串类型的选项option设置 Bugs修复 修复在linux下检测ld连接器失败,如果没装g++的话 继续阅读 »
2016-08-02 ruki
这个doxygen插件比较简单,说白了就是一键生成工程文档,只需要执行下面这行命令就行了 bash xmake doxygen 当然你也可以指定输出目录,可以工程源码目录: bash xmake doxygen -o /tmp/output project/src 继续阅读 »
2017-05-10 ruki
Introduction xmake lua has supported REPL(read-eval-print), we can write and test script more easily now. Enter interactive mode: ```bash $ xmake lua 1 + 2 3 a = 1 a 1 for _, v in pairs({1, 2, 3}) do print(v) end 1 2 3 ``` 继续阅读 »
2020-10-17 ruki
xmake is a lightweight cross-platform build tool based on Lua. It uses xmake.lua to maintain project builds. Compared with makefile/CMakeLists.txt, the configuration syntax is more Concise and intuitive, very friendly to novices, can get started quickly in a short time, allowing users to focus more on the actual projec 继续阅读 »
2016-07-06 ruki
主页 源码 更新内容 此版本,主要修复一些bug和稳定性改善 改进 修改安装和卸载的action处理 更新工程模板 增强函数检测 Bugs修复 #7: 修复用模板创建工程后,target名不对问题:'[targetname]' #9: 修复clang不支持c++11的问题 修复api作用域泄露问题 修复在windows上的一些路径问题 修复检测宏函数失败问题 修复检测工具链失败问题 修复windows上编译android版本失败 继续阅读 »
2016-08-29 ruki
Xmake provide a builtin-plugin for generating VisualStudio project file (vs2002 - 2015) now. .e.g We need enter the project directory first and run the following command if we want to generate vs2013 project. bash $ xmake project -k vs2013 It will generate a directory(vs2013) in the current project and the direct 继续阅读 »
2018-02-03 ruki
此版本主要增加xmake f --menu实现用户自定义图形菜单配置,界面风格类似linux的make menuconfig: 更多使用说明,请阅读:文档手册。 项目源码:Github, Gitee. 新特性 添加del_files()接口去从已添加的文件列表中移除一些文件 添加rule(), add_rules()接口实现自定义构建规则,并且改进add_files("src/*.md", {rule = "markdown"}) 添加os.filesize()接口 添加core.ui.xxx等cui组件模块,实现终端可视化界面,用于实现跟用户进行短暂的交互 通过xmake f --menu实现可视化菜单交互配置,简化工 继续阅读 »
2017-10-17 ruki
xmake-vscode plugin is a xmake integration in Visual Studio Code. It is deeply integrated with xmake and vscode to provide a convenient and fast cross-platform c/c++ development and building. Features Colorization Completion Lists StatusBar Commands Configuration Build Run and Debug Record and Playback Problem Color 继续阅读 »