diff options
| author | Fabien Péan <fabien@pean.pro> | 2021-02-09 03:26:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-08 18:26:40 -0800 |
| commit | 7e01ac118a4eab913b75499ccdb5f8b89a457e8a (patch) | |
| tree | c9c92d470e8f0a9ab4d435bde600058c002c0d22 | |
| parent | b011565aeccb6571fb2567bf7c4bbae8bb5a93ce (diff) | |
| download | vcpkg-7e01ac118a4eab913b75499ccdb5f8b89a457e8a.tar.gz vcpkg-7e01ac118a4eab913b75499ccdb5f8b89a457e8a.zip | |
[libigl] Always install as header-only library (#14888)
* [libigl] Always build as header-only library
* [libigl] Always build header-only
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
| -rw-r--r-- | ports/libigl/CONTROL | 6 | ||||
| -rw-r--r-- | ports/libigl/portfile.cmake | 26 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/l-/libigl.json | 5 |
4 files changed, 12 insertions, 27 deletions
diff --git a/ports/libigl/CONTROL b/ports/libigl/CONTROL index 0de66e027..bc0ce7ef3 100644 --- a/ports/libigl/CONTROL +++ b/ports/libigl/CONTROL @@ -1,6 +1,6 @@ Source: libigl Version: 2.2.0 -Port-Version: 3 +Port-Version: 4 Homepage: https://github.com/libigl/libigl Description: libigl is a simple C++ geometry processing library. We have a wide functionality including construction of sparse discrete differential geometry operators and finite-elements matrices such as the cotangent Laplacian and diagonalized mass matrix, simple facet and edge-based topology data structures, mesh-viewing utilities for OpenGL and GLSL, and many core functions for matrix manipulation which make Eigen feel a lot more like MATLAB. Build-Depends: eigen3 @@ -16,11 +16,11 @@ Build-Depends: opengl, glad Feature: glfw Description: Build with glfw -Build-Depends: libigl[opengl], glfw3 +Build-Depends: libigl[core, opengl], glfw3 Feature: imgui Description: Build with imgui -Build-Depends: libigl[glfw], imgui[glfw-binding, opengl3-glew-binding, libigl-imgui] +Build-Depends: libigl[core, glfw], imgui[core, glfw-binding, opengl3-glew-binding, libigl-imgui] Feature: xml Description: Build with libxml diff --git a/ports/libigl/portfile.cmake b/ports/libigl/portfile.cmake index 46da1c039..7d636a73f 100644 --- a/ports/libigl/portfile.cmake +++ b/ports/libigl/portfile.cmake @@ -13,23 +13,6 @@ vcpkg_from_github( fix-config.patch ) -set(LIBIGL_BUILD_STATIC OFF) -if (VCPKG_LIBRARY_LINKAGE STREQUAL static) - set(LIBIGL_BUILD_STATIC ON) -endif() - -if ("test" IN_LIST FEATURES AND NOT EXISTS ${SOURCE_PATH}/tests/data) - set(TEST_SOURCE_PATH ${SOURCE_PATH}/tests/data) - file(MAKE_DIRECTORY ${TEST_SOURCE_PATH}) - vcpkg_from_github( - OUT_SOURCE_PATH ${TEST_SOURCE_PATH} - REPO libigl/libigl-tests-data - REF 0689abc55bc12825e6c01ac77446f742839ff277 - SHA512 2b6aec21ed39a9fd534da86fff75eee0f94a3ea2db2fb9dd28974636cc34936341cc28dfcf3bb07cf79409124342717e001c529dc887da72c85fe314b0eb6ea6 - HEAD_REF master - ) -endif() - vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS embree LIBIGL_WITH_EMBREE opengl LIBIGL_WITH_OPENGL @@ -46,7 +29,7 @@ vcpkg_configure_cmake( OPTIONS ${FEATURE_OPTIONS} -DLIBIGL_BUILD_PYTHON=OFF -DLIBIGL_EXPORT_TARGETS=ON - -DLIBIGL_USE_STATIC_LIBRARY=${LIBIGL_BUILD_STATIC} + -DLIBIGL_USE_STATIC_LIBRARY=OFF # Header-only mode -DLIBIGL_WITH_COMISO=OFF -DLIBIGL_WITH_TETGEN=OFF -DLIBIGL_WITH_TRIANGLE=OFF @@ -62,10 +45,7 @@ vcpkg_install_cmake() vcpkg_fixup_cmake_targets(CONFIG_PATH share/libigl/cmake) vcpkg_copy_pdbs() -if (NOT LIBIGL_BUILD_STATIC) - # For dynamic build, libigl is a header-only library. - file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) -endif() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) +# libigl is a header-only library. +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(INSTALL ${SOURCE_PATH}/LICENSE.GPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/versions/baseline.json b/versions/baseline.json index 40e6a3b0a..7083a7fe1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3074,7 +3074,7 @@ }, "libigl": { "baseline": "2.2.0", - "port-version": 3 + "port-version": 4 }, "libilbc": { "baseline": "3.0.3", diff --git a/versions/l-/libigl.json b/versions/l-/libigl.json index e0509e899..04095ebf5 100644 --- a/versions/l-/libigl.json +++ b/versions/l-/libigl.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "d150e0cc468dec8769382b413a5c477a0682f1fd", + "version-string": "2.2.0", + "port-version": 4 + }, + { "git-tree": "b953afc0875516000dd3c3e694b0d1fc788b8e19", "version-string": "2.2.0", "port-version": 3 |
