Use XMake
This commit is contained in:
parent
f0a5ba095c
commit
4b50401f38
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
|||||||
|
.xmake
|
||||||
|
build/
|
||||||
|
|
||||||
# Build & binary
|
# Build & binary
|
||||||
brakeconf
|
brakeconf
|
||||||
dist
|
dist
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <libserialport.h>
|
#include <libserialport.h>
|
||||||
#include <jansson.h>
|
#include <jansson.h>
|
||||||
#include "webui.h"
|
#include <webui.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
|
16
xmake.lua
Normal file
16
xmake.lua
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
set_project("brakeconf")
|
||||||
|
set_languages("c99")
|
||||||
|
add_rules("mode.debug", "mode.release")
|
||||||
|
|
||||||
|
add_includedirs(
|
||||||
|
"webui"
|
||||||
|
)
|
||||||
|
add_linkdirs(
|
||||||
|
"webui"
|
||||||
|
)
|
||||||
|
|
||||||
|
-- program
|
||||||
|
target("brakeconf")
|
||||||
|
set_kind("binary")
|
||||||
|
add_syslinks("webui-2", "serialport", "jansson")
|
||||||
|
add_files("src/*.c")
|
Loading…
Reference in New Issue
Block a user