Use XMake

This commit is contained in:
Alexander Popov 2024-02-24 18:38:58 +03:00
parent f0a5ba095c
commit 4b50401f38
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
3 changed files with 20 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
.xmake
build/
# Build & binary # Build & binary
brakeconf brakeconf
dist dist

View File

@ -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
View 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")