aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorHolger Schroeder <holger.schroeder.ext@basyskom.de>2010-09-03 16:57:32 +0200
committerSergiy Dubovik <sergiy.dubovik@nokia.com>2010-09-08 08:56:49 +0300
commitfda18b0113f136ca340ea074ebb14f293606ab3d (patch)
tree311a11ace4ca1dda48591b4d5ccd224662d48cce /configure
parent902d7142dd9485714ebbacfcf81f3cbb1188a8ed (diff)
Changes: package the examples into an own debian package
RevBy: Armin, John Details: Jani Mikkonen requested to package the parts of the chaining example in libmeegotouch, so that he can then use these programs for some tests where he is using fakemail and fakegallery right now. he wanted to get rid of that duplicated code. when i looked a bit deeper into the build system i found that the examples could not be built and not be packaged in the current version. so i added that possibility to the build system. some other examples do not have install rules in their .pro files yet, and perhaps the debian/meegotouch-examples.install would then need to be expanded for the other examples too. i verified that the chaining example does work, when installed from the created .deb package. please test and comment.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index 7fa3cb9f..605961cb 100755
--- a/configure
+++ b/configure
@@ -61,6 +61,7 @@ CFG_MINIMAL=no
CFG_BUILD_TESTS=no
CFG_BUILD_BENCHMARKS=no
CFG_BUILD_PLAINQT=yes
+CFG_BUILD_EXAMPLES=no
M_DEFAULT_BUILD_PARTS="libs demos"
CFG_BUILD_PARTS=""
@@ -217,6 +218,7 @@ while [ "$#" -gt 0 ]; do
dev)
CFG_DEV="yes"
CFG_BUILD_TESTS="yes"
+ CFG_BUILD_EXAMPLES="yes"
CFG_BUILD_BENCHMARKS="yes"
CFG_BUILD_PLAINQT="yes"
;;
@@ -226,6 +228,9 @@ while [ "$#" -gt 0 ]; do
tests)
CFG_BUILD_TESTS="yes"
;;
+ examples)
+ CFG_BUILD_EXAMPLES="yes"
+ ;;
benchmarks)
CFG_BUILD_BENCHMARKS="yes"
;;
@@ -337,6 +342,14 @@ else
fi
fi
+if [ "$CFG_BUILD_EXAMPLES" = "yes" ]; then
+ CFG_BUILD_PARTS="$CFG_BUILD_PARTS examples"
+else
+ if echo $CFG_BUILD_PARTS | grep examples >/dev/null 2>&1; then
+ CFG_BUILD_EXAMPLES="yes"
+ fi
+fi
+
# is this a shadow build?
if [ "$OPT_SHADOW" = "maybe" ]; then
OPT_SHADOW=no
@@ -462,6 +475,7 @@ Additional options:
-tests ............. Build the tests.
-benchmarks ........ Build the benchmarks.
+ -examples .......... Build the examples.
-n900 .............. Build libmeegotouch for the N900 device.
@@ -781,6 +795,7 @@ echo
echo "Benchmarks .......... $CFG_BUILD_BENCHMARKS"
echo "Plain Qt support .... $CFG_BUILD_PLAINQT"
echo "Tests ............... $CFG_BUILD_TESTS"
+echo "Examples ............ $CFG_BUILD_EXAMPLES"
if [ "$HAVE_N900" = "yes" ]; then
echo ""