|
|
|
@ -8,11 +8,6 @@ include_directories(${GTK_INCLUDE_DIRS})
|
|
|
|
link_directories(${GTK_LIBRARY_DIRS})
|
|
|
|
link_directories(${GTK_LIBRARY_DIRS})
|
|
|
|
add_definitions(${GTK_CFLAGS_OTHER})
|
|
|
|
add_definitions(${GTK_CFLAGS_OTHER})
|
|
|
|
|
|
|
|
|
|
|
|
pkg_check_modules(VTE291 REQUIRED vte-2.91)
|
|
|
|
|
|
|
|
include_directories(${VTE291_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
link_directories(${VTE291_LIBRARY_DIRS})
|
|
|
|
|
|
|
|
add_definitions(${VTE291_CFLAGS_OTHER})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkg_check_modules(JSON REQUIRED json-c)
|
|
|
|
pkg_check_modules(JSON REQUIRED json-c)
|
|
|
|
include_directories(${JSON_INCLUDE_DIRS})
|
|
|
|
include_directories(${JSON_INCLUDE_DIRS})
|
|
|
|
link_directories(${JSON_LIBRARY_DIRS})
|
|
|
|
link_directories(${JSON_LIBRARY_DIRS})
|
|
|
|
@ -23,22 +18,18 @@ include_directories(${PWQUALITY_INCLUDE_DIRS})
|
|
|
|
link_directories(${PWQUALITY_LIBRARY_DIRS})
|
|
|
|
link_directories(${PWQUALITY_LIBRARY_DIRS})
|
|
|
|
add_definitions(${PWQUALITY_CFLAGS_OTHER})
|
|
|
|
add_definitions(${PWQUALITY_CFLAGS_OTHER})
|
|
|
|
|
|
|
|
|
|
|
|
# pkg_check_modules(TIMEZONEMAP REQUIRED timezonemap)
|
|
|
|
|
|
|
|
# include_directories(${TIMEZONEMAP_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
# link_directories(${TIMEZONEMAP_LIBRARY_DIRS})
|
|
|
|
|
|
|
|
# add_definitions(${TIMEZONEMAP_CFLAGS_OTHER})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_library(WEBKIT_LIBRARIES_FOUND webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
|
|
|
find_library(WEBKIT_LIBRARIES_FOUND webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
|
|
|
find_library(TIMEZONEMAP_LIBRARIES_FOUND timezonemap)
|
|
|
|
find_library(TIMEZONEMAP_LIBRARIES_FOUND timezonemap)
|
|
|
|
|
|
|
|
|
|
|
|
option(WEBKIT_FOUND "No" OFF)
|
|
|
|
|
|
|
|
if(WEBKIT_LIBRARIES_FOUND)
|
|
|
|
if(WEBKIT_LIBRARIES_FOUND)
|
|
|
|
option(WEBKIT_FOUND "Yes" ON)
|
|
|
|
add_definitions(-DWEBKIT_INCLUDE)
|
|
|
|
PKG_CHECK_MODULES(WEBKIT REQUIRED webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
|
|
|
PKG_CHECK_MODULES(WEBKIT REQUIRED webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
|
|
|
include_directories(${WEBKIT_INCLUDE_DIRS})
|
|
|
|
include_directories(${WEBKIT_INCLUDE_DIRS})
|
|
|
|
link_directories(${WEBKIT_LIBRARY_DIRS})
|
|
|
|
link_directories(${WEBKIT_LIBRARY_DIRS})
|
|
|
|
add_definitions(${WEBKIT_CFLAGS_OTHER})
|
|
|
|
add_definitions(${WEBKIT_CFLAGS_OTHER})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if(TIMEZONEMAP_LIBRARIES_FOUND)
|
|
|
|
if(TIMEZONEMAP_LIBRARIES_FOUND)
|
|
|
|
message("TIMEZONEMAP ENABLED")
|
|
|
|
message("TIMEZONEMAP ENABLED")
|
|
|
|
add_definitions(-DTIMEZONEMAP_INCLUDE)
|
|
|
|
add_definitions(-DTIMEZONEMAP_INCLUDE)
|
|
|
|
@ -119,7 +110,7 @@ add_custom_target(
|
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}
|
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_definitions(-DVTE_INCLUDE)
|
|
|
|
# add_definitions(-DVTE_INCLUDE)
|
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always \
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always \
|
|
|
|
-O2 -pipe -fno-plt -fexceptions \
|
|
|
|
-O2 -pipe -fno-plt -fexceptions \
|
|
|
|
|