option(ZBAR "Enable ZBar usage in MWalkingPapersBackground and Geoimage." OFF)
option(GEOIMAGE "Enable Geoimage Dock (requires exiv2 library)." ON )
option(GPSD "Enable GPS Dock (requires gpsd library)." OFF)
+option(LIBPROXY "Enable libproxy usage." OFF)
option(WEBENGINE "Enable the use of QtWeb engine (not supported on all platforms)" OFF)
option(EXTRA_TESTS "Enable extra tests that cannot be run automatically on CI build." ON )
message(STATUS " * ZBAR ${ZBAR}")
message(STATUS " * GEOIMAGE ${GEOIMAGE}")
message(STATUS " * GPSD ${GPSD}")
+message(STATUS " * LIBPROXY ${LIBPROXY}")
message(STATUS " * WEBENGINE ${WEBENGINE}")
message(STATUS " * EXTRA_TESTS ${EXTRA_TESTS}")
message(STATUS "")
add_definitions(-DUSE_GPS=1)
endif()
+if (LIBPROXY)
+ list(APPEND PKGCONFIG_REQUIRED_LIBS libproxy-1.0)
+ add_definitions(-DUSE_LIBPROXY=1)
+endif()
+
if (WEBENGINE)
add_definitions(-DUSEWEBENGINE=1) # Actual macro is USE_WEBKIT
# add_definitions(-DTHREADED_BROWSERIMAGEMANAGER=1) # TODO: Check if that even does something/works