Ticket #52404: patch-cmakelists-enable-webkit2-gtk.diff

File patch-cmakelists-enable-webkit2-gtk.diff, 1.0 KB (added by kencu (Ken), 6 years ago)

tiny patch to version 3.2 of gnucash to build it against webkit2-gtk, for anyone interested in manually trying this out for now.

  • CMakeLists.txt

    old new  
    199199gnc_pkg_check_modules (LIBXML2 REQUIRED libxml-2.0>=2.7.0)
    200200gnc_pkg_check_modules (LIBXSLT REQUIRED libxslt)
    201201if (WITH_GNUCASH)
    202   if (WIN32 OR APPLE)
     202  if (WIN32)
    203203    gnc_pkg_check_modules (WEBKIT1 REQUIRED webkitgtk-3.0)
    204204    set(WEBKIT1 1)
    205205    set(WEBKIT_CFLAGS ${WEBKIT2_CFLAGS})
    206206    set(WEBKIT_INCLUDE_DIRS ${WEBKIT1_INCLUDE_DIRS})
    207207    set(WEBKIT_LDFLAGS ${WEBKIT1_LDFLAGS})
    208208    set(WEBKIT_LIBRARIES ${WEBKIT1_LIBRARIES})
    209   else (WIN32 OR APPLE)
     209  else (WIN32)
    210210    gnc_pkg_check_modules (WEBKIT2_4 webkit2gtk-4.0)
    211211    if (NOT WEBKIT2_4_FOUND)
    212212      gnc_pkg_check_modules (WEBKIT2_3 REQUIRED webkit2gtk-3.0)
     
    222222      set(WEBKIT_LDFLAGS ${WEBKIT2_4_LDFLAGS})
    223223      set(WEBKIT_LIBRARIES ${WEBKIT2_4_LIBRARIES})
    224224    endif (NOT WEBKIT2_4_FOUND)
    225   endif (WIN32 OR APPLE)
     225  endif (WIN32)
    226226
    227227  gnc_pkg_check_modules (GTK3 REQUIRED gtk+-3.0>=3.10.0)
    228228endif (WITH_GNUCASH)