[SPIN] Added the build script for Tizen Emulator (i586)
authorYoungcheol Kang <ychul.kang@samsung.com>
Mon, 19 Jan 2015 02:43:05 +0000 (11:43 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Added the below changes for i586 build
- Added the build_emulator.sh file
- Added the ninja files
- Added the codes for i586 build in the gbs.conf file.
- Added the codes for i586 build in the chromiul-efl.spec file.
- Added the guide for i586 build in the Readme.md file.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=10509
Reviewed by: Piotr Tworek, Youngbok Yoon

Change-Id: If032bb14ce214914c196e8ad85f0a80b8ac71788
Signed-off-by: Youngcheol Kang <ychul.kang@samsung.com>
tizen_src/README.md
tizen_src/build/build_emulator.sh [new file with mode: 0755]
tizen_src/build/gbs.conf
tizen_src/build/prebuild/ninja
tizen_src/build/prebuild/ninja-linux32 [new file with mode: 0755]
tizen_src/build/prebuild/ninja-linux64 [new file with mode: 0755]
tizen_src/build/prebuild/ninja.arm [new file with mode: 0755]
tizen_src/packaging/chromium-efl.spec

index feafb10..84ca2f4 100755 (executable)
@@ -14,6 +14,18 @@ Building
 
     $ ./build/build_desktop.sh [-h|--help] [--skip-gyp] [--skip-ninja] [--ccache] [--debug] [--content-shell]
 
+### For Emulator(i586) build
+
+    $ build/build_emulator.sh [--clean] [--define '_debug_mode 1'] [--define '_skip_gyp 1'] [--define 'nodebug 1'] [--define '_enable_content_shell 1']
+                              [--ccache]
+
+      [--define '_debug_mode 1']   excute debug build (default : release)
+      [--define '_skip_gyp 1']     skip gyp generate  (default : gyp generate)
+      [--define 'nodebug 1']       omit creation of debug packages (default: build debug packages too)
+                                   Note: To let binaries to be recreated without debug symbols, this should be
+                                   preceded by removing build directory.
+      [--ccache]                   see ### Using ccache inside gbs
+
 ### For Mobile build
 Before Tizen build You need to install GBS.
 Please refer to (https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.
diff --git a/tizen_src/build/build_emulator.sh b/tizen_src/build/build_emulator.sh
new file mode 100755 (executable)
index 0000000..34c6093
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+# source common functions and vars
+. `dirname $0`/common.sh
+trap '${SCRIPTDIR}/apply_patches.sh -r ${SCRIPTDIR}/patches;\
+      error_report $0 $LINENO' ERR SIGINT SIGTERM SIGQUIT
+
+${SCRIPTDIR}/apply_patches.sh ${SCRIPTDIR}/patches
+
+# "|| :" means "or always succeeding built-in command"
+PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*" || :)
+
+if [ "$PROFILE_NAME" == "" ]; then
+  PROFILE_NAME=tizen_emulator_v2.4
+  PROFILE_FLAG="-P $PROFILE_NAME"
+fi
+
+TIZEN_VERSION="chromium_efl_tizen_version 2.4"
+
+if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then
+  CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
+fi
+
+gbs $CONF_FLAG build $PROFILE_FLAG -A i586 --incremental \
+    --define "${TIZEN_VERSION}" "$@"
+
+${SCRIPTDIR}/apply_patches.sh -r ${SCRIPTDIR}/patches
+
index 0934d83..cc4c696 100755 (executable)
@@ -16,6 +16,23 @@ url = http://10.251.52.177/tizenrepo/eur-open/supplement_mobile_chromium_spin_v2
 
 ###############################################
 #
+# Tizen v2.4 for emulator(i586)
+#
+[profile.tizen_emulator_v2.4]
+obs = obs.tizenmb
+# The order is IMPORTANT!
+repos = repo.tizen_emulator_supplement_chromium_spin_v2.4, repo.tizen_emulator_base_v2.4_obs
+buildroot=~/GBS-ROOT-2.4-DEV
+
+[repo.tizen_emulator_base_v2.4_obs]
+url = http://10.251.52.177/tizenrepo/eur-open/tizen-2.4-mobile_20150106.4/repos/emulator/packages
+
+[repo.tizen_emulator_supplement_chromium_spin_v2.4]
+url = http://10.251.52.177/tizenrepo/eur-open/supplement_mobile_chromium_spin_v2.4_i586
+
+
+###############################################
+#
 # Tizen v2.3 for mobile
 #
 [profile.tizenmb_v2.3]
index cb4c3ec..cab5668 100755 (executable)
Binary files a/tizen_src/build/prebuild/ninja and b/tizen_src/build/prebuild/ninja differ
diff --git a/tizen_src/build/prebuild/ninja-linux32 b/tizen_src/build/prebuild/ninja-linux32
new file mode 100755 (executable)
index 0000000..e4be407
Binary files /dev/null and b/tizen_src/build/prebuild/ninja-linux32 differ
diff --git a/tizen_src/build/prebuild/ninja-linux64 b/tizen_src/build/prebuild/ninja-linux64
new file mode 100755 (executable)
index 0000000..b251964
Binary files /dev/null and b/tizen_src/build/prebuild/ninja-linux64 differ
diff --git a/tizen_src/build/prebuild/ninja.arm b/tizen_src/build/prebuild/ninja.arm
new file mode 100755 (executable)
index 0000000..cb4c3ec
Binary files /dev/null and b/tizen_src/build/prebuild/ninja.arm differ
index b54e3c5..07badf4 100755 (executable)
@@ -212,7 +212,11 @@ fi
   -Dbuilding_for_tizen_"%{OUTPUT_BUILD_PROFILE_TARGET}"=1
 %endif
 
+%ifarch %{arm}
+build/prebuild/ninja.arm %{_smp_mflags} -C"%{OUTPUT_FOLDER}" \
+%else
 build/prebuild/ninja %{_smp_mflags} -C"%{OUTPUT_FOLDER}" \
+%endif
 %if 0%{?_enable_content_shell}
   content_shell_efl \
 %endif