git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4004
ffa7fe5e-494d-0410-b361-
a75ebd5db220
cfg_feature(SHARED_LIBNAVIT "Android detected" TRUE)
add_feature(XPM2PNG "Android detected" TRUE)
- # todo: fixe undef. ref to timegm (->timegm64)
- cfg_feature(BUILD_MAPTOOL "Android detected" FALSE)
set(NAVIT_COMPILE_FLAGS "${NAVIT_COMPILE_FLAGS} -fPIC")
endif(ANDROID)
if(BUILD_MAPTOOL)
- add_definitions( -DMODULE=maptool )
+ add_definitions( -DMODULE=maptool ${NAVIT_COMPILE_FLAGS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
SET(MAPTOOL_SOURCE boundaries.c buffer.c ch.c coastline.c geom.c itembin.c itembin_buffer.c misc.c osm.c sourcesink.c tempfile.c tile.c zip.c osm_xml.c)
if(NOT MSVC)
if(NOT MSVC)
SET(NAVIT_LIBS ${NAVIT_LIBS} m)
endif(NOT MSVC)
- target_link_libraries(maptool maptool_core navit_core ${NAVIT_LIBS})
+ target_link_libraries(maptool maptool_core ${NAVIT_LIBNAME} ${NAVIT_LIBS})
install(TARGETS maptool
DESTINATION ${BIN_DIR}
return 0;
tm.tm_year-=1900;
tm.tm_mon-=1;
-#ifdef HAVE_API_WIN32_BASE
+#if defined(HAVE_API_WIN32_BASE) || defined(ANDROID)
return 0;
#else
return timegm(&tm);