diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-08-08 11:53:12 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-08-08 11:53:12 +0200 |
commit | e50482f994b6ebcce864a412111d376e99205cdb (patch) | |
tree | ff3192c6aaf213c4922521bed988e4ed4147f537 /app/wlib/gtklib/CMakeLists.txt | |
parent | d3897ce090dbeb220ed2c782f095597e417cf3cc (diff) | |
parent | b623f5953691b2a0614e6f1f4def86bdbb9a4113 (diff) |
Update upstream source from tag 'upstream/5.2.0Beta2.1'
Update to upstream version '5.2.0Beta2.1'
with Debian dir 1576f25f4c1496abfed44af31ead67d32c7be650
Diffstat (limited to 'app/wlib/gtklib/CMakeLists.txt')
-rw-r--r-- | app/wlib/gtklib/CMakeLists.txt | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/app/wlib/gtklib/CMakeLists.txt b/app/wlib/gtklib/CMakeLists.txt index bf20e91..97ab56f 100644 --- a/app/wlib/gtklib/CMakeLists.txt +++ b/app/wlib/gtklib/CMakeLists.txt @@ -18,6 +18,7 @@ set(sources menu.c message.c notice.c + opendocument.c pixbuf.c png.c print.c @@ -35,29 +36,43 @@ set(sources gtkdraw-cairo.c ) - # help system is OS and build specific, add appropriate source files if(APPLE) - set(sources - ${sources} - osxhelp.c) -else() + if (XTRKCAD_USE_APPLEHELP) + set(sources + ${sources} + osxhelp.c) + else(XTRKCAD_USE_APPLEHELP) + if(XTRKCAD_USE_BROWSER) + set(sources + ${sources} + browserhelp.c) + else(XTRKCAD_USE_BROWSER) + PKG_CHECK_MODULES(GTK_WEBKIT "webkit-1.0" REQUIRED) + set(sources + ${sources} + ixhelp.c) + endif(XTRKCAD_USE_BROWSER) + endif(XTRKCAD_USE_APPLEHELP) +else(APPLE) if(XTRKCAD_USE_BROWSER) set(sources ${sources} browserhelp.c) - else() + else(XTRKCAD_USE_BROWSER) + PKG_CHECK_MODULES(GTK_WEBKIT "webkit-1.0" REQUIRED) set(sources ${sources} ixhelp.c) - endif() -endif() + endif(XTRKCAD_USE_BROWSER) +endif(APPLE) include_directories(${XTrkCAD_BINARY_DIR}) add_library(xtrkcad-wlib ${headers} ${sources}) # GTK +find_package (GTK2) include_directories(${GTK_INCLUDE_DIRS}) target_link_libraries(xtrkcad-wlib ${GTK_LIBRARIES}) @@ -67,7 +82,16 @@ include_directories(${GTK_UNIX_PRINT_INCLUDE_DIRS}) target_link_libraries(xtrkcad-wlib ${GTK_UNIX_PRINT_LIBRARIES}) # add dependency to webkit if configured -if(NOT XTRKCAD_USE_BROWSER) - include_directories(${GTK_WEBKIT_INCLUDE_DIRS}) - target_link_libraries(xtrkcad-wlib ${GTK_WEBKIT_LIBRARIES}) -endif() +if (APPLE) + if(NOT XTRKCAD_USE_APPLEHELP) + if(NOT XTRKCAD_USE_BROWSER) + include_directories(${GTK_WEBKIT_INCLUDE_DIRS}) + target_link_libraries(xtrkcad-wlib ${GTK_WEBKIT_LIBRARIES}) + endif() + endif() +else (APPLE) + if(NOT XTRKCAD_USE_BROWSER) + include_directories(${GTK_WEBKIT_INCLUDE_DIRS}) + target_link_libraries(xtrkcad-wlib ${GTK_WEBKIT_LIBRARIES}) + endif() +endif(APPLE) |