mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 06:51:18 +08:00
637c236d18
* [new port] squirrel * Add versions * Fix squirrel portfile according to new standards * Add version to squirrel * Remove all files from /bin directory * Update squirrel version * Could not fix the execs in bin/ directory hence simply enforced dir removal * Update versions * Remove obsolete version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Remove trailing comma * Remove bin files only when not using squirrel as library * Do not remove bin dir when on win32 and dynamic linking because of dlls * Fixing the bin directory cleanup for various platforms * Update versions * Smart remove bin directory for static vs dynamic build; add note on the binaries there * Update version * Define 'interpreter' feature which controls building sq and sq_static binaries * Update version and revision of squirrel to the most recent one * Update versions database * Remove bin/ directory for static build * Update versions database * Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions * Fix interpreter tool * Update versions * Add patch to optionally build squirrel interpreter * Update versions * [new port] squirrel Add versions Fix squirrel portfile according to new standards Add version to squirrel Remove all files from /bin directory Update squirrel version Could not fix the execs in bin/ directory hence simply enforced dir removal Update versions Remove obsolete version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Remove trailing comma Remove bin files only when not using squirrel as library Do not remove bin dir when on win32 and dynamic linking because of dlls Fixing the bin directory cleanup for various platforms Update versions Smart remove bin directory for static vs dynamic build; add note on the binaries there Update version Define 'interpreter' feature which controls building sq and sq_static binaries Update version and revision of squirrel to the most recent one Update versions database Remove bin/ directory for static build Update versions database Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Update versions Fix interpreter tool Update versions Add patch to optionally build squirrel interpreter Update versions Conditionally build sq and sq_static Update versions * Change line endings to LF * Update versions * Change line endings to LF * Update versions Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Artem Shubovych <artem.shubovych@thetradedesk.com>
54 lines
1.6 KiB
CMake
54 lines
1.6 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO albertodemichelis/squirrel
|
|
HEAD_REF master
|
|
REF 23a0620658714b996d20da3d4dd1a0dcf9b0bd98
|
|
SHA512 205ba0b2b37ca2133f8c1b3024a3a34186697998714140d409006ae0f5facc76b2664dbbad33bbc51c86199e2524bd0cd905b8941e306db892a50a58f1b96371
|
|
PATCHES fix_optionally_build_sq.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_DYNAMIC)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
"interpreter" BUILD_SQ
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DDISABLE_DYNAMIC=${DISABLE_DYNAMIC}
|
|
-DDISABLE_STATIC=${DISABLE_STATIC}
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/squirrel)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
if(BUILD_SQ)
|
|
if(BUILD_STATIC)
|
|
message(STATUS "Copying sq tool")
|
|
vcpkg_copy_tools(
|
|
TOOL_NAMES sq
|
|
AUTO_CLEAN
|
|
)
|
|
elseif(BUILD_DYNAMIC)
|
|
message(STATUS "Copying sq and sq_static tool")
|
|
vcpkg_copy_tools(
|
|
TOOL_NAMES sq sq_static
|
|
AUTO_CLEAN
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|