diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..286bb73 --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +./chgver +xmake --root diff --git a/chgver b/chgver new file mode 100644 index 0000000..b2478fb Binary files /dev/null and b/chgver differ diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..2f9bd9a --- /dev/null +++ b/config.h.in @@ -0,0 +1,6 @@ +#pragma once + +#define VER_MAIN 2 +#define VER_MINOR 0 +#define VER_DATE 20231229 +#define VER_BUILD 1 diff --git a/xmake.lua b/xmake.lua index e87b2e9..52b2c7c 100644 --- a/xmake.lua +++ b/xmake.lua @@ -57,6 +57,11 @@ add_packagedirs("sdk") -- -- set_configvar("MOTOR_UART", "/dev/ttyUSB0") -- set_configvar("VIDEO_CLASS", has_config("isp1") and "GVideoISP1" or "gVideo") +add_defines("VER_MAIN=2") +add_defines("VER_MINOR=0") +add_defines("VER_DATE=20231229") +add_defines("VER_BUILD=2") + target("conf") set_kind("phony") add_options("usb_isp1", "chip_type", "unfixed", "testfpga", "loopdebug") @@ -66,6 +71,8 @@ target("conf") includes("usb", "hardware", "scanner") + + -- includes("regs", "deviceio", "motorboard", "capimage", "usb", "service", "scanner", "imgproc", "applog","scanservice","fpgaupdate","motorcontroller","display","testlcd","keymonitor","testkeymonitor","testdisplay","testwakeup") -- if has_config("testdemo") then