4 OUT_SOURCE_PATH SOURCE_PATH
6 REF 16c93bcaeaeb6aa7bb5a1432de3bef0b9ecc44f3
7 SHA512 153824bd444eafe6cc5ae00800422b41d4047dc85a164c465990c3be06d82003b532e1e869bb40e3a77cbe4789ff970fcda50ef00ac7b3e2f22ef3f566340026
11 file(COPY ${SOURCE_PATH}/webview.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
14 set(WEBVIEW_WINAPI "0")
15 set(WEBVIEW_COCOA "0")
17 if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
18 set(WEBVIEW_WINAPI "1")
19 elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
20 set(WEBVIEW_COCOA "1")
21 elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
25 file(READ ${CURRENT_PACKAGES_DIR}/include/webview.h _contents)
27 "#ifdef WEBVIEW_STATIC"
28 "#if 1 // #ifdef WEBVIEW_STATIC"
29 _contents "${_contents}"
32 "#ifdef WEBVIEW_IMPLEMENTATION"
33 "#if 1 // #ifdef WEBVIEW_IMPLEMENTATION"
34 _contents "${_contents}"
37 "defined(WEBVIEW_GTK)"
38 "${WEBVIEW_GTK} // defined(WEBVIEW_GTK)"
39 _contents "${_contents}"
42 "defined(WEBVIEW_WINAPI)"
43 "${WEBVIEW_WINAPI} // defined(WEBVIEW_WINAPI)"
44 _contents "${_contents}"
47 "defined(WEBVIEW_COCOA)"
48 "${WEBVIEW_COCOA} // defined(WEBVIEW_COCOA)"
49 _contents "${_contents}"
51 file(WRITE ${CURRENT_PACKAGES_DIR}/include/webview.h "${_contents}")
54 configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)