build: Avoid pkg-config bug on Windows 89/18889/2
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 2 Apr 2014 10:13:42 +0000 (19:13 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 2 Apr 2014 10:18:47 +0000 (19:18 +0900)
Change-Id: I1754489290eaf18e4b2a263eb23b6a6f1ba31098
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
package/build.windows-32
tizen/emulator_configure.sh

index 6f091e74b9e1591506c190cd2a07f7a7249cc0a5..031d3fd90d1d563d103195482f0c02b6244d201f 100755 (executable)
@@ -37,7 +37,11 @@ prepare()
        PATH=$PATH:$PURIFIED_ROOTDIR/bin:$PURIFIED_ROOTDIR/apache-ant_1.9.2/bin:$PURIFIED_ROOTDIR/SDL_1.2.15/bin:$PURIFIED_ROOTDIR/gtk-bundle_2.24.10/bin:$PURIFIED_ROOTDIR/libcurl-4_1.0.1/bin:$PURIFIED_ROOTDIR/pixman_0.30.0/bin
        export PATH
 
-       export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$ROOTDIR/libav/lib/pkgconfig:$ROOTDIR/SDL_1.2.15/lib/pkgconfig:$ROOTDIR/gtk-bundle_2.24.10/lib/pkgconfig:$ROOTDIR/libcurl-4_1.0.1/lib/pkgconfig:$ROOTDIR/pixman_0.30.0/lib/pkgconfig
+       if [ -z ${PKG_CONFIG_PATH} ] ; then       # avoid pkg-config bug on Window
+               export PKG_CONFIG_PATH=$ROOTDIR/libav/lib/pkgconfig:$ROOTDIR/SDL_1.2.15/lib/pkgconfig:$ROOTDIR/gtk-bundle_2.24.10/lib/pkgconfig:$ROOTDIR/libcurl-4_1.0.1/lib/pkgconfig:$ROOTDIR/pixman_0.30.0/lib/pkgconfig
+       else
+               export PKG_CONFIG_PATH=$ROOTDIR/libav/lib/pkgconfig:$ROOTDIR/SDL_1.2.15/lib/pkgconfig:$ROOTDIR/gtk-bundle_2.24.10/lib/pkgconfig:$ROOTDIR/libcurl-4_1.0.1/lib/pkgconfig:$ROOTDIR/pixman_0.30.0/lib/pkgconfig:${PKG_CONFIG_PATH}
+       fi
 
        BUILD_CFLAGS+=--extra-cflags="-I$ROOTDIR/SDL_1.2.15/include/SDL "
        BUILD_CFLAGS+=--extra-cflags="-I$ROOTDIR/gtk-bundle_2.24.10/include "
index 88a6247164bd399d594be66cfdcc18726c00c47a..cd274d437004570515cc5b29cf2f2ca5e0d5434f 100755 (executable)
@@ -143,6 +143,8 @@ set_target() {
 targetos=`uname -s`
 echo "##### checking for os... targetos $targetos"
 
+echo "##### TIZEN_SDK_DEV_PATH: ${TIZEN_SDK_DEV_PATH}"
+
 echo "$*"
 
 while [ "$#" -gt "0" ]
@@ -216,7 +218,11 @@ fi
 # append common flags
 CONFIGURE_APPEND="--enable-maru --enable-libav $CONFIGURE_APPEND"
 
+if [ -z ${PKG_CONFIG_PATH} ] ; then    # avoid pkg-config bug on Windows
+export PKG_CONFIG_PATH=${TIZEN_SDK_DEV_PATH}/distrib/lib/pkgconfig
+else
 export PKG_CONFIG_PATH=${TIZEN_SDK_DEV_PATH}/distrib/lib/pkgconfig:${PKG_CONFIG_PATH}
+fi
 
 case $targetos in
 Linux*)