SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
IF("${ARCH}" STREQUAL "arm")
CLEAN_DIRECT_OUTPUT 1
)
-INSTALL(TARGETS ${fw_name} DESTINATION lib)
+INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR})
INSTALL(
DIRECTORY ${INC_DIR}/ DESTINATION include/${service}
FILES_MATCHING
${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc
@ONLY
)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
#ADD_SUBDIRECTORY(test)
* @brief The handle to the NDEF record
* @ingroup CAPI_NETWORK_NFC_NDEF_RECORD_MODULE
*/
-typedef struct ndef_record_s *nfc_ndef_record_h;
+typedef struct _ndef_record_s *nfc_ndef_record_h;
/**
* @brief The handle to the NDEF message
* @ingroup CAPI_NETWORK_NFC_NDEF_MESSAGE_MODULE
*/
-typedef struct ndef_message_s *nfc_ndef_message_h;
+typedef struct _ndef_message_s *nfc_ndef_message_h;
/**
* @brief The handle to the NFC tag
* @ingroup CAPI_NETWORK_NFC_TAG_MODULE
*/
-typedef struct net_nfc_target_info_s *nfc_tag_h;
+typedef struct _net_nfc_target_info_s *nfc_tag_h;
/**
* @brief The handle to NFC p2p target
* @ingroup CAPI_NETWORK_NFC_TAG_MODULE
*/
-typedef void* nfc_p2p_target_h;
+typedef void *nfc_p2p_target_h;
/**
* @brief The default factory key.
#sbs-git:slp/api/nfc capi-network-nfc 0.0.1 14f15050f8f6ff8217421da04fa5d66e834e2016
Name: capi-network-nfc
Summary: A NFC library in SLP C API
-Version: 0.0.5
-Release: 1
-Group: TO_BE/FILLED_IN
+Version: 0.0.7
+Release: 0
+Group: API/C API
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(ecore-x)
BuildRequires: pkgconfig(capi-appfw-app-manager)
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
%description
+A NFC library in SLP C API.
%package devel
-Summary: A NFC library in SLP C API (Development)
-Group: TO_BE/FILLED_IN
+Summary: A NFC library in SLP C API -- Development Files
+Group: API/C API
Requires: %{name} = %{version}-%{release}
%description devel
+A NFC library in SLP C API.
+This package contains the development files for %{name}.
%prep
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
-
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
make %{?jobs:-j%jobs}
void nfc_manager_set_tag_filter(int filter )
{
-
- int ret ;
- ret = net_nfc_set_tag_filter(filter);
+ net_nfc_set_tag_filter(filter);
}
int nfc_manager_get_tag_filter(void)