We new a site for the open source project: xmake
You can use xmake to run the given target and need not know where is the target program.
e.g.
We define a simple target with named ‘test’.
target("test")
set_kind("console")
add_files("*.c")
So, we can run it directly.
$xmake r test
or $xmake run test
xmake will compile it automaticly if the target has not been built.
Packages all targets for the current platform:
$xmake p
$xmake package
Packages the target test to the output directory: /tmp
$xmake p -o /tmp test
$xmake p --output=/tmp test
Packages targets for the iphoneos platform.
$xmake f -p iphoneos
$xmake p
We can uses the macro plugin to package all architectures of the given platform.
# packages targets for all architectures of the current platform
$xmake macro package
# packages targets for all architectures of the iphoneos platform
$xmake m package -p iphoneos
# packages targets with debug version for all architectures of the iphoneos platform and output to the directory: /tmp/output
$xmake m package -p iphoneos -f "-m debug" -o /tmp/output
xmake provides some project templates, you can easily create an empty project.
Create a c++ console project:
xmake create -l c++ -t 1 demo
or xmake create --language=c++ --template=1 demo
Create a c static library project:
xmake create -l c -t 5 demo
or xmake create --language=c --template=5 demo
Create a c shared library project:
xmake create -t 3 demo
or xmake create --template=3 demo
The default language is C language and -t/--template
argument is used to get specific types of templates.
Only supports three templates which are console, static library and shared library.
We will add some application templates in the future.
We need note that the template’s ID is variable.