CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-IF (TIZEN_WEARABLE)
+IF (TIZEN_WEARABLE OR TIZEN_PROFILE_IVI)
ADD_SUBDIRECTORY(hf-agent)
-ELSE (TIZEN_WEARABLE)
+ELSE (TIZEN_WEARABLE OR TIZEN_PROFILE_IVI)
ADD_SUBDIRECTORY(map-agent)
ADD_SUBDIRECTORY(pb-agent)
IF (TIZEN_BT_HFP_AG_ENABLE)
ADD_SUBDIRECTORY(ag-agent)
ENDIF (TIZEN_BT_HFP_AG_ENABLE)
-ENDIF (TIZEN_WEARABLE)
+ENDIF (TIZEN_WEARABLE OR TIZEN_PROFILE_IVI)
Name: bluetooth-agent
Summary: Bluetooth agent packages that support various external profiles
-Version: 0.1.0
+Version: 0.1.1
Release: 1
Group: Network & Connectivity/Bluetooth
License: Apache-2.0
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(bluetooth-api)
-%if "%{?profile}" == "wearable"
+%if "%{?profile}" == "wearable" || "%{?profile}" == "ivi"
BuildRequires: pkgconfig(alarm-service)
BuildRequires: pkgconfig(capi-appfw-app-manager)
BuildRequires: pkgconfig(capi-system-device)
export CFLAGS="$CFLAGS -DTIZEN_KIRAN"
%endif
+%if "%{?profile}" == "ivi"
+export CFLAGS="$CFLAGS -DTIZEN_PROFILE_IVI"
+%endif
+
export CFLAGS+=" -fpie -DPBAP_SIM_ENABLE -fvisibility=hidden "
export CXXFLAGS+=" -fpie -DPBAP_SIM_ENABLE -fvisibility=hidden "
%else
-DTIZEN_WEARABLE=0 \
%endif
+%if "%{?profile}" == "ivi"
+ -DTIZEN_PROFILE_IVI=1 \
+%endif
-DTIZEN_BT_HFP_AG_ENABLE=1
make VERBOSE=1
%files
%manifest %{name}.manifest
%defattr(-, root, root)
-%if "%{?profile}" == "wearable"
+%if "%{?profile}" == "wearable" || "%{?profile}" == "ivi"
%{_bindir}/bluetooth-hf-agent
%{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
%exclude %{_libdir}/systemd/user/bluetooth-map-agent.service