Skip to content

Commit

Permalink
Merge pull request #27 from WebPlatformForEmbedded/development/SplitW…
Browse files Browse the repository at this point in the history
…ebKitBrowser

Modified to make WebKitBrowser glib code compile again.
  • Loading branch information
pwielders authored Mar 25, 2021
2 parents 31d0849 + 3446fb7 commit d25cf60
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions WebKitBrowser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ option(PLUGIN_WEBKITBROWSER_LIGHTNING_APP "Include Lightning App in seperate plu
option(PLUGIN_WEBKITBROWSER_ENABLE_JIT "Enable the use of JIT javascript optimalization" ON)
option(PLUGIN_WEBKITBROWSER_ENABLE_DFG "Enable the use of DFG javascript optimalization" ON)

set(PLUGIN_WEBKITBROWSER_IMPLEMENTATION "${MODULE_NAME}Impl" CACHE STRING "Specify a library with a webkit implentation." )
set(PLUGIN_WEBKITBROWSER_IMPLEMENTATION "${MODULE_NAME}Impl" CACHE STRING "Specify a library with a webkit implementation." )

set(PLUGIN_WEBKITBROWSER_AUTOSTART false CACHE STRING "Automatically start WebKitBrowser plugin")
set(PLUGIN_WEBKITBROWSER_TRANSPARENT false CACHE STRING "Set transparency")
Expand Down Expand Up @@ -138,6 +138,7 @@ target_link_libraries(${MODULE_NAME}
PRIVATE
CompileSettingsDebug::CompileSettingsDebug
${NAMESPACE}Plugins::${NAMESPACE}Plugins
${NAMESPACE}Definitions::${NAMESPACE}Definitions
${SECURITY_TOKEN_LIBRARY})

add_library(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION} SHARED
Expand All @@ -164,11 +165,15 @@ target_include_directories(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION}
${LIBSOUP_INCLUDE_DIRS}
)

if(WPE_WEBKIT_DEPRECATED_API)
target_compile_definitions(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION} PRIVATE WPE_WEBKIT_DEPRECATED_API=${WPE_WEBKIT_DEPRECATED_API})
endif()

if(DEFINED WEBKIT_GLIB_API)
target_link_libraries(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION}
PRIVATE
${LIBSOUP_LIBRARIES})
target_compile_definitions(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION} PRIVATE WPE_WEBKIT_DEPRECATED_API=${WPE_WEBKIT_DEPRECATED_API})
target_compile_definitions(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION} PRIVATE WEBKIT_GLIB_API=${WEBKIT_GLIB_API})
endif()

set_target_properties(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION} PROPERTIES
Expand Down

0 comments on commit d25cf60

Please sign in to comment.