blob: de8647fa2f1f9a1d5522ece8b6ed52f37e68366a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(pkg_name "maps-plugin-here")
PROJECT(${pkg_name} C CXX)
SET(CMAKE_INSTALL_PREFIX /usr)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
# Dependencies
SET(dependents "glib-2.0 gmodule-2.0 libxml-2.0 dlog capi-network-connection capi-appfw-app-manager capi-maps-service heremaps-engine capi-appfw-application")
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED ${dependents})
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
SET(EXTRA_CXXFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
# Build
SET(CMAKE_INSTALL_PREFIX /usr)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fvisibility=hidden -fPIC -Wall -Werror")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIC -std=c++0x -fvisibility=hidden")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DEXPORT_API=__attribute__((visibility(\"default\")))")
ADD_DEFINITIONS("-DTIZEN_DEBUG")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIBDIR}")
# Main Include file
SET(INC_DIR
src/here
)
INCLUDE_DIRECTORIES(
${INC_DIR}
)
#This file must be corrected
# Source Lists
SET(SRCS
# Maps API
src/here_plugin.cpp
# Here plug-in
src/here/here_api.cpp
src/here/here_base.cpp
src/here/here_manager.cpp
src/here/here_geocode.cpp
src/here/here_place.cpp
src/here/here_revgeocode.cpp
src/here/here_route.cpp
src/here/here_utils.cpp
)
ADD_LIBRARY(${pkg_name} SHARED ${SRCS})
SET_TARGET_PROPERTIES(${pkg_name}
PROPERTIES
VERSION ${FULLVER}
SOVERSION ${MAJORVER}
CLEAN_DIRECT_OUTPUT 1
)
TARGET_LINK_LIBRARIES(${pkg_name} ${pkgs_LDFLAGS})
# Install
INSTALL(TARGETS ${pkg_name} DESTINATION ${LIBDIR}/maps/plugins)
# Test Suite
#IF("${BINTYPE}" STREQUAL "eng")
#ENDIF("${BINTYPE}" STREQUAL "eng")
ADD_SUBDIRECTORY(heremaps-uc)
|