Fix build error '-lesplusplayer'
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 25 May 2023 23:52:32 +0000 (08:52 +0900)
committer이상철/Tizen Platform Lab(SR)/삼성전자 <sc11.lee@samsung.com>
Fri, 26 May 2023 02:17:18 +0000 (11:17 +0900)
It is added to sync with SES git.

This commit is from
: https://github.sec.samsung.net/SES/SmartThingsPlugin/pull/600/commits/cc012c733f0fd21ff8f071537acd700592468ad6

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
build_def.prop
copy_libs.sh [new file with mode: 0644]

index 9ab5b62..5345090 100644 (file)
@@ -1,4 +1,4 @@
 PREBUILD_COMMAND =
-PREBUILD_DESC =
+PREBUILD_COMMAND = sh copy_libs.sh
 POSTBUILD_COMMAND =
 POSTBUILD_DESC =
diff --git a/copy_libs.sh b/copy_libs.sh
new file mode 100644 (file)
index 0000000..cd45e1b
--- /dev/null
@@ -0,0 +1,22 @@
+echo "Copying Dependent Libraries to Libs Folder"
+if [ -z ${SBI_SYSROOT+x} ]; then echo "environment variable SBI_SYSROOT is not set ";ROOTSTRAP=$(cat ../../DEFAULT_ROOTSTRAP); echo "using RS :$ROOTSTRAP" ; else echo "SBI_SYSROOT is set to '$SBI_SYSROOT'"; ROOTSTRAP=$(basename "$SBI_SYSROOT");fi;
+PROFILE=$(echo $ROOTSTRAP | rev | cut -d"-" -f2- | rev )
+archPath=aarch64
+if [ "$BUILD_ARCH" != "aarch64" ];
+then
+       archPath=arm
+fi
+echo "Using build Rootstrap :: $ROOTSTRAP"
+echo "Using build Profile :: $PROFILE"
+echo "Using build build arch :: $BUILD_ARCH"
+echo "Using build build config :: $BUILD_CONFIG"
+
+echo "Current PWD : $PROJ_PATH"
+PROJ_ROOT="$(echo $PROJ_PATH|tr '^C' 'c'|tr '\\' '/')"
+echo "Current PWD : $PROJ_ROOT"
+rm -f ${PROJ_ROOT}/libs/*.so
+
+# copy esplusplayer to build
+cp -f ${PROJ_ROOT}/../libs/mm-avplayer/lib/fhub_esplusplayer/$BUILD_CONFIG/6.0-$archPath/libesplusplayer.so ${PROJ_ROOT}/libs
+ls -als ${PROJ_ROOT}/libs
+printenv