early-access version 2853
This commit is contained in:
59
externals/vcpkg/ports/ampl-asl/copyright
vendored
Executable file
59
externals/vcpkg/ports/ampl-asl/copyright
vendored
Executable file
@@ -0,0 +1,59 @@
|
||||
Licenses
|
||||
========
|
||||
|
||||
Copyright (C) 1990 - 2001 Lucent Technologies
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and
|
||||
its documentation for any purpose and without fee is hereby
|
||||
granted, provided that the above copyright notice appear in all
|
||||
copies and that both that the copyright notice and this
|
||||
permission notice and warranty disclaimer appear in supporting
|
||||
documentation, and that the name of Lucent or any of its entities
|
||||
not be used in advertising or publicity pertaining to
|
||||
distribution of the software without specific, written prior
|
||||
permission.
|
||||
|
||||
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
|
||||
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
|
||||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
|
||||
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Copyright (C) 2007 David M. Gay
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
provided that the above copyright notice appear in all copies and that
|
||||
both that the copyright notice and this permission notice and warranty
|
||||
disclaimer appear in supporting documentation.
|
||||
|
||||
The author disclaims all warranties with regard to this software,
|
||||
including all implied warranties of merchantability and fitness.
|
||||
In no event shall the author be liable for any special, indirect or
|
||||
consequential damages or any damages whatsoever resulting from loss of
|
||||
use, data or profits, whether in an action of contract, negligence or
|
||||
other tortious action, arising out of or in connection with the use or
|
||||
performance of this software.
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Copyright (C) 2002 - 2014 AMPL Optimization LLC
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
provided that the above copyright notice appear in all copies and that
|
||||
both that the copyright notice and this permission notice and warranty
|
||||
disclaimer appear in supporting documentation.
|
||||
|
||||
The author and AMPL Optimization LLC disclaim all warranties with
|
||||
regard to this software, including all implied warranties of
|
||||
merchantability and fitness. In no event shall the author be liable
|
||||
for any special, indirect or consequential damages or any damages
|
||||
whatsoever resulting from loss of use, data or profits, whether in an
|
||||
action of contract, negligence or other tortious action, arising out
|
||||
of or in connection with the use or performance of this software.
|
||||
13
externals/vcpkg/ports/ampl-asl/fix-crt-linkage.patch
vendored
Executable file
13
externals/vcpkg/ports/ampl-asl/fix-crt-linkage.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 976af78..35d248d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -256,7 +256,7 @@ macro(createSingleASL name sourcedir sources)
|
||||
endif()
|
||||
if(MSVC)
|
||||
target_compile_options(${name} PRIVATE
|
||||
- /wd4013 /wd4018 /wd4101 /wd4244 /wd4273 /wd4267 /wd4996 /MT$<$<CONFIG:Debug>:d>)
|
||||
+ /wd4013 /wd4018 /wd4101 /wd4244 /wd4273 /wd4267 /wd4996)
|
||||
else()
|
||||
target_compile_options(${name} PRIVATE -Wno-unused-result -Wno-parentheses)
|
||||
endif()
|
||||
12
externals/vcpkg/ports/ampl-asl/install-extra-headers.patch
vendored
Executable file
12
externals/vcpkg/ports/ampl-asl/install-extra-headers.patch
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 35d248d..8a85aa7 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -317,6 +317,7 @@ if(BUILD_CPP)
|
||||
endif()
|
||||
|
||||
install(FILES ${ASL_HEADERS} ${ASL_SOURCE_DIR}/opcode.hd ${ASL_SOURCE_DIR}/r_opn.hd
|
||||
+ ${GENERATED_INCLUDE_DIR}/stdio1.h ${GENERATED_INCLUDE_DIR}/arith.h
|
||||
DESTINATION include/asl COMPONENT asl)
|
||||
install(FILES ${ASL2_HEADERS} ${ASL2_SOURCE_DIR}/opcode.hd ${ASL2_SOURCE_DIR}/r_opn.hd
|
||||
DESTINATION include/asl2 COMPONENT asl)
|
||||
39
externals/vcpkg/ports/ampl-asl/install-targets.patch
vendored
Executable file
39
externals/vcpkg/ports/ampl-asl/install-targets.patch
vendored
Executable file
@@ -0,0 +1,39 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 8a85aa7..c0619bc 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -247,8 +247,8 @@ endif()
|
||||
|
||||
macro(createSingleASL name sourcedir sources)
|
||||
add_library(${name} STATIC ${${sources}} ${GENERATED_INCLUDE_DIR}/arith.h)
|
||||
- target_include_directories(${name} PUBLIC ${GENERATED_INCLUDE_DIR}
|
||||
- ${sourcedir})
|
||||
+ target_include_directories(${name} PUBLIC $<BUILD_INTERFACE:${GENERATED_INCLUDE_DIR}>
|
||||
+ $<BUILD_INTERFACE:${sourcedir}> $<INSTALL_INTERFACE:include>)
|
||||
target_compile_definitions(${name} PRIVATE ${ASL_COMPILE_DEFINITIONS})
|
||||
target_link_libraries(${name} PUBLIC ${CMAKE_DL_LIBS})
|
||||
if(NOT WIN32)
|
||||
@@ -322,14 +322,16 @@ install(FILES ${ASL_HEADERS} ${ASL_SOURCE_DIR}/opcode.hd ${ASL_SOURCE_DIR}/r_opn
|
||||
install(FILES ${ASL2_HEADERS} ${ASL2_SOURCE_DIR}/opcode.hd ${ASL2_SOURCE_DIR}/r_opn.hd
|
||||
DESTINATION include/asl2 COMPONENT asl)
|
||||
|
||||
-install(TARGETS asl asl2 DESTINATION lib COMPONENT asl)
|
||||
+install(TARGETS asl asl2 EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
||||
if(BUILD_MT_LIBS)
|
||||
- install(TARGETS asl-mt asl2-mt DESTINATION lib COMPONENT asl)
|
||||
+ install(TARGETS asl-mt asl2-mt EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
||||
endif()
|
||||
if(MSVC AND BUILD_DYNRT_LIBS)
|
||||
- install(TARGETS asl-dynrt asl2-dynrt DESTINATION lib COMPONENT asl)
|
||||
+ install(TARGETS asl-dynrt asl2-dynrt EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
||||
endif()
|
||||
if(TARGET aslcpp)
|
||||
install(FILES ${ASL_CPP_HEADERS} DESTINATION include/aslcpp COMPONENT asl)
|
||||
- install(TARGETS aslcpp DESTINATION lib COMPONENT asl)
|
||||
-endif()
|
||||
\ No newline at end of file
|
||||
+ install(TARGETS aslcpp EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
||||
+endif()
|
||||
+
|
||||
+install(EXPORT unofficial-asl-config DESTINATION share/unofficial-asl)
|
||||
\ No newline at end of file
|
||||
34
externals/vcpkg/ports/ampl-asl/portfile.cmake
vendored
Executable file
34
externals/vcpkg/ports/ampl-asl/portfile.cmake
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ampl/asl
|
||||
REF 934d34719c8a620fcf16ae5a3c00c326eb22e748
|
||||
SHA512 b6fcb3dcb53a53d975666db1643d7ea518246e8fb6745621ce4b63de4393f7767844e9241baa6fdf1a45c241a9aa0866844c47deec0020313278128cccff6869
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
workaround-msvc-optimizer-ice.patch
|
||||
fix-crt-linkage.patch # CRT linkage uses C/CXX FLAGS in vcpkg
|
||||
install-extra-headers.patch
|
||||
install-targets.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_MCMODELLARGE=OFF
|
||||
-DBUILD_DYNRT_LIBS=OFF # CRT linkage uses C/CXX FLAGS in vcpkg
|
||||
-DBUILD_MT_LIBS=OFF # CRT linkage uses C/CXX FLAGS in vcpkg
|
||||
-DBUILD_CPP=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-asl)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# from ampl-mp license
|
||||
file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
19
externals/vcpkg/ports/ampl-asl/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/ampl-asl/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "ampl-asl",
|
||||
"version-date": "2020-11-11",
|
||||
"port-version": 3,
|
||||
"description": "AMPL Solver Library",
|
||||
"homepage": "https://github.com/ampl/asl",
|
||||
"license": null,
|
||||
"supports": "!uwp & !(osx & arm64)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
60
externals/vcpkg/ports/ampl-asl/workaround-msvc-optimizer-ice.patch
vendored
Executable file
60
externals/vcpkg/ports/ampl-asl/workaround-msvc-optimizer-ice.patch
vendored
Executable file
@@ -0,0 +1,60 @@
|
||||
diff --git a/src/solvers/avltree.c b/src/solvers/avltree.c
|
||||
index 7a9adab..a75da90 100644
|
||||
--- a/src/solvers/avltree.c
|
||||
+++ b/src/solvers/avltree.c
|
||||
@@ -54,6 +54,10 @@ AVL_Tree {
|
||||
void (*Free)(void*);
|
||||
};
|
||||
|
||||
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
||||
+#pragma optimize("", off)
|
||||
+#endif
|
||||
+
|
||||
AVL_Tree*
|
||||
AVL_Tree_alloc2(void *v, AVL_Elcomp cmp, void *(*Malloc)(size_t), void (*Free)(void*))
|
||||
{
|
||||
diff --git a/src/solvers/sphes.c b/src/solvers/sphes.c
|
||||
index a50065f..6e6eedc 100644
|
||||
--- a/src/solvers/sphes.c
|
||||
+++ b/src/solvers/sphes.c
|
||||
@@ -461,6 +461,10 @@ compar(const void *a, const void *b)
|
||||
#undef del_mblk
|
||||
#define del_mblk(b,c) Del_mblk_ASL(a,b,(Char*)(c))
|
||||
|
||||
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
||||
+#pragma optimize("", off)
|
||||
+#endif
|
||||
+
|
||||
static void
|
||||
new_Hesoprod(ASL_pfgh *asl, ograd *L, ograd *R, real coef)
|
||||
{
|
||||
diff --git a/src/solvers2/avltree.c b/src/solvers2/avltree.c
|
||||
index 7a9adab..a75da90 100644
|
||||
--- a/src/solvers2/avltree.c
|
||||
+++ b/src/solvers2/avltree.c
|
||||
@@ -54,6 +54,10 @@ AVL_Tree {
|
||||
void (*Free)(void*);
|
||||
};
|
||||
|
||||
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
||||
+#pragma optimize("", off)
|
||||
+#endif
|
||||
+
|
||||
AVL_Tree*
|
||||
AVL_Tree_alloc2(void *v, AVL_Elcomp cmp, void *(*Malloc)(size_t), void (*Free)(void*))
|
||||
{
|
||||
diff --git a/src/solvers2/sphes.c b/src/solvers2/sphes.c
|
||||
index dd2edff..ebdd3af 100644
|
||||
--- a/src/solvers2/sphes.c
|
||||
+++ b/src/solvers2/sphes.c
|
||||
@@ -855,6 +855,10 @@ compar(const void *a, const void *b)
|
||||
#undef del_mblk
|
||||
#define del_mblk(c) Del_mblk_ASL(a,(Char*)(c))
|
||||
|
||||
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
||||
+#pragma optimize("", off)
|
||||
+#endif
|
||||
+
|
||||
static void
|
||||
new_Hesoprod(EvalWorkspace *ew, int nov, int *ov, real *oc, int nR, int *Rov, real *Roc, real coef)
|
||||
{
|
||||
Reference in New Issue
Block a user