Skip to content

Commit

Permalink
fixup! Support selecting JavaScriptCore API version
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgzr committed Mar 14, 2024
1 parent 8624dd5 commit 5585d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/FindJavaScriptCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ if(NOT JavaScriptCore_FOUND)
# NOTE: this is required since WebkitGTK (which includes JavaScriptCore) only
# exposes the GLib headers starting in versions after 4.0
# see: https://github.com/WebKit/WebKit/blob/main/Source/WebKit/gtk/migrating-to-webkitgtk-6.0.md#stop-using-deprecated-apis
FILE(GLOB headers ${PROJECT_SOURCE_DIR}/vendor/webkitgtk/Source/JavaScriptCore/API/*.h)
FOREACH(header ${headers})
file(GLOB headers ${PROJECT_SOURCE_DIR}/vendor/webkitgtk/Source/JavaScriptCore/API/*.h)
foreach(header ${headers})
cmake_path(GET header FILENAME header_filename)
configure_file("${header}" "${PROJECT_BINARY_DIR}/javascriptcore-headers/JavaScriptCore/${header_filename}" COPYONLY)
ENDFOREACH()
endforeach()
set_property(TARGET javascript_core PROPERTY
INTERFACE_INCLUDE_DIRECTORIES "${PROJECT_BINARY_DIR}/javascriptcore-headers")
endif()
Expand Down

0 comments on commit 5585d69

Please sign in to comment.