diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-09-09 11:45:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-09 11:45:05 -0700 |
| commit | dc56928e6af92c97879cb5a4b5e42929878c639f (patch) | |
| tree | d67a338cc35dc962cf683a6f029d1172ad558c28 | |
| parent | bdfc26fb8543517bdd18a5312fdb3fe2fa583517 (diff) | |
| download | vcpkg-dc56928e6af92c97879cb5a4b5e42929878c639f.tar.gz vcpkg-dc56928e6af92c97879cb5a4b5e42929878c639f.zip | |
[libigl] Install extra headers when feature selected (#13424)
| -rw-r--r-- | ports/libigl/CONTROL | 1 | ||||
| -rw-r--r-- | ports/libigl/install-extra-headers.patch | 35 | ||||
| -rw-r--r-- | ports/libigl/portfile.cmake | 1 |
3 files changed, 37 insertions, 0 deletions
diff --git a/ports/libigl/CONTROL b/ports/libigl/CONTROL index 3b2304002..d01119a9d 100644 --- a/ports/libigl/CONTROL +++ b/ports/libigl/CONTROL @@ -1,5 +1,6 @@ Source: libigl Version: 2.2.0 +Port-Version: 1 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 diff --git a/ports/libigl/install-extra-headers.patch b/ports/libigl/install-extra-headers.patch new file mode 100644 index 000000000..a0f2905e0 --- /dev/null +++ b/ports/libigl/install-extra-headers.patch @@ -0,0 +1,35 @@ +diff --git a/cmake/libigl.cmake b/cmake/libigl.cmake +index a33cefa..991cf0d 100644 +--- a/cmake/libigl.cmake ++++ b/cmake/libigl.cmake +@@ -561,6 +561,30 @@ export( + install_dir_files(core) + install_dir_files(copyleft) + ++if (LIBIGL_WITH_EMBREE) ++ install_dir_files(embree) ++endif() ++ ++if (LIBIGL_WITH_OPENGL OR LIBIGL_WITH_OPENGL_GLFW OR LIBIGL_WITH_OPENGL_GLFW_IMGUI) ++ install_dir_files(opengl) ++endif() ++ ++if (LIBIGL_WITH_PNG) ++ install_dir_files(png) ++endif() ++ ++if (LIBIGL_WITH_PREDICATES) ++ install_dir_files(predicates) ++endif() ++ ++if (LIBIGL_WITH_TRIANGLE) ++ install_dir_files(triangle) ++endif() ++ ++if (LIBIGL_WITH_XML) ++ install_dir_files(xml) ++endif() ++ + # Write package configuration file + configure_package_config_file( + ${CMAKE_CURRENT_LIST_DIR}/libigl-config.cmake.in diff --git a/ports/libigl/portfile.cmake b/ports/libigl/portfile.cmake index 063f5a723..aa6d07a1a 100644 --- a/ports/libigl/portfile.cmake +++ b/ports/libigl/portfile.cmake @@ -11,6 +11,7 @@ vcpkg_from_github( PATCHES fix-dependency.patch fix-imgui-set-cond.patch + install-extra-headers.patch ) set(LIBIGL_BUILD_STATIC OFF) |
