Skip to content

Commit

Permalink
Merge pull request #293 from sebastic/libproxy
Browse files Browse the repository at this point in the history
Fix building with libproxy 0.5.
  • Loading branch information
Krakonos committed Mar 14, 2024
2 parents dda2d64 + 1d92cc7 commit c1997ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ set(PKGCONFIG_REQUIRED_LIBS gdal proj)
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(PROTOBUF "Enable support for .osm.pbf format." ON)
option(EXTRA_TESTS "Enable extra tests that cannot be run automatically on CI build." ON )
Expand All @@ -484,6 +485,7 @@ message(STATUS "Build options (use -DOPT=ON/OFF to enable/disable):")
message(STATUS " * ZBAR ${ZBAR}")
message(STATUS " * GEOIMAGE ${GEOIMAGE}")
message(STATUS " * GPSD ${GPSD}")
message(STATUS " * LIBPROXY ${LIBPROXY}")
message(STATUS " * WEBENGINE ${WEBENGINE}")
message(STATUS " * PROTOBUF ${PROTOBUF}")
message(STATUS " * EXTRA_TESTS ${EXTRA_TESTS}")
Expand All @@ -504,6 +506,11 @@ if (GPSD)
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
Expand Down

0 comments on commit c1997ae

Please sign in to comment.