From 8430d3214ca1ba78c96e521a51dfe0f6da7c6249 Mon Sep 17 00:00:00 2001 From: taeyoung Date: Thu, 23 Feb 2017 13:52:12 +0900 Subject: [PATCH] usbhost api: remove profile dependency - Only Mobile profile supported usb host api until Tizen 3.0 - To remove the profile dependency, usb host api related codes are enabled. = If usb host api is used, all things are same with Tizen 3.0 = If libusb is used directly, 1) root users can access to usb device like Tizen 3.0 2) normal users cannot open usb device, and thus dbus requests to deviced will be triggered. If deviced supports usb host api, usb permission popup will be launched for the confirmation from user. If deviced does not support usb host api, the requests are rejected. Change-Id: Id72a27d5aa78ebaf8006a649c20d88d2c0e6ca65 Signed-off-by: taeyoung --- packaging/libusb.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/libusb.spec b/packaging/libusb.spec index 611b690..abdf1d1 100644 --- a/packaging/libusb.spec +++ b/packaging/libusb.spec @@ -1,3 +1,5 @@ +%define TIZEN_FEATURE_USBHOST_API on + Name: libusb Version: 1.0.19 Release: 0 @@ -10,7 +12,7 @@ Source1: baselibs.conf Source1001: libusb.manifest BuildRequires: pkg-config BuildRequires: systemd-devel -%if "%{?profile}" == "mobile" +%if %{?TIZEN_FEATURE_USBHOST_API} == on BuildRequires: pkgconfig(dbus-1) %endif @@ -33,7 +35,7 @@ cp %{SOURCE1001} . %build %reconfigure\ --with-pic\ -%if "%{?profile}" == "mobile" +%if %{?TIZEN_FEATURE_USBHOST_API} == on --enable-usbhost-api \ %endif --disable-static -- 2.7.4