Skip to content

Commit

Permalink
Disable JUCE_WEB_BROWSER
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Oct 14, 2024
1 parent 541672b commit 8d08025
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
19 changes: 5 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,22 +213,15 @@ elseif(LINUX)
find_package(CURL REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(Fontconfig REQUIRED)

pkg_check_modules(WEBKIT2GTK QUIET webkit2gtk-4.0)
if (NOT WEBKIT2GTK_FOUND)
message(STATUS "webkit2gtk-4.0 not found. Looking for webkit2gtk-4.1...")
pkg_check_modules(WEBKIT2GTK REQUIRED webkit2gtk-4.1)
endif()

# pkg_check_modules(GTK REQUIRED gtk+-3.0)

target_include_directories(open-ephys PRIVATE
/usr/include
/usr/include/freetype2
${CURL_INCLUDE_DIRS}
${WEBKIT2GTK_INCLUDE_DIRS}
)
target_link_libraries(open-ephys GL X11 Xext Xinerama asound dl freetype pthread rt ${Fontconfig_LIBRARIES} ${CURL_LIBRARIES} ${WEBKIT2GTK_LIBRARIES})
${CURL_INCLUDE_DIRS})

target_link_libraries(open-ephys GL X11 Xext Xinerama asound dl freetype pthread rt ${Fontconfig_LIBRARIES} ${CURL_LIBRARIES})
set_property(TARGET open-ephys APPEND_STRING PROPERTY LINK_FLAGS
"-fvisibility=hidden -fPIC -rdynamic -Wl,-rpath,'$ORIGIN/shared'")

Expand All @@ -238,10 +231,8 @@ elseif(LINUX)
target_include_directories(gui_testable_source PRIVATE
/usr/include
/usr/include/freetype2
${CURL_INCLUDE_DIRS}
${WEBKIT2GTK_INCLUDE_DIRS}
)
target_link_libraries(gui_testable_source GL X11 Xext Xinerama asound dl freetype pthread rt ${Fontconfig_LIBRARIES} ${CURL_LIBRARIES} ${WEBKIT2GTK_LIBRARIES})
${CURL_INCLUDE_DIRS})
target_link_libraries(gui_testable_source GL X11 Xext Xinerama asound dl freetype pthread rt ${Fontconfig_LIBRARIES} ${CURL_LIBRARIES})
set_property(TARGET gui_testable_source APPEND_STRING PROPERTY LINK_FLAGS
"-fvisibility=hidden -fPIC -rdynamic -Wl,-rpath,'$ORIGIN/shared'")

Expand Down
2 changes: 1 addition & 1 deletion JuceLibraryCode/AppConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
// juce_gui_extra flags:

#ifndef JUCE_WEB_BROWSER
//#define JUCE_WEB_BROWSER 1
#define JUCE_WEB_BROWSER 0
#endif

#ifndef JUCE_USE_WIN_WEBVIEW2
Expand Down
2 changes: 1 addition & 1 deletion Resources/Scripts/install_linux_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
apt-get -y install build-essential

# install Juce dependencies
apt-get -y install freeglut3-dev libfreetype6-dev libxinerama-dev libxcursor-dev libasound2-dev libxrandr-dev libcurl4-openssl-dev libwebkit2gtk-4.0-dev
apt-get -y install freeglut3-dev libfreetype*-dev libxinerama-dev libxcursor-dev libasound2-dev libxrandr-dev libcurl4-openssl-dev

0 comments on commit 8d08025

Please sign in to comment.