Support for aarch64 build 35/41935/1 accepted/tizen/mobile/20150619.083815 accepted/tizen/tv/20150619.083835 accepted/tizen/wearable/20150619.083848 submit/tizen/20150619.074507
authorHaJun, Sung <hajun.sung@samsung.com>
Fri, 19 Jun 2015 07:41:17 +0000 (16:41 +0900)
committerHaJun, Sung <hajun.sung@samsung.com>
Fri, 19 Jun 2015 07:43:04 +0000 (16:43 +0900)
Change-Id: Ia7091a3a1f8fc90b2b61b2b077ed6f1b246ce953
Signed-off-by: HaJun, Sung <hajun.sung@samsung.com>
CMakeLists.txt
core/CMakeLists.txt
packaging/service-discovery.spec
service-discovery.pc.in

index a876ee9..41d6d7e 100644 (file)
@@ -29,7 +29,7 @@ ADD_SUBDIRECTORY(test)
 ##########################################################
 
 CONFIGURE_FILE(service-discovery.pc.in service-discovery.pc @ONLY)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/service-discovery.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/service-discovery.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
 # LICENSE file
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE.APLv2 DESTINATION /usr/share/license/service-discovery)
index 3340f15..4359340 100644 (file)
@@ -51,7 +51,7 @@ TARGET_LINK_LIBRARIES(${CORE-LIB} ${core_pkgs_LDFLAGS})
 SET_TARGET_PROPERTIES(${CORE-LIB} PROPERTIES SOVERSION ${VERSION_MAJOR})
 SET_TARGET_PROPERTIES(${CORE-LIB} PROPERTIES VERSION ${VERSION})
 
-INSTALL(TARGETS ${CORE-LIB} DESTINATION lib COMPONENT RuntimeLibraries)
+INSTALL(TARGETS ${CORE-LIB} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
 
 SET(USD-CORE-HEADERS
         ${CMAKE_SOURCE_DIR}/include/service_discovery.h
index 44ece59..6945245 100644 (file)
@@ -39,6 +39,7 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 %endif
 
 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+        -DLIB_INSTALL_DIR:PATH=%{_libdir}
 
 make %{?_smp_mflags}
 
index 04e551f..17c1ed7 100644 (file)
@@ -1,5 +1,5 @@
 prefix=/usr
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
 includedir=${prefix}/include
 
 Name: service-discovery library