%if "%{?profile}" == "mobile"
%define tizen_feature_account_support 1
-%define tizen_feature_archive_support 0
+%define tizen_feature_application_support 1
+%define tizen_feature_archive_support 1
%define tizen_feature_badge_support 1
-%define tizen_feature_bluetooth_support 0
-%define tizen_feature_bluetooth_health_support 0
+%define tizen_feature_bluetooth_support 1
%define tizen_feature_bookmark_support 1
%define tizen_feature_calendar_support 1
-%define tizen_feature_callhistory_support 0
+%define tizen_feature_callhistory_support 1
%define tizen_feature_contact_support 1
-%define tizen_feature_content_support 0
-%define tizen_feature_core_api_support 0
+%define tizen_feature_content_support 1
%define tizen_feature_datacontrol_support 1
%define tizen_feature_download_support 1
-%define tizen_feature_exif_support 0
+%define tizen_feature_exif_support 1
+%define tizen_feature_filesystem_support 1
%define tizen_feature_fm_radio_support 0
-%define tizen_feature_gamepad_support 0
-%define tizen_feature_ham_support 0
-%define tizen_feature_messaging_email_support 1
+%define tizen_feature_message_port_support 1
%define tizen_feature_messaging_support 1
%define tizen_feature_nbs_support 1
%define tizen_feature_nfc_emulation_support 0
%define tizen_feature_nfc_support 1
%define tizen_feature_notification_support 1
+%define tizen_feature_package_support 1
%define tizen_feature_power_support 1
%define tizen_feature_push_support 1
-%define tizen_feature_sap_support 0
%define tizen_feature_se_support 1
%define tizen_feature_sensor_support 1
%define tizen_feature_sound_support 1
+%define tizen_feature_system_info_support 1
%define tizen_feature_system_setting_support 1
%define tizen_feature_telephony_support 0
-%define tizen_feature_tvinputdevice_support 0
-%define tizen_feature_web_setting_support 0
+%define tizen_feature_time_support 1
+%define tizen_feature_web_setting_support 1
%define tizen_feature_wi_fi_support 0
+%define tizen_feature_tvaudio_support 0
+%define tizen_feature_tvchannel_support 0
+%define tizen_feature_tv_display_support 0
+%define tizen_feature_tvinputdevice_support 0
+%define tizen_feature_tvwindow_support 0
+
+%endif # tizen_profile_mobile
-%else
####################################################################
# Wearable Profile : Gear3(Ponte) #
####################################################################
%if "%{?profile}" == "wearable"
%define tizen_feature_account_support 0
+%define tizen_feature_application_support 0
%define tizen_feature_archive_support 0
%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_calendar_support 0
%define tizen_feature_callhistory_support 0
%define tizen_feature_contact_support 0
%define tizen_feature_content_support 0
-%define tizen_feature_core_api_support 0
%define tizen_feature_datacontrol_support 0
%define tizen_feature_download_support 0
%define tizen_feature_exif_support 0
+%define tizen_feature_filesystem_support 0
%define tizen_feature_fm_radio_support 0
-%define tizen_feature_gamepad_support 0
-%define tizen_feature_ham_support 0
-%define tizen_feature_messaging_email_support 0
+%define tizen_feature_message_port_support 0
%define tizen_feature_messaging_support 0
%define tizen_feature_nbs_support 0
%define tizen_feature_nfc_emulation_support 0
%define tizen_feature_nfc_support 0
%define tizen_feature_notification_support 0
+%define tizen_feature_package_support 0
%define tizen_feature_power_support 0
%define tizen_feature_push_support 0
-%define tizen_feature_sap_support 0
%define tizen_feature_se_support 0
%define tizen_feature_sensor_support 0
%define tizen_feature_sound_support 0
+%define tizen_feature_system_info_support 0
%define tizen_feature_system_setting_support 0
%define tizen_feature_telephony_support 0
-%define tizen_feature_tvinputdevice_support 0
+%define tizen_feature_time_support 0
%define tizen_feature_web_setting_support 0
%define tizen_feature_wi_fi_support 0
+%define tizen_feature_tvaudio_support 0
+%define tizen_feature_tvchannel_support 0
+%define tizen_feature_tv_display_support 0
+%define tizen_feature_tvinputdevice_support 0
+%define tizen_feature_tvwindow_support 0
%endif # tizen_profile_wearable
-%endif # tizen_profile_mobile
-
####################################################################
# TV Profile #
%if "%{?profile}" == "tv"
%define tizen_feature_account_support 0
-%define tizen_feature_archive_support 0
+%define tizen_feature_application_support 1
+%define tizen_feature_archive_support 1
%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_calendar_support 0
%define tizen_feature_callhistory_support 0
%define tizen_feature_contact_support 0
%define tizen_feature_content_support 0
-%define tizen_feature_core_api_support 0
%define tizen_feature_datacontrol_support 0
%define tizen_feature_download_support 0
%define tizen_feature_exif_support 1
+%define tizen_feature_filesystem_support 1
%define tizen_feature_fm_radio_support 0
-%define tizen_feature_gamepad_support 0
-%define tizen_feature_ham_support 0
-%define tizen_feature_messaging_email_support 0
+%define tizen_feature_message_port_support 1
%define tizen_feature_messaging_support 0
%define tizen_feature_nbs_support 0
%define tizen_feature_nfc_emulation_support 0
%define tizen_feature_nfc_support 0
%define tizen_feature_notification_support 0
+%define tizen_feature_package_support 1
%define tizen_feature_power_support 0
%define tizen_feature_push_support 0
-%define tizen_feature_sap_support 0
%define tizen_feature_se_support 0
%define tizen_feature_sensor_support 0
%define tizen_feature_sound_support 0
-%define tizen_feature_system_setting_support 0
+%define tizen_feature_system_info_support 0
+%define tizen_feature_system_setting_support 1
%define tizen_feature_telephony_support 0
-#off for tizen 3.0 (no libavoc)
-%define tizen_feature_tvaudio_support 0
-%define tizen_feature_tvinputdevice_support 1
+%define tizen_feature_time_support 1
%define tizen_feature_web_setting_support 1
%define tizen_feature_wi_fi_support 0
-#off for tizen 3.0 (no systeminfo definitions)
-%define tizen_feature_tv_display_support 0
+#off for tizen 3.0 (no libavoc)
+%define tizen_feature_tvaudio_support 0
#off for tizen 3.0 (no tvs-api)
%define tizen_feature_tvchannel_support 0
+#off for tizen 3.0 (no systeminfo definitions)
+%define tizen_feature_tv_display_support 0
+%define tizen_feature_tvinputdevice_support 1
%define tizen_feature_tvwindow_support 1
%endif # tizen_profile_tv
BuildRequires: ninja
BuildRequires: pkgconfig(appcore-common)
-BuildRequires: pkgconfig(capi-system-device)
-BuildRequires: pkgconfig(capi-system-info)
-BuildRequires: pkgconfig(capi-system-system-settings)
-BuildRequires: pkgconfig(libpcrecpp)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libudev)
-BuildRequires: pkgconfig(capi-message-port)
BuildRequires: pkgconfig(minizip)
BuildRequires: pkgconfig(zlib)
-BuildRequires: pkgconfig(msg-service)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(pkgmgr-info)
-BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(badge)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(storage)
BuildRequires: python
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(accounts-svc)
%endif
+%if 0%{?tizen_feature_application_support}
+BuildRequires: pkgconfig(wrt-plugins-ipc-message)
+%endif
+
+%if 0%{?tizen_feature_bookmark_support}
+BuildRequires: pkgconfig(capi-web-bookmark)
+BuildRequires: pkgconfig(bookmark-adaptor)
+%endif
+
%if 0%{?tizen_feature_datacontrol_support}
BuildRequires: pkgconfig(capi-data-control)
%endif
BuildRequires: pkgconfig(capi-web-url-download)
%endif
+%if 0%{?tizen_feature_filesystem_support}
+BuildRequires: pkgconfig(storage)
+%endif
+
%if 0%{?tizen_feature_power_support}
BuildRequires: pkgconfig(capi-system-power)
%endif
%if 0%{?tizen_feature_power_support}
-BuildRequires: pkgconfig(push)
BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(libpcrecpp)
%endif
-%if 0%{?tizen_feature_tv_display_support}
-BuildRequires: pkgconfig(capi-system-info)
-BuildRequires: pkgconfig(vconf)
-%endif
-
-%if 0%{?tizen_feature_bookmark_support}
-BuildRequires: pkgconfig(bookmark-adaptor)
+%if 0%{?tizen_feature_push_support}
+BuildRequires: pkgconfig(push)
%endif
%if 0%{?tizen_feature_messaging_support}
BuildRequires: pkgconfig(email-service)
+BuildRequires: pkgconfig(msg-service)
%endif
%if 0%{?tizen_feature_badge_support}
BuildRequires: pkgconfig(badge)
%endif
-%if 0%{?tizen_feature_bookmark_support}
-BuildRequires: pkgconfig(capi-web-bookmark)
-BuildRequires: pkgconfig(bookmark-adaptor)
-%endif
-
%if 0%{?tizen_feature_calendar_support}
BuildRequires: pkgconfig(calendar-service2)
%endif
BuildRequires: pkgconfig(smartcard-service-common)
%endif
+%if 0%{?tizen_feature_message_port_support}
+BuildRequires: pkgconfig(capi-message-port)
+%endif
+
%if 0%{?tizen_feature_notification_support}
BuildRequires: pkgconfig(notification)
%endif
GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=%{profile}"
GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=x11"
+# feature flags
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_feature_account_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_feature_application_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_feature_archive_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_feature_badge_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_feature_bluetooth_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_feature_bookmark_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_feature_calendar_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_feature_callhistory_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_feature_contact_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_feature_content_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_feature_datacontrol_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_feature_datasync_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_feature_download_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_feature_exif_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_feature_filesystem_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_feature_fm_radio_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_feature_message_port_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_feature_messaging_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_feature_nbs_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_feature_nfc_emulation_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_feature_nfc_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_feature_notification_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_feature_package_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_feature_power_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_feature_push_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_feature_sap_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_feature_sensor_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_feature_se_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_feature_sound_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_feature_system_info_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_feature_system_setting_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_feature_telephony_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{tizen_feature_time_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvaudio_support=%{?tizen_feature_tvaudio_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvchannel_support=%{?tizen_feature_tvchannel_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tv_display_support=%{?tizen_feature_tv_display_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_feature_tvinputdevice_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvwindow_support=%{?tizen_feature_tvwindow_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_feature_web_setting_support}"
+GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_feature_wi_fi_support}"
+
./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
ninja -C out/Default %{?_smp_mflags}
'type': 'none',
'dependencies': [
'tizen/tizen.gyp:*',
- 'application/application.gyp:*',
- 'package/package.gyp:*',
- 'time/time.gyp:*',
'utils/utils.gyp:*',
- 'messageport/messageport.gyp:*',
- 'archive/archive.gyp:*',
- 'filesystem/filesystem.gyp:*',
- 'exif/exif.gyp:*',
- 'websetting/websetting.gyp:*',
- 'systemsetting/systemsetting.gyp:*',
- 'content/content.gyp:*',
],
'conditions': [
[
- 'extension_host_os == "mobile"', {
+ 'tizen_feature_account_support==1', {
'dependencies': [
'account/account.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_application_support==1', {
+ 'dependencies': [
+ 'application/application.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_archive_support==1', {
+ 'dependencies': [
+ 'archive/archive.gyp:*'
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_badge_support==1', {
+ 'dependencies': [
'badge/badge.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_bluetooth_support==1', {
+ 'dependencies': [
'bluetooth/bluetooth.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_bookmark_support==1', {
+ 'dependencies': [
+ 'bookmark/bookmark.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_calendar_support==1', {
+ 'dependencies': [
+ 'calendar/calendar.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_callhistory_support==1', {
+ 'dependencies': [
'callhistory/callhistory.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_contact_support==1', {
+ 'dependencies': [
'contact/contact.gyp:*',
- 'calendar/calendar.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_content_support==1', {
+ 'dependencies': [
+ 'content/content.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_datacontrol_support==1', {
+ 'dependencies': [
'datacontrol/datacontrol.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_datasync_support==1', {
+ 'dependencies': [
+ 'datasync/datasync.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_download_support==1', {
+ 'dependencies': [
'download/download.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_exif_support==1', {
+ 'dependencies': [
+ 'exif/exif.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_filesystem_support==1', {
+ 'dependencies': [
+ 'filesystem/filesystem.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_fm_radio_support==1', {
+ 'dependencies': [
+ 'radio/radio.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_message_port_support==1', {
+ 'dependencies': [
+ 'messageport/messageport.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_messaging_support==1', {
+ 'dependencies': [
'messaging/messaging.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_nbs_support==1', {
+ 'dependencies': [
'networkbearerselection/networkbearerselection.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_nfc_emulation_support==1', {
+ 'dependencies': [
+ 'nfc/nfc.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_nfc_support==1', {
+ 'dependencies': [
'nfc/nfc.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_notification_support==1', {
+ 'dependencies': [
+ 'notification/notification.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_package_support==1', {
+ 'dependencies': [
+ 'package/package.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_power_support==1', {
+ 'dependencies': [
'power/power.gyp:*',
- 'bookmark/bookmark.gyp:*',
- 'systeminfo/systeminfo.gyp:*',
- #'radio/radio.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_push_support==1', {
+ 'dependencies': [
+ 'push/push.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_se_support==1', {
+ 'dependencies': [
'secureelement/secureelement.gyp:*',
- 'sound/sound.gyp:*',
- 'notification/notification.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_sensor_support==1', {
+ 'dependencies': [
'sensor/sensor.gyp:*',
- 'push/push.gyp:*',
],
},
- ], # end mobile
+ ],
[
- 'extension_host_os == "tv"', {
+ 'tizen_feature_sound_support==1', {
+ 'dependencies': [
+ 'sound/sound.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_system_info_support==1', {
+ 'dependencies': [
+ 'systeminfo/systeminfo.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_system_setting_support==1', {
+ 'dependencies': [
+ 'systemsetting/systemsetting.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_time_support==1', {
+ 'dependencies': [
+ 'time/time.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_tv_display_support==1', {
+ 'dependencies': [
+ 'tvdisplay/tvdisplay.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_tvaudio_support==1', {
+ 'dependencies': [
+ 'tvaudio/tvaudio.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_tvinputdevice_support==1', {
+ 'dependencies': [
+ 'tvinputdevice/tvinputdevice.gyp:*'
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_tvchannel_support==1', {
+ 'dependencies': [
+ 'tvchannel/tvchannel.gyp:*',
+ ],
+ },
+ ],
+ [
+ 'tizen_feature_tvwindow_support==1', {
'dependencies': [
- #'tvdisplay/tvdisplay.gyp:*',
- #'tvaudio/tvaudio.gyp:*',
- #'tvchannel/tvchannel.gyp:*',
- 'tvinputdevice/tvinputdevice.gyp:*',
'tvwindow/tvwindow.gyp:*',
],
},
- ], # end tv
+ ],
+ [
+ 'tizen_feature_web_setting_support==1', {
+ 'dependencies': [
+ 'websetting/websetting.gyp:*',
+ ],
+ },
+ ],
], # end conditions
},
], # end targets