Add Gateway build script.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2021-05-01 16:36:01 +09:00
parent c4efb6d31c
commit 8a2d28a5e4
7 changed files with 38 additions and 20 deletions

17
MQTTSNGateway/build.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: build.sh { udp | udp6 | xbee | loralink }"
else
echo "Start building MQTT-SN Gateway"
SCRIPT_DIR=$(cd $(dirname $0); pwd)
cd $SCRIPT_DIR/..
rm -rf build.gateway
mkdir build.gateway
cd build.gateway
cmake .. -DSENSORNET=$1
make MQTTSNPacke
make MQTT-SNGateway
make MQTT-SNLogmonitor
fi