Skip to content

Commit

Permalink
[laszip] Migrate LASzip to the new manifest format. (microsoft#18614)
Browse files Browse the repository at this point in the history
* Migrate LASzip to the new manifest format.

- CONTROL -> vcpkg.json
- vcpkg_configure_cmake -> vcpkg_cmake_configure
- vcpkg_install_cmake -> vcpkg_cmake_install

* update version

Co-authored-by: Jonliu1993 <[email protected]>
  • Loading branch information
CreMindES and JonLiu1993 authored Jul 23, 2021
1 parent 25f4315 commit ef793cb
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 11 deletions.
3 changes: 0 additions & 3 deletions ports/laszip/CONTROL

This file was deleted.

13 changes: 6 additions & 7 deletions ports/laszip/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@ vcpkg_from_github(

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LASZIP_BUILD_STATIC)

vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DLASZIP_BUILD_STATIC=${LASZIP_BUILD_STATIC}
)

vcpkg_install_cmake()
vcpkg_cmake_install()

# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/laszip RENAME copyright)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/laszip" RENAME copyright)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Remove laszip_api3 dll since it doesn't export functions properly during build.
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/laszip_api3.dll)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/laszip_api3.dll)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/laszip_api3.dll")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/laszip_api3.dll")
17 changes: 17 additions & 0 deletions ports/laszip/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "laszip",
"version": "3.4.3",
"port-version": 1,
"description": "LASzip - free and lossless LiDAR compression",
"homepage": "https://laszip.org/",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2986,7 +2986,7 @@
},
"laszip": {
"baseline": "3.4.3",
"port-version": 0
"port-version": 1
},
"lazy-importer": {
"baseline": "2019-08-10",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/laszip.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "81b6a105440d08f2c29b044da3f0661e46ddb0a8",
"version": "3.4.3",
"port-version": 1
},
{
"git-tree": "6b7b406aadbae2a288bde7f2b268a7c302bfdf67",
"version-string": "3.4.3",
Expand Down

0 comments on commit ef793cb

Please sign in to comment.