From: Marcin Wasowski Date: Tue, 16 Dec 2014 11:47:07 +0000 (+0100) Subject: [building] Changes to enable bulding for TV profile X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46cb5c9fb2de9b96f9fe3ba7b9dc722d94bafeb5;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [building] Changes to enable bulding for TV profile Switch profile to tv change profile by changing the first line of .spec - TV profile moved outside of mobile/wearable in .spec - stub directories created for channel, audio and display Change-Id: Ib3419d3c147d91b63769180161c41d452713d3f7 Signed-off-by: Marcin Wasowski --- diff --git a/packaging/webapi-plugins.spec b/packaging/webapi-plugins.spec index f44ec344..cf35526d 100644 --- a/packaging/webapi-plugins.spec +++ b/packaging/webapi-plugins.spec @@ -23,7 +23,7 @@ Source0: %{name}-%{version}.tar.gz %define tizen_feature_badge_support 0 %define tizen_feature_bluetooth_support 0 %define tizen_feature_bluetooth_health_support 0 -%define tizen_feature_bookmark_support 0 +%define tizen_feature_bookmark_support 1 %define tizen_feature_calendar_support 1 %define tizen_feature_callhistory_support 0 %define tizen_feature_contact_support 1 @@ -42,7 +42,7 @@ Source0: %{name}-%{version}.tar.gz %define tizen_feature_nfc_emulation_support 0 %define tizen_feature_nfc_support 1 %define tizen_feature_notification_support 0 -%define tizen_feature_power_support 0 +%define tizen_feature_power_support 1 %define tizen_feature_push_support 0 %define tizen_feature_sap_support 0 %define tizen_feature_se_support 0 @@ -94,7 +94,10 @@ Source0: %{name}-%{version}.tar.gz %define tizen_feature_web_setting_support 0 %define tizen_feature_wi_fi_support 0 -%else +%endif # tizen_profile_wearable +%endif # tizen_profile_mobile + + #################################################################### # TV Profile # #################################################################### @@ -136,16 +139,11 @@ Source0: %{name}-%{version}.tar.gz %define tizen_feature_wi_fi_support 0 %endif # tizen_profile_tv -%endif # tizen_profile_wearable -%endif # tizen_profile_mobile - BuildRequires: ninja BuildRequires: pkgconfig(appcore-common) BuildRequires: pkgconfig(capi-system-device) BuildRequires: pkgconfig(capi-system-info) -BuildRequires: pkgconfig(capi-system-power) -BuildRequires: pkgconfig(bookmark-adaptor) BuildRequires: pkgconfig(libpcrecpp) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-glib-1) @@ -174,6 +172,14 @@ BuildRequires: pkgconfig(tapi) BuildRequires: pkgconfig(libpcrecpp) BuildRequires: pkgconfig(capi-appfw-application) +%if 0%{?tizen_feature_power_support} +BuildRequires: pkgconfig(capi-system-power) +%endif + +%if 0%{?tizen_feature_bookmark_support} +BuildRequires: pkgconfig(bookmark-adaptor) +%endif + %if 0%{?tizen_feature_messaging_support} BuildRequires: pkgconfig(email-service) %endif @@ -184,6 +190,7 @@ BuildRequires: pkgconfig(badge) %if 0%{?tizen_feature_bookmark_support} BuildRequires: pkgconfig(capi-web-bookmark) +BuildRequires: pkgconfig(bookmark-adaptor) %endif %if 0%{?tizen_feature_calendar_support} diff --git a/src/tizen-wrt.gyp b/src/tizen-wrt.gyp index 55ab06d4..c313651b 100644 --- a/src/tizen-wrt.gyp +++ b/src/tizen-wrt.gyp @@ -11,26 +11,36 @@ 'tizen/tizen.gyp:*', 'time/time.gyp:*', 'utils/utils.gyp:*', - 'power/power.gyp:*', 'messageport/messageport.gyp:*', - 'bookmark/bookmark.gyp:*', 'archive/archive.gyp:*', 'exif/exif.gyp:*', - 'systeminfo/systeminfo.gyp:*', ], 'conditions': [ - [ 'extension_host_os == "mobile"', { - 'dependencies': [ - 'callhistory/callhistory.gyp:*', - 'contact/contact.gyp:*', - 'calendar/calendar.gyp:*', - 'datasync/datasync.gyp:*', - 'messaging/messaging.gyp:*', - 'nfc/nfc.gyp:*' - ], - }, - ], - ], + [ + 'extension_host_os == "mobile"', { + 'dependencies': [ + 'callhistory/callhistory.gyp:*', + 'contact/contact.gyp:*', + 'calendar/calendar.gyp:*', + 'datasync/datasync.gyp:*', + 'messaging/messaging.gyp:*', + 'nfc/nfc.gyp:*', + 'power/power.gyp:*', + 'bookmark/bookmark.gyp:*', + 'systeminfo/systeminfo.gyp:*', + ], + }, + ], # end mobile + [ + 'extension_host_os == "tv"', { + 'dependencies': [ + # 'tvdisplay/tvdisplay.gyp:*', + # 'tvchannel/tvchannel.gyp:*', + # 'tvaudio/tvaudio.gyp:*', + ], + }, + ], # end tv + ], # end conditions }, - ], + ], # end targets } diff --git a/src/tvaudio/tvaudio.gyp b/src/tvaudio/tvaudio.gyp new file mode 100644 index 00000000..e69de29b diff --git a/src/tvchannel/tvchannel.gyp b/src/tvchannel/tvchannel.gyp new file mode 100644 index 00000000..e69de29b diff --git a/src/tvdisplay/tvdisplay.gyp b/src/tvdisplay/tvdisplay.gyp new file mode 100644 index 00000000..e69de29b