[Pkg-running-devel] [openambit] 27/131: added build script

Christian Perrier bubulle at moszumanska.debian.org
Thu Jul 17 20:19:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

bubulle pushed a commit to branch master
in repository openambit.

commit accca0ddc997ca1f6f3f9483f74201c7ca393cb0
Author: Marco Bernasocchi <marco at opengis.ch>
Date:   Thu Jan 9 19:21:43 2014 +0100

    added build script
---
 .gitignore |  2 +-
 README     | 10 ++++++++++
 build.sh   | 25 +++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 829a7f9..6dcb1c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
 # Ignore build directories
-*build*
+*build*/
diff --git a/README b/README
index 14fab5b..97a8ab0 100644
--- a/README
+++ b/README
@@ -8,6 +8,16 @@ application, running it from the build directory is quite
 sufficient. Thus, the building instructions below has left
 out the installation parts.
 
+BUILD SCRIPT
+============
+cd YOUR/git/REPO/loaction
+./buils.sh
+
+
+DEPENDENCIES
+============
+sudo apt-get install libudev-dev libusb-1.0-0-dev
+
 
 src/libambit
 ============
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..d3bc5c3
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,25 @@
+SOURCE_LOCATION="`dirname \"$0\"`"
+SOURCE_LOCATION="`( cd \"$SOURCE_LOCATION\" && pwd )`"
+
+CORES=$(cat /proc/cpuinfo | grep processor | wc -l)
+
+cd $SOURCE_LOCATION
+
+echo "------building libambit------"
+mkdir -f libambit-build
+cd libambit-build
+cmake ../src/libambit
+make -j$CORES
+
+cd $SOURCE_LOCATION
+echo "------building openambit------"
+mkdir -f openambit-build
+cd openambit-build
+qmake ../src/openambit
+make -j$CORES
+
+cd $SOURCE_LOCATION
+echo "------running openambit------"
+cd openambit-build
+LD_LIBRARY_PATH=../libambit-build ./openambit
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/openambit.git



More information about the Pkg-running-devel mailing list