[Tizen][Build] Disable component build automagically
authorBalazs Kelemen <b.kelemen@samsung.com>
Wed, 10 Sep 2014 23:30:34 +0000 (19:30 -0400)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
I regularly run into this. For open source developement the component
build is a great feature so it should be ok to keep it to be on by default.
This change adds a tiny bit of logic to the build system to disable it
automatically as it is not compatible with chromium-efl.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6110

Change-Id: Ifcbbee3d8763f299752584b804108f41bac67b41
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
tizen_src/build/gyp_chromiumefl.sh

index 05e5e9b..4e01d48 100755 (executable)
@@ -25,6 +25,13 @@ if [ ! -e ${TOPDIR}/src/build/util/LASTCHANGE.blink ]; then
   ${TOPDIR}/src/build/util/lastchange.py -s ${TOPDIR}/src/third_party/WebKit -o ${TOPDIR}/src/build/util/LASTCHANGE.blink
 fi
 
+ORIGINAL_GYP_DEFINES="$GYP_DEFINES"
+export GYP_DEFINES=$(echo "$GYP_DEFINES" | sed -e 's/component\s*=\s*shared_library//g')
+if [ "$ORIGINAL_GYP_DEFINES" != "$GYP_DEFINES" ]; then
+    echo "WARNING: component build is not supported."
+    echo "Removing component=shared_library from GYP_DEFINES."
+fi
+
 COMMON_GYP_PARAMETERS="--depth=${TOPDIR}/src
                       -I${TOPDIR}/impl/chromium-efl.gypi
                       --generator-output ${GYP_GENERATOR_OUTPUT}