${SCRIPTDIR}/apply_patches.sh
+TIZEN_VERSION="chromium_efl_tizen_version 2.3"
+
if [ ! -f "$HOME/.gbs.conf" ]; then
CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
PROFILE_FLAG="-P tizenmb_v2.3"
fi
-gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental "$@"
+gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
+ --define "${TIZEN_VERSION}" "$@"
${SCRIPTDIR}/apply_patches.sh -r
${SCRIPTDIR}/apply_patches.sh
-GBS_CONF=$HOME/.gbs.conf
-if [ ! -f $GBS_CONF ]; then
- GBS_CONF=${SCRIPTDIR}/gbs.conf
+TIZEN_VERSION="chromium_efl_tizen_version 2.2.1"
+
+if [ ! -f "$HOME/.gbs.conf" ]; then
+ CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
+ PROFILE_FLAG="-P tizentv_product"
fi
-gbs --conf $GBS_CONF build -P tizentv_product -A armv7l --incremental "$@"
+gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
+ --define "${TIZEN_VERSION}" "$@"
${SCRIPTDIR}/apply_patches.sh -r
#ifndef DATA_FETCHER_IMPL_TIZEN_H_
#define DATA_FETCHER_IMPL_TIZEN_H_
-#include <sensor.h>
+#ifndef TIZEN_LEGACY_V_2_2_1
+#include <sensor/sensor.h>
+#else
+#include <sensors.h>
+#endif
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include <sensor.h>
+#ifndef TIZEN_LEGACY_V_2_2_1
+#include <sensor/sensor.h>
+#else
+#include <sensors.h>
+#endif
+
class MotionUI {
public:
'clang': 0,
}],
],
+ 'chromium_efl_tizen_version%': '2.3',
},
'target_defaults': {
'defines': [
# Non-arm builds will ingore it in any case.
'__ARM_PCS',
],
+ 'conditions': [
+ ['chromium_efl_tizen_version=="2.3"', {
+ 'defines': [
+ 'TIZEN_V_2_3=1',
+ ],
+ }],
+ ['chromium_efl_tizen_version=="2.2.1"', {
+ 'defines': [
+ 'TIZEN_LEGACY_V_2_2_1=1',
+ ],
+ }],
+ ],
'sources/': [
['exclude', 'browser/device_sensors/data_fetcher_shared_memory_default.cc$'],
],
#include "common/version_info.h"
#if defined(OS_TIZEN)
-#include "system_info.h"
+#ifndef TIZEN_LEGACY_V_2_2_1
#include "system_info_internal.h"
+#else
+#include "system_info.h"
+#endif
#endif
-
#include "common/version_info_efl.h"
namespace EflWebView {
#set build mode
%if 0%{?_debug_mode}
%global OUTPUT_FOLDER %{OUTPUT_BASE_FOLDER}/Debug
- # Building the RPM in the GBS chroot fails with errors such as
- # /usr/lib/gcc/i586-tizen-linux/4.7/../../../../i586-tizen-linux/bin/ld:
- # failed to set dynamic section sizes: Memory exhausted
- # For now, work around it by passing a GNU ld-specific flag that optimizes the
- # linker for memory usage.
- export LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory"
%else
%global OUTPUT_FOLDER %{OUTPUT_BASE_FOLDER}/Release
%endif
+# Building the RPM in the GBS chroot fails with errors such as
+# /usr/lib/gcc/i586-tizen-linux/4.7/../../../../i586-tizen-linux/bin/ld:
+# failed to set dynamic section sizes: Memory exhausted
+# For now, work around it by passing a GNU ld-specific flag that optimizes the
+# linker for memory usage. See bugs:
+# - http://107.108.218.239/bugzilla/show_bug.cgi?id=6457
+# - http://107.108.218.239/bugzilla/show_bug.cgi?id=6629
+export LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory"
+
if type ccache &> /dev/null; then
source build/ccache_env.sh %{OUTPUT_BUILD_PROFILE_TARGET}
fi
%if 0%{?_remove_webcore_debug_symbols:1}
-Dremove_webcore_debug_symbols=1 \
%endif
+%if 0%{?chromium_efl_tizen_version:1}
+ -Dchromium_efl_tizen_version=%{chromium_efl_tizen_version} \
+%endif
-Dwebdb_dir="%{CHROMIUM_WEBDB_DIR}"/data/db \
-Dbuilding_for_tizen_"%{OUTPUT_BUILD_PROFILE_TARGET}"=1
%endif