INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
+IF(TIZEN_TV)
+SET(PKG_MODULES
+ elementary
+ appcore-efl
+ ui-gadget-1
+ dlog
+ vconf
+ edbus
+ evas
+ edje
+ ecore
+ eina
+ aul
+ syspopup-caller
+ gobject-2.0
+ motion
+ capi-network-bluetooth
+ capi-network-connection
+ capi-system-device
+ capi-appfw-application
+ notification
+ efl-extension
+ glib-2.0
+ gio-2.0
+ dpm
+)
+ADD_DEFINITIONS("-DTIZEN_TV")
+ELSE(TIZEN_TV)
SET(PKG_MODULES
elementary
appcore-efl
dpm
contacts-service2
)
+ENDIF(TIZEN_TV)
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED ${PKG_MODULES})
#define BT_APPCONTROL_VISIBILITY_MIME "application/x-bluetooth-visibility"
+#ifndef TIZEN_TV
#define BT_VCF_FOLDER_PATH "/tmp/"
+#endif
/* AppControl Output */
#define BT_APPCONTROL_ADDRESS "http://tizen.org/appcontrol/data/bluetooth/address"
void _bt_util_max_len_reached_cb(void *data, Evas_Object *obj,
void *event_info);
+#ifndef TIZEN_TV
char *_bt_util_vcard_create_from_id(int id, bool my_profile, const char *working_dir);
char *_bt_util_vcard_create_from_id_list(const int *id_list, int count, const char *working_dir, volatile bool *cancel);
+#endif
int _bt_util_create_dpm_context(void *ug_data);
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
-BuildRequires: pkgconfig(contacts-service2)
BuildRequires: pkgconfig(dpm)
+%if "%{?profile}" != "tv"
+BuildRequires: pkgconfig(contacts-service2)
+%endif
+
%description
UI gadget about the bluetooth
%endif
export LDFLAGS
-cmake . -DCMAKE_INSTALL_PREFIX=%{_ugdir}
+
+%cmake \
+%if "%{?profile}" == "tv"
+ -DTIZEN_TV=YES \
+%endif
+
+%cmake . -DCMAKE_INSTALL_PREFIX=%{_ugdir}
make %{?jobs:-j%jobs}
#include <aul.h>
#include <notification.h>
#include <dpm/restriction.h>
+#ifndef TIZEN_TV
#include <contacts.h>
#include <dirent.h>
#include <fcntl.h>
+#endif
#include "bt-main-ug.h"
#include "bt-util.h"
return (dpm_state == 0) ? TRUE : FALSE;
}
+#ifndef TIZEN_TV
static bool __bt_util_file_exists(const char *file)
{
bool res = false;
return vcard_path;
}
+#endif
#define MULTI_SHARE_SERVICE_DATA_PATH "http://tizen.org/appcontrol/data/path"
#define APP_CONTROL_OPERATION_SHARE_CONTACT "http://tizen.org/appcontrol/operation/share_contact"
+#ifndef TIZEN_TV
#define APP_CONTROL_MIME_CONTACT "application/vnd.tizen.contact"
#define APP_CONTROL_MY_PROFILE_DATA_TYPE "my_profile"
+#endif
#define SERVICE_SHARE_CONTACT_MODE "http://tizen.org/appcontrol/data/social/namecard_share_mode"
#define SERVICE_SHARE_CONTACT_ITEM "http://tizen.org/appcontrol/data/social/item_type"
#define SHARE_CONTACT_DATA_PATH "/opt/usr/media/Downloads/.bluetooth"
void __bt_main_parse_service(bt_ug_data *ugd, app_control_h service)
{
+#ifndef TIZEN_TV
char *uri_scheme = NULL;;
char *body_text = NULL;
char *launch_type = NULL;
if(mime)
free(mime);
+#endif
}
void _bt_main_init_status(bt_ug_data *ugd, void *data)