The tizen v2.2.1 is not supported anymore.
Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14148
Reviewed by: SeungSeop Park, Antonio Gomes
Change-Id: I3072ff0cf6825caaf8cc487061df9ee0c3aae7d9
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
fi
EXTRA_PACK_OPTS=""
- if [ "$PROFILE" == "tztv_v2.2.1_prehawk" -o "$PROFILE" == "tztv_v2.4_product" ]; then
+ if [ "$PROFILE" == "tztv_v2.4_product" ]; then
EXTRA_PACK_OPTS="--extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm"
fi
preBuild ${SYSROOTDIR}
export __GYP_CHROMIUMEFL_TARGET=crosscompile
-hostGypChromiumEfl -Dbuilding_for_tizen_tv=1 -Dchromium_efl_tizen_version="2.2.1"
+hostGypChromiumEfl -Dbuilding_for_tizen_tv=1 -Dchromium_efl_tizen_version="2.4"
hostNinja crosscompile
RET=$?
[repo.tizenmb_supplement]
url = http://10.251.52.177/tizenrepo/jpn-dcm/supplement
-###############################################
-#
-# Tizen v2.2.1 for tv (GolfP Platform Binary)
-#
-[profile.tztv_v2.2.1_golfp]
-repos = repo.tztv_2.2.1_golfp_supplement, repo.tztv_2.2.1_golfp_product, repo.tztv_2.2.1_golfp_profile, repo.tztv_2.2.1_golfp_product_i586, repo.tztv_2.2.1_golfp_profile_i586, repo.tztv_2.2.1_golfp_base
-buildroot = ~/GBS-TV-2.2.1-GOLFP
-
-[repo.tztv_2.2.1_golfp_product]
-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_golfp_profile]
-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_golfp_product_i586]
-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_golfp_profile_i586]
-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.tztv_2.2.1_golfp_base]
-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.tztv_2.2.1_golfp_supplement]
-url = http://10.251.52.177/tizenrepo/tv_repo/supplement_tv
-
-###############################################
-#
-# Tizen v2.2.1 for tv (Prehawk Platform Binary)
-#
-[profile.tztv_v2.2.1_prehawk]
-repos = repo.tztv_2.2.1_prehawk_supplement, repo.tztv_2.2.1_prehawk_product, repo.tztv_2.2.1_prehawk_profile, repo.tztv_2.2.1_prehawk_base
-buildroot = ~/GBS-TV-2.2.1-PREHAWK
-
-[repo.tztv_2.2.1_prehawk_product]
-url = http://10.251.52.177/tizenrepo/tv_repo/Prehawk_atsc_20141018.5/repos/product/armv7l/packages/
-
-[repo.tztv_2.2.1_prehawk_profile]
-url = http://10.251.52.177/tizenrepo/tv_repo/Prehawk_atsc_20141018.5/repos/profile/armv7l/packages/
-
-[repo.tztv_2.2.1_prehawk_base]
-url = http://10.251.52.177/tizenrepo/tv_repo/tizen-2.2.1-vd-4.8_20140822.1
-
-# Supplementary repo for additional rpms packages required in gbs build
-[repo.tztv_2.2.1_prehawk_supplement]
-# This supplement is temporary repository for capi-media-player package
-# which added new API (player_get_content_video_size).
-# If this package will be merged, I'll change this codes
-url = http://10.251.52.177/tizenrepo/tv_repo/supplement_tv_prehawk_player
-
-###############################################
-#
-# Tizen v2.2.1 for tv (HawkP Platform Binary)
-#
-[profile.tztv_v2.2.1_hawkp]
-obs = obs.tizentv
-repos = repo.supplement_hawkp, repo.product_hawkp, repo.profile_hawkp, repo.main_hawk_4.8, repo.base_hawk_4.8
-buildroot = ~/GBS-TV-2.2.1-HAWK-P
-
-[obs.tizentv]
-url = https://168.219.241.169/api
-user = obs_viewer
-passwdx = obs_viewer_169
-
-# mirrored from http://168.219.244.109/tizen-rsa/tizen-2.2.1-vd-4.8/standard
-[repo.base_hawk_4.8]
-url = http://10.251.52.177/tizenrepo/tv_repo/hawkp/tizen-2.2.1-vd-4.8/repos/base/armv7l/packages
-
-[repo.main_hawk_4.8]
-url = http://10.251.52.177/tizenrepo/tv_repo/hawkp/tizen-2.2.1-vd-4.8/repos/main/armv7l/packages
-
-# mirrored from http://168.219.244.109/snapshots/tztv-2.2.1-hawk-p/product/Hawk-P
-[repo.product_hawkp]
-url = http://10.251.52.177/tizenrepo/tv_repo/hawkp/tztv-2.2.1-hawk-p/repos/product/armv7l/packages
-
-[repo.profile_hawkp]
-url = http://10.251.52.177/tizenrepo/tv_repo/hawkp/tztv-2.2.1-hawk-p/repos/profile/armv7l/packages
-
-[repo.supplement_hawkp]
-url = http://10.251.52.177/tizenrepo/tv_repo/supplement_tv_hawk
-
#############################################
#
# Tizen v2.4 for product tv (HawkP armv7l)
namespace content {
-#if !TIZEN_VERSION_EQ(2,2,1)
static sensor_h sensor_orientation_;
static sensor_h sensor_accelerometer_;
static sensor_h sensor_gyroscope_;
static sensor_listener_h listener_orientation_;
static sensor_listener_h listener_accelerometer_;
static sensor_listener_h listener_gyroscope_;
-#endif
DataFetcherImplTizen::DataFetcherImplTizen()
: device_motion_buffer_(NULL),
has_last_motion_data_(false),
last_motion_timestamp_(0),
is_orientation_buffer_ready_(false) {
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_get_default_sensor(SENSOR_ORIENTATION, &sensor_orientation_);
sensor_get_default_sensor(SENSOR_ACCELEROMETER, &sensor_accelerometer_);
sensor_get_default_sensor(SENSOR_GYROSCOPE, &sensor_gyroscope_);
sensor_create_listener(sensor_orientation_, &listener_orientation_);
sensor_create_listener(sensor_accelerometer_, &listener_accelerometer_);
sensor_create_listener(sensor_gyroscope_, &listener_gyroscope_);
-#else
- sensor_create(&handle_);
- sensor_orientation_set_cb(handle_,
- kInertialSensorIntervalMicroseconds / 1000,
- DataFetcherImplTizen::onOrientationChanged, this);
-#endif
}
DataFetcherImplTizen::~DataFetcherImplTizen() {
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_listener_unset_event_cb(listener_orientation_);
sensor_listener_stop(listener_orientation_);
sensor_destroy_listener(listener_orientation_);
sensor_listener_stop(listener_gyroscope_);
sensor_destroy_listener(listener_gyroscope_);
-#else
- sensor_destroy(handle_);
-#endif
}
DataFetcherImplTizen* DataFetcherImplTizen::GetInstance() {
base::AutoLock autolock(motion_buffer_lock_);
device_motion_buffer_ = buffer;
}
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_listener_set_event_cb(listener_accelerometer_,
kInertialSensorIntervalMicroseconds / 1000,
DataFetcherImplTizen::onAccelerationChanged, this);
-#else
- sensor_accelerometer_set_cb(handle_,
- kInertialSensorIntervalMicroseconds / 1000,
- DataFetcherImplTizen::onAccelerationChanged, this);
-#endif
return Start(CONSUMER_TYPE_MOTION);
}
{
base::AutoLock autolock(motion_buffer_lock_);
if (device_motion_buffer_) {
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_listener_unset_event_cb(listener_accelerometer_);
-#else
- sensor_accelerometer_set_cb(handle_,
- kInertialSensorIntervalMicroseconds / 1000, NULL, this);
-#endif
device_motion_buffer_ = NULL;
}
}
base::AutoLock autolock(orientation_buffer_lock_);
device_orientation_buffer_ = buffer;
}
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_listener_set_event_cb(listener_orientation_,
kInertialSensorIntervalMicroseconds / 1000,
DataFetcherImplTizen::onOrientationChanged, this);
-#else
- sensor_orientation_set_cb(handle_,
- kInertialSensorIntervalMicroseconds / 1000,
- DataFetcherImplTizen::onOrientationChanged, this);
-#endif
bool success = Start(CONSUMER_TYPE_ORIENTATION);
{
base::AutoLock autolock(orientation_buffer_lock_);
if (device_orientation_buffer_) {
SetOrientationBufferReadyStatus(false);
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_listener_unset_event_cb(listener_orientation_);
-#else
- sensor_orientation_set_cb(handle_,
- kInertialSensorIntervalMicroseconds / 1000, NULL, this);
-#endif
device_orientation_buffer_ = NULL;
}
}
bool DataFetcherImplTizen::Start(ConsumerType type) {
switch(type) {
-#if !TIZEN_VERSION_EQ(2,2,1)
case CONSUMER_TYPE_ORIENTATION:
return (SENSOR_ERROR_NONE == sensor_listener_start(listener_orientation_));
case CONSUMER_TYPE_MOTION:
return false;
}
return (SENSOR_ERROR_NONE == sensor_listener_start(listener_gyroscope_));
-#else
- case CONSUMER_TYPE_ORIENTATION:
- return (SENSOR_ERROR_NONE == sensor_start(handle_, SENSOR_ORIENTATION));
- case CONSUMER_TYPE_MOTION:
- if (SENSOR_ERROR_NONE != sensor_start(handle_, SENSOR_ACCELEROMETER)) {
- return false;
- }
- return (SENSOR_ERROR_NONE == sensor_start(handle_, SENSOR_GYROSCOPE));
-#endif
default:
NOTREACHED();
return false;
void DataFetcherImplTizen::Stop(ConsumerType type) {
switch(type) {
case CONSUMER_TYPE_ORIENTATION:
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_listener_stop(listener_orientation_);
-#else
- sensor_stop(handle_, SENSOR_ORIENTATION);
-#endif
return;
case CONSUMER_TYPE_MOTION:
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_listener_stop(listener_accelerometer_);
sensor_listener_stop(listener_gyroscope_);
-#else
- sensor_stop(handle_, SENSOR_ACCELEROMETER);
- sensor_stop(handle_, SENSOR_GYROSCOPE);
-#endif
memset(&last_motion_data_, 0, sizeof(last_motion_data_));
has_last_motion_data_ = false;
return;
}
//static
-#if !TIZEN_VERSION_EQ(2,2,1)
void DataFetcherImplTizen::onOrientationChanged(sensor_h sensor,
sensor_event_s *event, void* userData) {
-#else
-void DataFetcherImplTizen::onOrientationChanged(unsigned long long timestamp,
- sensor_data_accuracy_e, float azimuth, float pitch, float roll, void* userData) {
-#endif
DataFetcherImplTizen *fetcher = static_cast<DataFetcherImplTizen*>(userData);
base::AutoLock autolock(fetcher->orientation_buffer_lock_);
fetcher->device_orientation_buffer_->seqlock.WriteBegin();
-#if !TIZEN_VERSION_EQ(2,2,1)
float azimuth = event->values[0];
float pitch = event->values[1];
float roll = event->values[2];
-#endif
fetcher->device_orientation_buffer_->data.alpha = azimuth;
fetcher->device_orientation_buffer_->data.hasAlpha = true;
}
//static
-#if !TIZEN_VERSION_EQ(2,2,1)
void DataFetcherImplTizen::onAccelerationChanged(sensor_h sensor,
sensor_event_s *event, void* userData) {
-#else
-void DataFetcherImplTizen::onAccelerationChanged(unsigned long long timestamp,
- sensor_data_accuracy_e, float x, float y, float z, void* userData) {
-#endif
DataFetcherImplTizen *self = static_cast<DataFetcherImplTizen*>(userData);
-#if !TIZEN_VERSION_EQ(2,2,1)
float x = event->values[0];
float y = event->values[1];
float z = event->values[2];
-#endif
float gravityX = x * 0.2f;
float gravityY = y * 0.2f;
float gravityZ = z * 0.2f;
bool accelerationAvailable = false;
-#if !TIZEN_VERSION_EQ(2,2,1)
unsigned long long timestamp = event->timestamp;
-#endif
double interval = static_cast<double>(self->last_motion_timestamp_ ?
(timestamp - self->last_motion_timestamp_) / 1000 :
float alpha, beta, gamma;
bool rotationRateAvailable = false;
-#if !TIZEN_VERSION_EQ(2,2,1)
sensor_event_s event_gyroscope;
if (!sensor_listener_read_data(listener_gyroscope_, &event_gyroscope))
rotationRateAvailable = true;
alpha = event_gyroscope.values[0];
beta = event_gyroscope.values[1];
gamma = event_gyroscope.values[2];
-#else
- if (!sensor_gyroscope_read_data(self->handle_, 0, &alpha, &beta, &gamma))
- rotationRateAvailable = true;
-#endif
self->device_motion_buffer_->seqlock.WriteBegin();
}
void WebDragDestEfl::UnsetDragCallbacks() {
-#if TIZEN_VERSION_EQ(2,2,1)
- elm_drop_target_del(parent_view_);
-#else
elm_drop_target_del(parent_view_, ELM_SEL_FORMAT_TEXT,
DragStateEnterCb, this,
DragStateLeaveCb, this,
DragPosCb, this,
DragDropCb, this);
-#endif
}
void WebDragDestEfl::ResetDragCallbacks() {
}
bool GetDirChromiumPrivateTizen(base::FilePath& result) {
-#if TIZEN_VERSION_AT_LEAST(2,3,0)
scoped_ptr<char, base::FreeDeleter> data_path(app_get_data_path());
if (data_path) {
result = base::FilePath(data_path.get());
} else if (!GetDirAppDataTizen(result)) {
-#else
- if (!GetDirAppDataTizen(result)) {
-#endif
return false;
}
result = result.Append(kApplicationName);
#include <Elementary.h>
#if defined(OS_TIZEN_MOBILE)
-#ifndef TIZEN_LEGACY_V_2_2_1
#include <device/haptic.h>
-#else
-#include <haptic/haptic.h>
-#endif
#endif
#include <unistd.h>
{
g_haptic_timer_id = NULL;
if (g_haptic_handle) {
-#ifndef TIZEN_LEGACY_V_2_2_1
device_haptic_stop(g_haptic_handle, g_haptic_effect);
device_haptic_close(g_haptic_handle);
-#else
- haptic_stop_effect(g_haptic_handle, g_haptic_effect);
- haptic_close(g_haptic_handle);
-#endif
g_haptic_handle = NULL;
}
}
if (g_haptic_handle) {
-#ifndef TIZEN_LEGACY_V_2_2_1
device_haptic_stop(g_haptic_handle, g_haptic_effect);
device_haptic_close(g_haptic_handle);
-#else
- haptic_stop_effect(g_haptic_handle, g_haptic_effect);
- haptic_close(g_haptic_handle);
-#endif
g_haptic_handle = NULL;
}
-#ifndef TIZEN_LEGACY_V_2_2_1
if (device_haptic_open(0, &g_haptic_handle) != DEVICE_ERROR_NONE) {
printf("__vibration_on_cb:device_haptic_open failed");
-#else
- if (haptic_open(HAPTIC_DEVICE_0, &g_haptic_handle) != HAPTIC_ERROR_NONE) {
- printf("__vibration_on_cb:haptic_open failed");
-#endif
return;
}
-#ifndef TIZEN_LEGACY_V_2_2_1
device_haptic_vibrate(g_haptic_handle, duration, 100, &g_haptic_effect);
-#else
- haptic_vibrate_monotone(g_haptic_handle, duration, &g_haptic_effect);
-#endif
double in = (double)((double)(duration) / (double)(1000));
printf("__vibration_on_cb:duration=%f", in);
}
if (g_haptic_handle) {
-#ifndef TIZEN_LEGACY_V_2_2_1
device_haptic_stop(g_haptic_handle, g_haptic_effect);
device_haptic_close(g_haptic_handle);
-#else
- haptic_stop_effect(g_haptic_handle, g_haptic_effect);
- haptic_close(g_haptic_handle);
-#endif
g_haptic_handle = NULL;
}
}
#include <string.h>
#if defined(OS_TIZEN_MOBILE)
-#ifndef TIZEN_LEGACY_V_2_2_1
#include <device/haptic.h>
-#else
-#include <haptic/haptic.h>
-#endif
#endif
#include "public/ewk_context.h"
{
s_haptic_timer_id = NULL;
if (s_haptic_handle) {
-#ifndef TIZEN_LEGACY_V_2_2_1
device_haptic_stop(s_haptic_handle, s_haptic_effect);
device_haptic_close(s_haptic_handle);
-#else
- haptic_stop_effect(s_haptic_handle, s_haptic_effect);
- haptic_close(s_haptic_handle);
-#endif
s_haptic_handle = NULL;
}
}
if (s_haptic_handle) {
-#ifndef TIZEN_LEGACY_V_2_2_1
device_haptic_stop(s_haptic_handle, s_haptic_effect);
device_haptic_close(s_haptic_handle);
-#else
- haptic_stop_effect(s_haptic_handle, s_haptic_effect);
- haptic_close(s_haptic_handle);
-#endif
s_haptic_handle = NULL;
}
-#ifndef TIZEN_LEGACY_V_2_2_1
if (device_haptic_open(0, &s_haptic_handle) != DEVICE_ERROR_NONE) {
printf("[%s][%d][%s] ERROR: __vibration_on_cb:device_haptic_open failed\n", __FUNCTION__, __LINE__, "vibration");
-#else
- if (haptic_open(HAPTIC_DEVICE_0, &s_haptic_handle) != HAPTIC_ERROR_NONE) {
- printf("[%s][%d][%s] ERROR: __vibration_on_cb:haptic_open failed\n", __FUNCTION__, __LINE__, "vibration");
-#endif
return;
}
-#ifndef TIZEN_LEGACY_V_2_2_1
device_haptic_vibrate(s_haptic_handle, duration, 100, &s_haptic_effect);
-#else
- haptic_vibrate_monotone(s_haptic_handle, duration, &s_haptic_effect);
-#endif
double in = (double)((double)(duration) / (double)(1000));
printf("[%s][%d][%s] __vibration_on_cb:duration=%f\n", __FUNCTION__, __LINE__, "vibration", in);
}
if (s_haptic_handle) {
-#ifndef TIZEN_LEGACY_V_2_2_1
device_haptic_stop(s_haptic_handle, s_haptic_effect);
device_haptic_close(s_haptic_handle);
-#else
- haptic_stop_effect(s_haptic_handle, s_haptic_effect);
- haptic_close(s_haptic_handle);
-#endif
s_haptic_handle = NULL;
}
}
'TIZEN_V_2_3=1',
],
}],
- ['chromium_efl_tizen_version=="2.2.1"', {
- 'defines': [
- 'TIZEN_LEGACY_V_2_2_1=1',
- ],
- }],
],
}],
], # conditions
%if "%{tizen}" == "2.0"
%define chromium_efl_tizen_version 2.3
%endif
-%if "%{tizen}" == "2.2.1"
-%define chromium_efl_tizen_version 2.2.1
-%endif
%if %{!?TIZEN_PROFILE_TV:0}%{?TIZEN_PROFILE_TV:1} || "%{!?profile:0}%{?profile}" == "tv"
%define chromium_efl_tizen_profile tv
%if "%{tizen}" == "2.0"
%define chromium_efl_tizen_version 2.3
%endif
-%if "%{tizen}" == "2.2.1"
-%define chromium_efl_tizen_version 2.2.1
-%endif
%if %{!?TIZEN_PROFILE_TV:0}%{?TIZEN_PROFILE_TV:1} || "%{!?profile:0}%{?profile}" == "tv"
%define chromium_efl_tizen_profile tv
%if "%{tizen}" == "2.0"
%define chromium_efl_tizen_version 2.3
%endif
-%if "%{tizen}" == "2.2.1"
-%define chromium_efl_tizen_version 2.2.1
-%endif
%if %{!?TIZEN_PROFILE_TV:0}%{?TIZEN_PROFILE_TV:1} || "%{!?profile:0}%{?profile}" == "tv"
%define chromium_efl_tizen_profile tv
'TIZEN_PATCH_VERSION=0',
],
}],
- ['chromium_efl_tizen_version=="2.2.1"', {
- 'defines': [
- 'TIZEN_MAJOR_VERSION=2',
- 'TIZEN_MINOR_VERSION=2',
- 'TIZEN_PATCH_VERSION=1',
- ],
- }],
['use_wayland==1', {
'defines': [
'USE_WAYLAND=1',
'WTF_OS_TIZEN_TV=1',
],
'conditions': [
- ['chromium_efl_tizen_version=="2.2.1"', {
- 'defines': [
- 'TIZEN_MULTIMEDIA_PIXMAP_SUPPORT=1',
- ],
- }],
['chromium_efl_tizen_version=="2.4"', {
# The tizen v2.4 tv build gets its cpu-specific flags from the Tizen build system.
'cflags!': [