xmake can run and debug the given target program now.
We only need configure the debug mode to compile this target and run it.
e.g.
-- enable debug symbols
if is_mode("debug")
set_symbols("debug")
end
-- define target
target("demo")
set_kind("kind")
add_files("src/*.c")
And we compile and run this program with the debug symbols.
$ xmake f -m debug
$ xmake r -d demo
It will generate pdb debug symbol files and detect the default debugger automatically on windows. (.e.g vsjitdebugger, windbg, ollydbg …)
xmake provides a convenient and flexible cross-compiling support, in most cases, we need not to configure complex toolchains prefix, for example: arm-linux-
As long as this toolchains meet the following directory structure:
/home/toolchains_sdkdir
- bin
- arm-linux-gcc
- arm-linux-ld
- ...
- lib
- libxxx.a
- include
- xxx.h
Then,we can only configure the sdk directory and build it.
$ xmake f -p linux --sdk=/home/toolchains_sdkdir
$ xmake
The algorithm is based on libtess2 here and we optimizated some implementation and fixed some bugs.
The differents between our algorithm and libtess2’s algorithm:
(you can see libtess2/alg_outline.md if want to known more details of algorithm.)
There are four stages to the algorithm:
There are seven stages to the tessellation algorithm:
The triangulation test result:
install.bat
$ git clone git@github.com:waruqi/xmake.git
$ cd ./xmake
$ sudo ./install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ sudo brew install xmake
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
$ sudo brew install xmake
xmake will automatically detect the system environment and create the most appropriate configuration to compile project when building a program
Usually we only need to run:
$ xmake
And it will not re-generate configuration if the project description has not changed.
But we can also modify configuration manually.
e.g
We want to build android program on macosx:
$ xmake f -p android --ndk=~/file/android-ndk