Change-Id: Ifa48ed443778e0ac65a31f47022b831684e881de
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
MESSAGE("build nfc-common-lib and nfc-manager")
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(LIBDIR "${PREFIX}/lib")
SET(MODULEDIR "${LIBDIR}/nfc")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
ADD_DEFINITIONS("-D_GNU_SOURCE")
export LDFLAGS+=" -Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
LDFLAGS="$LDFLAGS" cmake . \
+ -DLIBDIR=%{_libdir} \
+ -DINCLUDE_INSTALL_DIR=%{_includedir} \
-DTIZEN_ENGINEER_MODE=1 \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DTIZEN_TELEPHONY_ENABLED=1 \
prefix=@PREFIX@
exec_prefix=${prefix}/bin
-libdir=@LIB_INSTALL_DIR@
+libdir=@LIBDIR@
includedir=@INCLUDE_INSTALL_DIR@/nfc-common-lib
Name: nfc-common-lib
Description: NFC Common Library
Version: 1.0
-Requires:
+Requires:
Libs: -L@LIB_INSTALL_DIR@ -lnfc-common-lib
Cflags: -I@INCLUDE_INSTALL_DIR@/nfc-common-lib