Packages all targets for the current platform:
bash
$xmake p
$xmake package
Packages the target test to the output directory: /tmp
bash
$xmake p -o /tmp test
$xmake p --output=/tmp test
Packages targets for the iphoneos platform.
bash
$xmake f -p iphoneos
$xmake p
We can uses the macro继续阅读 »
Sources
Changelog
New features
Add task api for running custom tasks
Add plugin expansion and provide some builtin plugins
Add export ide project plugin(.e.g makefile and will support to export other projects for vs, xcode in feature)
Add demo plugin for printing 'hello xmake'
Add make doxygen documents plugin
Add m继续阅读 »
Links
Homepage
Documents
New features
Add aur package script and support to install xmake from yaourt
Add set_basename api for target
Changes
Support vs2017
Support compile rust for android
Improve vs201x project plugin and support multi-modes compilation.
Bugs fixed
Fix cannot find android sdk header files
Fix che继续阅读 »
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("继续阅读 »
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继续阅读 »
xmake provides some project templates, you can easily create an empty project.
Create a c++ console project:
bash
xmake create -l c++ -t 1 demo
or xmake create --language=c++ --template=1 demo
Create a c static library project:
bash
xmake create -l c -t 5 demo
or xmake create --language=c继续阅读 »