CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(fw_name "capi-maps-service")
+SET(DUMMY_PLUGIN "maps-plugin-test")
PROJECT(${fw_name})
src/api
src/plugin
src/session
+ test/dummy_plugin/
+ test/src/util/
)
INCLUDE_DIRECTORIES(${INC_DIR} ${INTERNAL_INC_DIR})
+SET(DUMMY_PLUGIN_SRC
+ test/dummy_plugin/dummy_plugin.cpp
+ test/src/util/maps_object.cpp
+ )
+
SET(dependents "glib-2.0 gmodule-2.0 dlog capi-base-common")
SET(pc_dependents "capi-base-common")
aux_source_directory(src/api SOURCES_API)
aux_source_directory(src/plugin SOURCES_PLUGIN)
aux_source_directory(src/session SOURCES_SESSION)
-ADD_LIBRARY(${fw_name} SHARED ${SOURCES} ${SOURCES_API} ${SOURCES_PLUGIN} ${SOURCES_SESSION})
+ADD_LIBRARY(${fw_name} SHARED ${SOURCES} ${SOURCES_API} ${SOURCES_PLUGIN} ${SOURCES_SESSION})
TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
-
SET_TARGET_PROPERTIES(${fw_name}
PROPERTIES
VERSION ${FULLVER}
SOVERSION ${MAJORVER}
CLEAN_DIRECT_OUTPUT 1
)
-
INSTALL(TARGETS ${fw_name} DESTINATION ${LIBDIR})
+
+ADD_LIBRARY(${DUMMY_PLUGIN} SHARED ${DUMMY_PLUGIN_SRC})
+TARGET_LINK_LIBRARIES(${DUMMY_PLUGIN} ${fw_name} ${${DUMMY_PLUGIN}_LDFLAGS})
+SET_TARGET_PROPERTIES(${DUMMY_PLUGIN}
+ PROPERTIES
+ VERSION ${FULLVER}
+ SOVERSION ${MAJORVER}
+ CLEAN_DIRECT_OUTPUT 1
+ )
+INSTALL(TARGETS ${DUMMY_PLUGIN} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/maps/plugins)
+
INSTALL(
DIRECTORY ${INC_DIR}/ DESTINATION include/maps
FILES_MATCHING
cp LICENSE %{buildroot}/usr/share/license/%{name}
mkdir -p %{buildroot}%{_prefix}/lib/maps/plugins
-cp -a lib/libmaps-plugin-test.so* %{buildroot}%{_prefix}/lib/maps/plugins
%post
/sbin/ldconfig
#################################################################################
# Test plugin library
-%package -n maps-plugin-test
-Summary: Tizen Maps Service Plug-in Test (Internal Dev)
-Group: Location/Testing
-Requires: %{name} = %{version}-%{release}
+#%package -n maps-plugin-test
+#Summary: Tizen Maps Service Plug-in Test (Internal Dev)
+#Group: Location/Testing
+#Requires: %{name} = %{version}-%{release}
-%description -n maps-plugin-test
-This is a program to test the Tizen Maps Service for Plug-in internally.
+#%description -n maps-plugin-test
+#This is a program to test the Tizen Maps Service for Plug-in internally.
-%files -n maps-plugin-test
-%manifest test/dummy_plugin/maps-plugin-test.manifest
-%defattr(-,root,root,-)
-%{_libdir}/maps/plugins/libmaps-plugin-test.so*
+#%files -n maps-plugin-test
+#%manifest test/dummy_plugin/maps-plugin-test.manifest
+#%defattr(-,root,root,-)
+#%{_libdir}/maps/plugins/libmaps-plugin-test.so*
+++ /dev/null
-SET(DUMMY_PLUGIN "maps-plugin-test")
-
-SET(DUMMY_PLUGIN_SRC
- dummy_plugin.cpp
- ../src/util/maps_object.cpp
- )
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(${DUMMY_PLUGIN} REQUIRED)
-FOREACH(flag ${${DUMMY_PLUGIN}_CFLAGS})
- SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror")
-
-ADD_LIBRARY(${DUMMY_PLUGIN} SHARED ${DUMMY_PLUGIN_SRC})
-SET_TARGET_PROPERTIES(${DUMMY_PLUGIN}
- PROPERTIES
- VERSION ${FULLVER}
- SOVERSION ${MAJORVER}
- CLEAN_DIRECT_OUTPUT 1
- )
-
-TARGET_LINK_LIBRARIES(${DUMMY_PLUGIN} ${fw_name} ${${DUMMY_PLUGIN}_LDFLAGS})
-
-INSTALL(TARGETS ${DUMMY_PLUGIN} DESTINATION ${LIBDIR}/maps/plugins)
+++ /dev/null
-<manifest>
- <request>
- <domain name="_"/>
- </request>
-</manifest>
\ No newline at end of file