Skip to content

Commit

Permalink
Reverting part of e7a70e9 (PR #833) that was not needed
Browse files Browse the repository at this point in the history
Reverting part of e7a70e9 (PR #833) that was not needed
  • Loading branch information
lains committed Aug 20, 2019
2 parents 7ecccd4 + 5916b06 commit cbb32d1
Showing 1 changed file with 23 additions and 29 deletions.
52 changes: 23 additions & 29 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,35 +154,31 @@ INCLUDE (CheckSymbolExists)

find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
if (NOT ANDROID)
pkg_check_modules ( GMODULE gmodule-2.0 )
if (GMODULE_FOUND)
set(HAVE_GMODULE 1)
include_directories(${GMODULE_INCLUDE_DIRS})
list(APPEND NAVIT_LIBS ${GMODULE_LIBRARIES})
endif(GMODULE_FOUND)

pkg_check_modules (GLIB2 glib-2.0>=2.10)
if (GLIB2_FOUND)
set(HAVE_GLIB 1)
include_directories(${GLIB2_INCLUDE_DIRS})
list(APPEND NAVIT_LIBS ${GLIB2_LIBRARIES})
else(GLIB2_FOUND)
set_with_reason(support/glib "Glib not found" TRUE ${INTL_LIBS})
endif(GLIB2_FOUND)
endif(NOT ANDROID)
pkg_check_modules ( GMODULE gmodule-2.0 )
if (GMODULE_FOUND)
set(HAVE_GMODULE 1)
include_directories(${GMODULE_INCLUDE_DIRS})
list(APPEND NAVIT_LIBS ${GMODULE_LIBRARIES})
endif(GMODULE_FOUND)

pkg_check_modules (GLIB2 glib-2.0>=2.10)
if (GLIB2_FOUND)
set(HAVE_GLIB 1)
include_directories(${GLIB2_INCLUDE_DIRS})
list(APPEND NAVIT_LIBS ${GLIB2_LIBRARIES})
else(GLIB2_FOUND)
set_with_reason(support/glib "Glib not found" TRUE ${INTL_LIBS})
endif(GLIB2_FOUND)

pkg_check_modules(FONTCONFIG "fontconfig >= 2.2.0")
if (NOT ANDROID)
pkg_check_modules(DBUS "dbus-1 >= 1.4")
pkg_check_modules(DBUSGLIB dbus-glib-1)
if(DBUSGLIB_FOUND)
include_directories(${DBUSGLIB_INCLUDE_DIRS})
set_with_reason(binding/dbus "dbus-glib-1 found" TRUE ${DBUSGLIB_LIBRARIES})
set_with_reason(speech/dbus "dbus-glib-1 found" TRUE ${DBUSGLIB_LIBRARIES})
set_with_reason(vehicle/gpsd_dbus "dbus-glib-1 found" TRUE ${DBUSGLIB_LIBRARIES})
endif(DBUSGLIB_FOUND)
endif(NOT ANDROID)
pkg_check_modules(DBUS "dbus-1 >= 1.4")
pkg_check_modules(DBUSGLIB dbus-glib-1)
if(DBUSGLIB_FOUND)
include_directories(${DBUSGLIB_INCLUDE_DIRS})
set_with_reason(binding/dbus "dbus-glib-1 found" TRUE ${DBUSGLIB_LIBRARIES})
set_with_reason(speech/dbus "dbus-glib-1 found" TRUE ${DBUSGLIB_LIBRARIES})
set_with_reason(vehicle/gpsd_dbus "dbus-glib-1 found" TRUE ${DBUSGLIB_LIBRARIES})
endif()

pkg_check_modules(LIBLOCATION liblocation)
pkg_check_modules(LIBOSSO libosso)
Expand Down Expand Up @@ -744,8 +740,6 @@ if(ANDROID)
set_with_reason(graphics/null "Android detected" FALSE)
set_with_reason(graphics/android "Android detected" TRUE)
set_with_reason(speech/android "Android detected" TRUE)
set_with_reason(support/ezxml "Android detected" TRUE)
set_with_reason(support/glib "Android detected" TRUE)
set_with_reason(traffic/traff_android "Android detected" TRUE)
set_with_reason(vehicle/android "Android detected" TRUE)
set_with_reason(vehicle/file "Android detected" FALSE)
Expand Down

0 comments on commit cbb32d1

Please sign in to comment.