mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 14:29:06 +08:00
[libmesh] (#22775)
- build only opt flavor for release build - build only dbg flavor for debug build - install libmesh examples under tools/libmesh/
This commit is contained in:
parent
a95ee82267
commit
85d85f3873
@ -18,27 +18,23 @@ endif()
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS ${OPTIONS}
|
||||
OPTIONS_DEBUG --with-methods=dbg
|
||||
OPTIONS_RELEASE --with-methods=opt
|
||||
)
|
||||
|
||||
vcpkg_install_make()
|
||||
|
||||
if (EXISTS ${CURRENT_PACKAGES_DIR}/contrib/bin/libtool)
|
||||
file(COPY ${CURRENT_PACKAGES_DIR}/contrib/bin/libtool DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
file(COPY ${CURRENT_PACKAGES_DIR}/contrib/bin/libtool DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/contrib/bin/libtool)
|
||||
endif()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/contrib ${CURRENT_PACKAGES_DIR}/debug/contrib)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/contrib)
|
||||
|
||||
file(GLOB ${CURRENT_PACKAGES_DIR}/bin LIBMESH_TOOLS)
|
||||
foreach (LIBMESH_TOOL ${LIBMESH_TOOLS})
|
||||
file(COPY ${LIBMESH_TOOL} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
file(REMOVE ${LIBMESH_TOOL})
|
||||
endforeach()
|
||||
|
||||
file(GLOB LIBMESH_TOOLS ${CURRENT_PACKAGES_DIR}/examples/*)
|
||||
foreach (LIBMESH_TOOL ${LIBMESH_TOOLS})
|
||||
file(COPY ${LIBMESH_TOOL} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
file(REMOVE ${LIBMESH_TOOL})
|
||||
file(GLOB LIBMESH_EXAMPLES ${CURRENT_PACKAGES_DIR}/examples/*)
|
||||
foreach (LIBMESH_EXAMPLE ${LIBMESH_EXAMPLES})
|
||||
file(COPY ${LIBMESH_EXAMPLE} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
||||
endforeach()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/examples)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
@ -47,7 +43,7 @@ endif()
|
||||
# Remove tools and debug include directories
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/contrib ${CURRENT_PACKAGES_DIR}/debug/etc
|
||||
${CURRENT_PACKAGES_DIR}/debug/examples ${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share
|
||||
${CURRENT_PACKAGES_DIR}/debug/share ${CURRENT_PACKAGES_DIR}/tools/libmesh/debug
|
||||
${CURRENT_PACKAGES_DIR}/Make.common ${CURRENT_PACKAGES_DIR}/debug/Make.common)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"name": "libmesh",
|
||||
"version-string": "1.5.0",
|
||||
"port-version": 2,
|
||||
"port-version": 3,
|
||||
"description": "The libMesh library provides a framework for the numerical simulation of partial differential equations using arbitrary unstructured discretizations on serial and parallel platforms. A major goal of the library is to provide support for adaptive mesh refinement (AMR) computations in parallel while allowing a research scientist to focus on the physics they are modeling.",
|
||||
"homepage": "https://github.com/libMesh/libmesh"
|
||||
"homepage": "https://github.com/libMesh/libmesh",
|
||||
"license": "LGPL-2.1-only"
|
||||
}
|
||||
|
@ -3726,7 +3726,7 @@
|
||||
},
|
||||
"libmesh": {
|
||||
"baseline": "1.5.0",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"libmicrohttpd": {
|
||||
"baseline": "0.9.75",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "8583d8a15a7b694bb7a8346580c5f8a3f7478f28",
|
||||
"version-string": "1.5.0",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "99d2914d8591e790d8d9e16eeb572b2dfa6776d7",
|
||||
"version-string": "1.5.0",
|
||||
|
Loading…
Reference in New Issue
Block a user