summaryrefslogtreecommitdiff
path: root/api/generate_all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'api/generate_all.sh')
-rwxr-xr-xapi/generate_all.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/api/generate_all.sh b/api/generate_all.sh
new file mode 100755
index 0000000..e446c5e
--- /dev/null
+++ b/api/generate_all.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+if [ ! $COMMON_API_ROOT_DIR ]
+then
+ echo 'Set the root dir of the common api tools'
+ echo 'export COMMON_API_ROOT_DIR=<path>'
+ exit 1
+fi
+
+echo 'delete the build folder'
+rm -rf build
+
+mkdir build
+cd build
+
+echo 'generate all the templates for CommonAPI'
+cmake -DCOMMONAPI_DBUS_TOOL_GENERATOR=$COMMON_API_ROOT_DIR/common-api-dbus-tools/org.genivi.commonapi.dbus.cli.product/target/products/org.genivi.commonapi.dbus.cli.product/linux/gtk/x86/commonapi-dbus-generator-linux-x86 -DCOMMONAPI_TOOL_GENERATOR=$COMMON_API_ROOT_DIR/genivi/common-api-tools/org.genivi.commonapi.core.cli.product/target/products/org.genivi.commonapi.core.cli.product/linux/gtk/x86/commonapi-generator-linux-x86 ../franca/
+