This release fixed some bugs and improve some compilation problem.
If you want to known more usage, please see online documents。
Source code: Github, Gitee.
Changes
Improve add_files to configure the compile option of the given files
Inherit links and linkdirs from the dependent targets and options
Improve target.a继续阅读 »
This release introduces a number of new feature updates, as detailed in Some new features of xmake v2.1.5.
If you want to known more usage, please see online documents。
Source code: Github, Gitee.
New features
#83: Add add_csnippet and add_cxxsnippet into option for detecting some compiler features.
#83: Add user e继续阅读 »
find_package
This interface refers to the design of CMake for the find_* interfaces, which finds and adds package dependencies in the project target.
lua
target("test")
set_kind("binary")
add_files("*.c")
on_load(function (target)
import("lib.detect.find_package")
target:add(find_package("继续阅读 »
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
```继续阅读 »