--- /dev/null
+. $(dirname $0)/common.sh
+
+function silentApply() {
+ PATCH=$(readlink -f $1)
+ patch -d ${CHROME_SRC} --forward --reject-file=- -p1 -i $PATCH >/dev/null
+ if [ "$?" -gt 1 ]; then
+ >&2 echo "failed applying $1"
+ fi
+}
+
+function silentDeapply() {
+ PATCH=$(readlink -f $1)
+ pushd ${CHROME_SRC} > /dev/null
+ patch --forward --reject-file=- -p1 --dry-run -i $PATCH >/dev/null
+ RET=$?
+ if [ "$RET" -gt 1 ]; then
+ >&2 echo "failed deapplying $1"
+ elif [ "$RET" == "1" ]; then
+ # exit status 1 means it's already applied so we revert
+ patch -p1 -R --reject-file=- -i $PATCH >/dev/null
+ fi
+ popd > /dev/null
+}
+
+echo "$@" | grep -q "\-r" && REVERSE=1
+
+patchdir=${TOPDIR}/build/patches
+for patch in "$patchdir/*.diff"; do
+ if [ -z "$REVERSE" ]; then
+ silentApply $patch
+ else
+ silentDeapply $patch
+ fi
+done
# source common functions and vars
. `dirname ${BASH_SOURCE[0]}`/common.sh
-# copy patched files (for GCC 4.5)
-. ${SCRIPTDIR}/copy_patched_files.sh
+${SCRIPTDIR}/apply_patches.sh
-gbs build -A armv7l --incremental "$@"
+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 "$@"
+
+${SCRIPTDIR}/apply_patches.sh -r
# source common functions and vars
. `dirname ${BASH_SOURCE[0]}`/common.sh
-# copy patched files (for GCC 4.5)
-. ${SCRIPTDIR}/copy_patched_files.sh
+${SCRIPTDIR}/apply_patches.sh
GBS_CONF=$HOME/.gbs.conf
if [ ! -f $GBS_CONF ]; then
fi
gbs --conf $GBS_CONF build -P tizentv_product -A armv7l --incremental "$@"
+
+${SCRIPTDIR}/apply_patches.sh -r
SCRIPTDIR=`pwd -L`
popd > /dev/null
-PROJECT_ROOT_PATH="${SCRIPTDIR}/.."
+export TOPDIR="${SCRIPTDIR}/.."
if [[ -z "${CHROME_SRC}" ]]; then
# If $CHROME_SRC was not set, assume src subfolder in project directory is CHROME_SRC.
- export CHROME_SRC="${PROJECT_ROOT_PATH}/src"
+ export CHROME_SRC="${TOPDIR}/src"
fi
function applyPatch {
+++ /dev/null
-#!/bin/bash
-
-# source common functions and vars
-. `dirname ${BASH_SOURCE[0]}`/common.sh
-
-PATCHED_DIR=$SCRIPTDIR/patched_files
-
-[general]
-profile = profile.tizenmb
+###############################################
+#
+# Tizen v2.3 for mobile
+#
+[profile.tizenmb_v2.3]
+obs = obs.tizenmb
+# The order is IMPORTANT!
+repos = repo.tizenmb_supplement_v2.3, repo.tizenmb_supplement_chromium_v2.3, repo.tizenmb_base_v2.3
+buildroot=~/GBS-ROOT-2.3-DEV
+
+[repo.tizenmb_supplement_v2.3]
+url = http://10.251.52.177/tizenrepo/eur-open/supplement_v2.3
+
+[repo.tizenmb_base_v2.3]
+url = http://10.251.52.177/tizenrepo/eur-open/PtnZ910FXX_20140827.003
+
+# Supplementary repo for chromium
+[repo.tizenmb_supplement_chromium_v2.3]
+url = http://10.251.52.177/tizenrepo/eur-open/supplement_mobile_chromium_orange_v2.3
-[profile.tizenmb]
+###############################################
+#
+# Tizen v2.1 for mobile
+#
+[profile.tizenmb_v2.1]
passwdx =
obs = obs.tizenmb
# The order is IMPORTANT!
# base repo
[repo.tizenmb_base]
url = http://10.251.52.177/tizenrepo/jpn-dcm/Redwood8974JPNDCM_20131218.006
-#url = http://105.144.128.62/tizenrepo/jpn-dcm/Redwood8974JPNDCM_20131218.006
# Supplementary repo for additional rpms packages required in gbs build
[repo.tizenmb_supplement]
url = http://10.251.52.177/tizenrepo/jpn-dcm/supplement
-#url = http://105.144.128.62/tizenrepo/jpn-dcm/supplement
+###############################################
+#
+# Tizen v2.2.1 for tv
+#
[profile.tizentv_product]
repos = repo.tizentv_supplement, repo.tztv_2.2.1_product, repo.tztv_2.2.1_profile, repo.tztv_2.2.1_product_i586, repo.tztv_2.2.1_profile_i586, repo.tizen_2.2.1
buildroot = ~/GBS-TV-PRODUCT
-[repo.tztv_2.2.1_demo]
-url=http://168.219.241.168/snapshots/tztv-2.2.1-tdc14/product/latest/
[repo.tztv_2.2.1_product]
-url=http://168.219.241.168/snapshots/tztv-2.2.1/product/latest/repos/product/armv7l/packages/
-#url=http://168.219.241.168/snapshots/tztv-2.2.1/product/tztv-2.2.1_20140526.4/
+url = http://10.251.52.177/tizenrepo/tv_repo/snapshots/tztv-2.2.1/product/tztv-2.2.1_20140807.3/repos/product/armv7l/packages/
+
[repo.tztv_2.2.1_profile]
-url=http://168.219.241.168/snapshots/tztv-2.2.1/product/latest/repos/profile/armv7l/packages/
+url = http://10.251.52.177/tizenrepo/tv_repo/snapshots/tztv-2.2.1/product/tztv-2.2.1_20140807.3/repos/profile/armv7l/packages/
+
[repo.tztv_2.2.1_product_i586]
-url=http://168.219.241.168/snapshots/tztv-2.2.1/product/latest/repos/product/ia32/packages/
+url = http://10.251.52.177/tizenrepo/tv_repo/snapshots/tztv-2.2.1/product/tztv-2.2.1_20140807.3/repos/product/ia32/packages/
+
[repo.tztv_2.2.1_profile_i586]
-url=http://168.219.241.168/snapshots/tztv-2.2.1/product/latest/repos/profile/ia32/packages/
+url = http://10.251.52.177/tizenrepo/tv_repo/snapshots/tztv-2.2.1/product/tztv-2.2.1_20140807.3/repos/profile/ia32/packages/
+
[repo.tizen_2.2.1]
-#url=http://168.219.241.168/tizen-rsa/tizen-2.2.1-vd-4.5/standard/tizen-2.2.1-vd-4.5_20140614.2
-url=http://168.219.241.168/tizen-rsa/tizen-2.2.1
+url = http://10.251.52.177/tizenrepo/tv_repo/tizen-rsa/tizen-2.2.1
# Supplementary repo for additional rpms packages required in gbs build
[repo.tizentv_supplement]
-url = http://10.251.52.177/tizenrepo/jpn-dcm/supplement_tv
+url = http://10.251.52.177/tizenrepo/tv_repo/supplement_tv
+
--- /dev/null
+webrtc.diff
+ double slash (//) in include path leads to rpm error, fixed by patch
+ See: http://107.108.218.239/bugzilla/show_bug.cgi?id=6458
+ TODO(b.kelemen): upstream
--- /dev/null
+diff --git a/third_party/webrtc/modules/video_render/incoming_video_stream.cc b/third_party/webrtc/modules/video_render/incoming_video_stream.cc
+index 71f30c3..1770569 100644
+--- a/third_party/webrtc/modules/video_render/incoming_video_stream.cc
++++ b/third_party/webrtc/modules/video_render/incoming_video_stream.cc
+@@ -8,7 +8,7 @@
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+-#include "webrtc/modules/video_render//incoming_video_stream.h"
++#include "webrtc/modules/video_render/incoming_video_stream.h"
+
+ #include <assert.h>
+
+@@ -22,7 +22,7 @@
+ #endif
+
+ #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
+-#include "webrtc/modules/video_render//video_render_frames.h"
++#include "webrtc/modules/video_render/video_render_frames.h"
+ #include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
+ #include "webrtc/system_wrappers/interface/event_wrapper.h"
+ #include "webrtc/system_wrappers/interface/thread_wrapper.h"
has_last_motion_data_(false),
last_motion_timestamp_(0),
is_orientation_buffer_ready_(false) {
+ // FIXME: sensor API's changed in Tizen 2.3, we have to adapt.
+#if !defined(EWK_BRINGUP)
sensor_create(&handle_);
sensor_orientation_set_cb(handle_, kInertialSensorIntervalMillis,
DataFetcherImplTizen::onOrientationChanged, this);
sensor_accelerometer_set_cb(handle_, kInertialSensorIntervalMillis,
DataFetcherImplTizen::onAccelerationChanged, this);
+#endif
}
DataFetcherImplTizen::~DataFetcherImplTizen() {
+#if !defined(EWK_BRINGUP)
sensor_destroy(handle_);
+#endif
}
DataFetcherImplTizen* DataFetcherImplTizen::GetInstance() {
LeakySingletonTraits<DataFetcherImplTizen> >::get();
}
+#if !defined(EWK_BRINGUP)
+
bool DataFetcherImplTizen::StartFetchingDeviceMotionData(
DeviceMotionHardwareBuffer* buffer) {
DCHECK(buffer);
is_orientation_buffer_ready_ = ready;
}
+#else
+
+bool DataFetcherImplTizen::StartFetchingDeviceMotionData(DeviceMotionHardwareBuffer* buffer) { return false; }
+void DataFetcherImplTizen::StopFetchingDeviceMotionData() {}
+bool DataFetcherImplTizen::StartFetchingDeviceOrientationData(DeviceOrientationHardwareBuffer* buffer) { return false; }
+void DataFetcherImplTizen::StopFetchingDeviceOrientationData() {}
+bool DataFetcherImplTizen::Start(ConsumerType) {}
+void DataFetcherImplTizen::Stop(ConsumerType) {}
+
+#endif // EWK_BRINGUP
+
} // namespace content
#ifndef DATA_FETCHER_IMPL_TIZEN_H_
#define DATA_FETCHER_IMPL_TIZEN_H_
-#include <sensors.h>
+#include <sensor.h>
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
* Boston, MA 02110-1301, USA.
*/
+// FIXME: need to adapt this code to sensor API changes in Tizen 2.3.
+#if !defined(EWK_BRINGUP)
+
#include "MotionUI.h"
#include "wkext_motion.h"
#include "base/logging.h"
return m_syncScale;
}
+
+#endif // EWK_BRINGUP
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include <sensors.h>
+#include <sensor.h>
class MotionUI {
public:
#include "MotionUI.h"
#include "base/logging.h"
+#if !defined(EWK_BRINGUP)
void wkext_motion_tilt_enable_set(Evas_Object* view, int enable, unsigned int sensitivity) {
LOG(ERROR)<<"wkext_motion_tilt_enable_set";
MotionUI::motionUI().setTiltToZoom(view, enable, sensitivity);
return MotionUI::motionUI().syncScale(scale, isTiltMode);
}
+#else
+void wkext_motion_tilt_enable_set(Evas_Object* view, int enable, unsigned int sensitivity) {}
+void wkext_motion_tilt_start(Evas_Object* view, const Evas_Coord_Point* position) {}
+void wkext_motion_tilt_stop() {}
+int wkext_motion_tilt_is_running() { return EINA_FALSE; }
+void wkext_motion_tilt_position_update(Evas_Coord_Point* position) {}
+void wkext_motion_tilt_scale_initialize(double scale) {}
+double wkext_motion_tilt_scale_sync(double scale, Wkext_Motion_Type type) { return 0.; }
+#endif
'edje_dir%': '/usr/share/chromium-efl/themes/',
'webdb_dir%': '/usr/share/chromium-efl/db/',
'edje_compiler%': 'edje_cc',
- 'ewk_bringup%': 1,
},
'targets': [{
'target_name': 'chromium-efl',
{
'variables': {
+ 'ewk_bringup%': 1,
'__GCC_VERSION%': '<!(gcc -dumpversion)',
'conditions': [
['building_for_tizen==1', {
}],
],
}],
+ ['ewk_bringup==1', {
+ 'defines!': [
+ 'TIZEN_CONTENTS_DETECTION=1',
+ 'TIZEN_ENABLE_CAPI_SUPPORT=1',
+ ],
+ }]
],
},
}
#if defined(OS_TIZEN)
#include "system_info.h"
+#include "system_info_internal.h"
#endif
#include "common/version_info_efl.h"
return true;
}
-#if defined(OS_TIZEN_MOBILE)
+#if defined(OS_TIZEN_MOBILE) && !defined(EWK_BRINGUP)
void EWebView::cameraResultCb(service_h request,
service_h reply,
service_result_e result,
#define EWEB_VIEW_H
#if defined(OS_TIZEN_MOBILE)
-#include <appfw/app_service.h>
+#if !defined(EWK_BRINGUP)
+// FIXME: appfw/app_service.h is no more in Tizen 2.3, figure out what to include instead.
+#include <appcore-agent/service_app.h>
+#endif
#include <vector>
#endif
bool HandleTouchEvent(ui::TouchEvent* event);
private:
-#if defined(OS_TIZEN_MOBILE)
+#if defined(OS_TIZEN_MOBILE) && !defined(EWK_BRINGUP)
static void cameraResultCb(service_h request, service_h reply,
service_result_e result, void* data);
#endif
virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE;
virtual void DispatchGestureEvent(ui::GestureEvent*) OVERRIDE;
-#if defined(OS_TIZEN_MOBILE)
+#if defined(OS_TIZEN_MOBILE) && !defined(EWK_BRINGUP)
bool LaunchCamera(base::string16 mimetype);
#endif
content::RenderWidgetHostViewEfl* rwhv() const;
Requires(post): xkeyboard-config
Requires(postun): /sbin/ldconfig
BuildRequires: which, vi, python, python-xml, bison, flex, gperf, gettext, perl, edje-bin
-BuildRequires: libjpeg-turbo-devel, expat-devel, libasound-devel, libhaptic, libcap-devel
+BuildRequires: libjpeg-turbo-devel, expat-devel, libhaptic, libcap-devel
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(recordproto)