mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 11:47:49 +08:00
eb33d2f758
* [xplane-sdk] New port * [xplane-sdk] This build should work. * [xplane-sdk] updated versions. i forgor. * [xplane-sdk] Build fixed for Mac. * [x-plane-sdk] xplane-sdk renamed to x-plane-sdk. xplane-sdk has not yet been published, so this is okay. * [x-plane-sdk] Renaming fixes. * [x-plane-sdk] Clarify license. The license seems to be a weird mix of the MIT, BSD 1-clause, and BSD 3-clause licenses. I can't work it out. It's permissive, but it's not any one license. * [x-plane-sdk] Switch to vcpkg_install_copyright. * [x-plane-sdk] Fixup config. * Rename x-plane-sdk to x-plane. Includes also moved to include root. Signed-off-by: Julia DeMille <me@jdemille.com> * Forgot to format and update versions. Signed-off-by: Julia DeMille <me@jdemille.com> --------- Signed-off-by: Julia DeMille <me@jdemille.com>
31 lines
1.1 KiB
CMake
31 lines
1.1 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
set(XPSDK_VERSION "401")
|
|
vcpkg_download_distfile(
|
|
XPLANE_SDK_ZIP
|
|
URLS "https://developer.x-plane.com/wp-content/plugins/code-sample-generation/sample_templates/XPSDK${XPSDK_VERSION}.zip"
|
|
FILENAME "XPSDK${XPSDK_VERSION}.zip"
|
|
SHA512 8e00789befd15f5b1cb4f426ddf9c3f7f021c5fba50b907e8af5fbf09abbc362804b5d1543332855d01e8ae91b9c50a55933e63df6e11e88e58c10ca8f949bf4
|
|
)
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${XPLANE_SDK_ZIP}"
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-x-plane-config.cmake.in" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-x-plane)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt")
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|