Fix the build issue for TV 82/56982/1
authorTaejin Woo <tt.woo@samsung.com>
Thu, 14 Jan 2016 06:12:11 +0000 (15:12 +0900)
committerTaejin Woo <tt.woo@samsung.com>
Thu, 14 Jan 2016 06:13:09 +0000 (15:13 +0900)
Change-Id: I972b5e74bbaded00faac2a9ee8dbc0318da55917
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
CMakeLists.txt
packaging/capi-network-bluetooth.spec

index 7bca21774dd38dc4a2bab44103d3b94697a03770..761af4f89822c35f2ca2db7945cea6ae9fbe4c01 100755 (executable)
@@ -8,7 +8,8 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 
 SET(INC_DIR include)
 IF (TIZEN_TV)
-       INCLUDE_DIRECTORIES(${INC_DIR}/tv)
+    INCLUDE_DIRECTORIES(${INC_DIR})
+    INCLUDE_DIRECTORIES(${INC_DIR}/tv)
 ELSE ()
        INCLUDE_DIRECTORIES(${INC_DIR})
        IF (TIZEN_WEARABLE)
@@ -19,7 +20,7 @@ ELSE ()
 ENDIF (TIZEN_TV)
 
 IF (TIZEN_TV)
-SET(dependents "dlog glib-2.0 capi-base-common bluetooth-tv-api db-util")
+SET(dependents "dlog glib-2.0 capi-base-common bluetooth-api db-util")
 ELSE ()
        IF (TIZEN_WEARABLE)
                SET(dependents "dlog glib-2.0 capi-base-common bluetooth-api privacy-manager-client")
@@ -49,20 +50,19 @@ SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
 
 IF (TIZEN_TV)
 SET(SOURCES
-tv_src/bluetooth-common.c
-tv_src/bluetooth-adapter.c
-tv_src/bluetooth-device.c
-tv_src/bluetooth-socket.c
-tv_src/bluetooth-opp-server.c
-tv_src/bluetooth-opp-client.c
-tv_src/bluetooth-pan.c
-tv_src/bluetooth-hdp.c
-tv_src/bluetooth-hid.c
-tv_src/bluetooth-audio.c
-tv_src/bluetooth-avrcp.c
-tv_src/bluetooth-gatt.c
-tv_src/bluetooth-dut.c
-tv_src/bluetooth-sync3d.c
+src/bluetooth-common.c
+src/bluetooth-adapter.c
+src/bluetooth-device.c
+src/bluetooth-socket.c
+src/bluetooth-opp-server.c
+src/bluetooth-opp-client.c
+src/bluetooth-pan.c
+src/bluetooth-hdp.c
+src/bluetooth-hid.c
+src/bluetooth-audio.c
+src/bluetooth-avrcp.c
+src/bluetooth-gatt.c
+src/bluetooth-ipsp.c
 )
 ELSE ()
 SET(SOURCES
index bb5b3cdc3c52ccb6da1c8d7009f283704f35fa98..4c636e04148b442d08f0f2847c79cb8ec4c8e738 100644 (file)
@@ -15,7 +15,7 @@ BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(vconf)
 %if "%{?profile}" == "tv"
-BuildRequires:  pkgconfig(bluetooth-tv-api)
+BuildRequires:  pkgconfig(bluetooth-api)
 BuildRequires:  pkgconfig(db-util)
 %else
 BuildRequires:  pkgconfig(bluetooth-api)
@@ -109,7 +109,7 @@ export FFLAGS+=" -DARCH64"
 %if "%{?profile}" == "wearable"
 #      -DTIZEN_WEARABLE=YES \
 %else
-%if "%{?tizen_profile_name}" == "tv"
+%if "%{?profile}" == "tv"
        -DTIZEN_TV=YES \
 %else
 %if "%{?profile}" == "mobile"
@@ -143,7 +143,9 @@ install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/capi-network-bluetoot
 
 %files test
 %manifest %{name}.manifest
+%if "%{?profile}" != "tv"
 %{_bindir}/bt_unit_test
+%endif
 #%{_bindir}/bt_onoff
 #/etc/smack/accesses.d/capi-network-bluetooth-test.efl