diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/luau/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/luau/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/luau/portfile.cmake | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/luau/portfile.cmake b/vcpkg/ports/luau/portfile.cmake new file mode 100644 index 0000000..911253e --- /dev/null +++ b/vcpkg/ports/luau/portfile.cmake @@ -0,0 +1,40 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO luau-lang/luau + REF ${VERSION} + SHA512 74e4ffc8dbd3f05bcd92fa0e0e75a96b393dc738ec3ccacacf3de58738ba2fa65c5aeaa4da7e317c06ce43deb66635dce34d777a91d4e41f4ac9a13186168c69 + HEAD_REF master + PATCHES + cmake-config-export.patch +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + tool LUAU_BUILD_CLI +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DLUAU_BUILD_TESTS=OFF + -DVERSION=${VERSION} + ${FEATURE_OPTIONS} + OPTIONS_DEBUG + -DLUAU_BUILD_CLI=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-luau") + +if("tool" IN_LIST FEATURES) + vcpkg_copy_tools(TOOL_NAMES luau AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") |