|
|
@@ -28,7 +28,7 @@ msg() {
|
|
|
post_cmake() {
|
|
|
# Check if xmlstarlet software package is available for fixing the generated Eclipse project setting
|
|
|
if [ $HAS_XMLSTARLET ]; then
|
|
|
- if [ $ANDROID_NDK ]; then
|
|
|
+ if [ $1 == "android-Build" ]; then
|
|
|
# For Android build, add the Android and Java nature to the project setting as it would be done by Eclipse during project import
|
|
|
# This fix avoids the step to reimport the project everytime the Eclipse project setting is regenerated by cmake_gcc.sh invocation
|
|
|
echo -- Add Android and Java nature to Eclipse project setting files in $( pwd )/$1
|
|
|
@@ -54,9 +54,11 @@ post_cmake() {
|
|
|
$1/.project
|
|
|
done
|
|
|
|
|
|
- elif [ $RASPI_TOOL]; then
|
|
|
- # For Raspberry Pi build, do nothing
|
|
|
- :
|
|
|
+ elif [ $1 == "raspi-Build" ]; then
|
|
|
+ # For Raspberry Pi build, just remove build type from project name
|
|
|
+ xmlstarlet ed -P -L \
|
|
|
+ -u "/projectDescription/name/text()" -x "concat(substring-before(/projectDescription/name/text(), '-Release'), substring-before(/projectDescription/name/text(), '-Debug'), substring-before(/projectDescription/name/text(), '-RelWithDebInfo'))" \
|
|
|
+ $1/.project
|
|
|
|
|
|
else
|
|
|
# For native build, move the Eclipse project setting files back to Source folder to fix source code versioning
|