mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-16 17:56:32 +08:00
Merge branch 'master' into master
This commit is contained in:
commit
fac96eb344
197
CHANGELOG.md
197
CHANGELOG.md
@ -1,3 +1,200 @@
|
||||
vcpkg (0.0.89)
|
||||
--------------
|
||||
* Update ports:
|
||||
- boost 1.65-1 -> 1.65.1
|
||||
- chmlib 0.40 -> 0.40-1
|
||||
- pybind11 2.1.0-2 -> 2.2.0
|
||||
- sciter 4.0.2-1 -> 4.0.3
|
||||
- sqlite3 3.19.1-2 -> 3.20.1
|
||||
* `vcpkg` now warns if the built version of the `vcpkg.exe` itself is outdated
|
||||
* Update to latest python 3.5
|
||||
* `vcpkg install` improvements:
|
||||
- Add `--keep-going` option to keep going if a package fails to install
|
||||
- Add elapsed time to each invidial package as well as total time
|
||||
- Add a counter to the install (e.g. Starting package 3/12: <name>)
|
||||
* `vcpkg edit` now checks more location for VSCode Insiders
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> WED, 14 Sep 2017 16:00:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.88)
|
||||
--------------
|
||||
* `vcpkg_configure_cmake` has been modified to embed debug symbols within static libraries (using the /Z7 option). Most of the libraries in `vcpkg` had their versions bumped due to this.
|
||||
* `vcpkg_configure_meson` has been modified in the same manner.
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> SAT, 09 Sep 2017 00:30:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.87)
|
||||
--------------
|
||||
* Add ports:
|
||||
- console-bridge 0.3.2-1
|
||||
- leptonica 1.74.4
|
||||
- tesseract 3.05.01
|
||||
- urdfdom 1.0.0-1
|
||||
- urdfdom-headers 1.0.0-1
|
||||
* Update ports:
|
||||
- ace 6.4.4 -> 6.4.5
|
||||
- c-ares 1.12.1-dev-40eb41f-1 -> 1.13.0
|
||||
- glslang 1c573fbcfba6b3d631008b1babc838501ca925d3-2 -> 3a21c880500eac21cdf79bef5b80f970a55ac6af
|
||||
- grpc 1.4.1 -> 1.6.0
|
||||
- libuv 1.14.0 -> 1.14.1
|
||||
- meschach -> 1.2b
|
||||
- openblas v0.2.20 -> v0.2.20-1
|
||||
- openssl 1.0.2l-1 -> 1.0.2l-2
|
||||
- protobuf 3.3.0-3 -> 3.4.0-1
|
||||
- qt5 5.8-4 -> 5.8-5
|
||||
- shaderc 2df47b51d83ad83cbc2e7f8ff2b56776293e8958-1 -> 12fb656ab20ea9aa06e7084a74e5ff832b7ce2da
|
||||
- spirv-tools 1.1-f72189c249ba143c6a89a4cf1e7d53337b2ddd40 -> v2017.1-dev-7e2d26c77b606b21af839b37fd21381c4a669f23
|
||||
- xxhash 0.6.2 -> 0.6.3
|
||||
- zeromq 4.2.2 -> 20170908-18498f620f0f6d4076981ea16eb5760fe4d28dc2
|
||||
* Add new function `vcpkg_from_bitbucket` which the Bitbucket equivalent of `vcpkg_from_github`
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> FRI, 08 Sep 2017 22:00:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.86)
|
||||
--------------
|
||||
* Add ports:
|
||||
- bigint 2010.04.30
|
||||
- butteraugli 2017-09-02-8c60a2aefa19adb
|
||||
- ccd 2.0.0-1 (Renamed from libccd)
|
||||
- fadbad 2.1.0
|
||||
- fcl 0.5.0-1
|
||||
- guetzli 2017-09-02-cb5e4a86f69628
|
||||
- gumbo 0.10.1
|
||||
- libmicrohttpd 0.9.55
|
||||
- libstemmer 2017-9-02
|
||||
- libunibreak 4.0
|
||||
- lodepng 2017-09-01-8a0f16afe74a6a
|
||||
- meschach
|
||||
- nlopt 2.4.2-c43afa08d~vcpkg1
|
||||
- picosha2 2017-09-01-c5ff159b6
|
||||
- piex 2017-09-01-473434f2dd974978b
|
||||
- pthreads 2.9.1
|
||||
- tinythread 1.1
|
||||
- tinyxml 2.6.2-1
|
||||
* Removed ports:
|
||||
- libccd 2.0.0 (Renamed to ccd)
|
||||
* Update ports:
|
||||
- ace 6.4.3 -> 6.4.4
|
||||
- boost 1.65 -> 1.65-1
|
||||
- cairo 1.15.6 -> 1.15.8
|
||||
- gdk-pixbuf 2.36.6 -> 2.36.9
|
||||
- glib 2.52.2 -> 2.52.3
|
||||
- gtk 3.22.15 -> 3.22.19
|
||||
- jxrlib 1.1-2 -> 1.1-3
|
||||
- paho-mqtt Version 1.1.0 (Paho 1.2) -> 1.2.0
|
||||
- pango 1.40.6 -> 1.40.11
|
||||
- shaderc 2df47b51d83ad83cbc2e7f8ff2b56776293e8958 -> 2df47b51d83ad83cbc2e7f8ff2b56776293e8958-1
|
||||
* Fix warnings in bootstrap-vcpkg.ps1
|
||||
* Fix codepage related issues with ninja/cmake
|
||||
* Improve handling for non-ascii environments
|
||||
* Configurations names are now more tolerant:
|
||||
- If a configuration name is prefixed with "Release", then it is compatible with "Release"
|
||||
- If a configuration name is prefixed with "Debug", then it is compatible with "Debug"
|
||||
* `vcpkg edit`: Improve detection of VSCode and add better messages when no path is found
|
||||
* Fixes and improvements in the `vcpkg` tool itself
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> MON, 04 Sep 2017 02:00:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.85)
|
||||
--------------
|
||||
* Add ports:
|
||||
- ccfits 2.5
|
||||
- highfive 1.3
|
||||
- lzfse 1.0
|
||||
- pangolin 0.5
|
||||
- rhash 1.3.5
|
||||
- speexdsp 1.2rc3-1
|
||||
- unrar 5.5.8
|
||||
* Update ports:
|
||||
- assimp 4.0.0 -> 4.0.0-1
|
||||
- catch 1.9.7 -> 1.10.0
|
||||
- ctemplate 2017-06-23-44b7c5b918a08ad561c63e9d28beecb40c10ebca -> 2017-06-23-44b7c5-2
|
||||
- curl 7.55.0 -> 7.55.1
|
||||
- ecm 5.32.0 -> 5.37.0
|
||||
- expat 2.1.1-1 -> 2.2.4-1
|
||||
- ffmpeg 3.2.4-3 -> 3.3.3
|
||||
- gl2ps OpenGL to PostScript Printing Library -> 1.4.0
|
||||
- jsoncpp 1.7.7 -> 1.8.1
|
||||
- libp7-baical 4.1 -> 4.4-1
|
||||
- libpng 1.6.31 -> 1.6.32
|
||||
- libraw 0.18.2-2 -> 0.18.2-3
|
||||
- libsigcpp 2.10 -> 2.99
|
||||
- snappy 1.1.6-be6dc3d -> 1.1.7
|
||||
* `vcpkg edit`: Add new option `--builtrees`; opens editor in buildtrees directory for examining build issues
|
||||
* Improve Windows SDK support (contract version detection)
|
||||
* Improve handling for non-ascii environments
|
||||
* Fixes and improvements in the `vcpkg` tool itself
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> SUN, 27 Aug 2017 22:00:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.84)
|
||||
--------------
|
||||
* Add ports:
|
||||
- cfitsio 3.410
|
||||
- chmlib 0.40
|
||||
- gl2ps OpenGL to PostScript Printing Library
|
||||
- libharu 2017-08-15-d84867ebf9f-1
|
||||
- mpfr 3.1.5
|
||||
- sophus 1.0.0
|
||||
* Update ports:
|
||||
- allegro5 5.2.1.0 -> 5.2.2.0
|
||||
- blaze 3.1 -> 3.2
|
||||
- boost 1.64-5 -> 1.65
|
||||
- curl 7.51.0-3 -> 7.55.0
|
||||
- flann 1.9.1-4 -> 1.9.1-5
|
||||
- gdal 1.11.3-4 -> 1.11.3-5
|
||||
- glew 2.0.0-2 -> 2.1.0
|
||||
- lcms 2.8-1 -> 2.8-2
|
||||
- libogg 2017-07-27-cab46b19847 -> 1.3.2-cab46b1-2
|
||||
- libuv 1.13.1 -> 1.14.0
|
||||
- lz4 1.7.5 -> 1.8.0
|
||||
- pcre2 10.23 -> 10.30
|
||||
- spdlog 0.13.0 -> 0.14.0
|
||||
- zstd 1.3.0 -> 1.3.1
|
||||
* Bump required version & auto-downloaded version of `git` to 2.14.1 (due to a security vulnerability)
|
||||
* Show more information when there are issues acquiring `vcpkg` tool dependencies (`git`, `cmake`, `nuget`)
|
||||
* Remove download prompts for cmake/git. The prompts were causing a lot of issues for users and especially CI builds
|
||||
* `vcpkg edit`: Fix detection of 64-bit VSCode
|
||||
* Fixes and improvements in the `vcpkg` tool itself
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> TUE, 22 Aug 2017 13:00:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.83)
|
||||
--------------
|
||||
* Add ports:
|
||||
- fuzzylite 6.0
|
||||
- jemalloc 4.3.1-1
|
||||
- libkml 1.3.0
|
||||
- pcl 1.8.1
|
||||
- plog 1.1.3
|
||||
* Update ports:
|
||||
- catch 1.9.6 -> 1.9.7
|
||||
- ceres 1.12.0-4 -> 1.13.0
|
||||
- cpp-redis 3.5.2 -> 3.5.2-1
|
||||
- gdal 1.11.3-3 -> 1.11.3-4
|
||||
- graphicsmagick 1.3.26 -> 1.3.26-1
|
||||
- hypre 2.11.1 -> 2.11.2
|
||||
- libtheora 1.1.1 -> 1.2.0alpha1-20170719~vcpkg1
|
||||
- minizip 1.2.11 -> 1.2.11-1
|
||||
- openblas v0.2.19-2 -> v0.2.20
|
||||
- openjpeg 2.1.2-2 -> 2.2.0
|
||||
- physfs 2.0.3 -> 2.0.3-1
|
||||
- stb 1.0 -> 20170724-9d9f75e
|
||||
- uwebsockets 0.14.3 -> 0.14.4
|
||||
- vtk 7.1.1-1 -> 8.0.0-1
|
||||
- yaml-cpp 0.5.4 candidate -> 0.5.4-rc-1
|
||||
* Bump required version & auto-downloaded version of `cmake` to 3.9.1 (was 3.9.0)
|
||||
* Fixes and improvements in the `vcpkg` tool itself
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> FRI, 11 Aug 2017 12:00:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.82)
|
||||
--------------
|
||||
* Add ports:
|
||||
|
@ -10,7 +10,7 @@ Prerequisites:
|
||||
- Windows 10, 8.1, or 7
|
||||
- Visual Studio 2017 or Visual Studio 2015 Update 3
|
||||
- Git
|
||||
- *Optional: CMake 3.9.0*
|
||||
- *Optional: CMake 3.9.1*
|
||||
|
||||
Clone this repository, then run
|
||||
```
|
||||
|
@ -46,6 +46,32 @@ Yes. In the current preview, there is not yet a standardized global way to chang
|
||||
|
||||
By saving the changes to the portfile (and checking them in), you'll get the same results even if you're rebuilding from scratch in the future and forgot what exact settings you used.
|
||||
|
||||
## Can I get Vcpkg integration for custom configurations?
|
||||
|
||||
Yes. While Vcpkg will only produce the standard "Release" and "Debug" configurations when building a library, you can get integration support for your projects' custom configurations, in addition to your project's standard configurations.
|
||||
|
||||
First of all, Vcpkg will automatically assume any custom configuration starting with "Release" (resp. "Debug") as a configuration that is compatible with the standard "Release" (resp. "Debug") configuration and will act accordingly.
|
||||
|
||||
For other configurations, you only need to override the MSBuild `$(VcpkgConfiguration)` macro in your project file (.vcxproj) to declare the compatibility between your configuration, and the target standard configuration.
|
||||
|
||||
For example, you can add support for your "MyRelease" configuration by adding in your project file:
|
||||
```
|
||||
<PropertyGroup>
|
||||
<VcpkgConfiguration Condition="'$(Configuration)' == 'MyRelease'">Release</VcpkgConfiguration>
|
||||
</PropertyGroup>
|
||||
```
|
||||
Of course, this will only produce viable binaries if your custom configuration is compatible with the target configuration (e.g. they should both link with the same runtime library).
|
||||
|
||||
## I can't use user-wide integration. Can I use a per-project integration?
|
||||
|
||||
Yes. A NuGet package suitable for per-project use can be generated via either the `vcpkg integrate project` command (lightweight linking) or the `vcpkg export --nuget` command (shrinkwrapped).
|
||||
|
||||
A lower level mechanism to achieve the same as the `vcpkg integrate project` NuGet package is via the `<vcpkg_root>\scripts\buildsystems\msbuild\vcpkg.targets` file. All you need is to import it in your .vcxproj file, replacing `<vcpkg_root>` with the path where you installed vcpkg:
|
||||
|
||||
```
|
||||
<Import Project="<vcpkg_root>\scripts\buildsystems\msbuild\vcpkg.targets" />
|
||||
```
|
||||
|
||||
## How is CMake used internally by Vcpkg?
|
||||
Vcpkg uses CMake internally as a build scripting language. This is because CMake is already an extremely common build system for cross-platform open source libraries and is becoming very popular for C++ projects in general. It is easy to acquire on Windows, does not require system-wide installation, and legible for unfamiliar users.
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: ace
|
||||
Version: 6.4.3
|
||||
Version: 6.4.5
|
||||
Description: The ADAPTIVE Communication Environment
|
||||
|
@ -5,9 +5,9 @@ endif()
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/ACE_wrappers/ace)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://download.dre.vanderbilt.edu/previous_versions/ACE-6.4.3.zip"
|
||||
FILENAME "ACE-6.4.3.zip"
|
||||
SHA512 1d700733ec617559f338e908b2343c66c0c856bfac7bd2230f18290970fe3bc25a394839a9d66fa74f6edd239a70f9d6cf5746585ed796fbe9f8aeca90eab84e
|
||||
URLS "http://download.dre.vanderbilt.edu/previous_versions/ACE-6.4.5.zip"
|
||||
FILENAME "ACE-6.4.5.zip"
|
||||
SHA512 cce1681fc35efdefb8b88a49b743ffcaecfe8f146dcf6c78393aed29c8853e77b062bced4a2fb457eba74bf5834511611cc40da2320c6094793cb8c2b6df3d2a
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: alembic
|
||||
Version: 1.7.1-3
|
||||
Version: 1.7.1-4
|
||||
Build-Depends: ilmbase, hdf5
|
||||
Description: Alembic is an open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications. http://alembic.io/
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: allegro5
|
||||
Version: 5.2.1.0
|
||||
Version: 5.2.2.0-1
|
||||
Description: Allegro is a cross-platform library mainly aimed at video game and multimedia programming. It handles common, low-level tasks such as creating windows, accepting user input, loading data, drawing images, playing sounds, etc. and generally abstracting away the underlying platform. However, Allegro is not a game engine: you are free to design and structure your program as you like.
|
||||
Build-Depends: opengl, zlib, freetype, libogg, libvorbis, libflac, openal-soft, libpng, bzip2, physfs, libtheora
|
||||
Build-Depends: opengl, zlib, freetype, libogg, libvorbis, libflac, openal-soft, libpng, bzip2, physfs, libtheora, opus, opusfile
|
||||
|
@ -1,3 +1,24 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 72348fe..c6fbecb 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1010,14 +1010,9 @@ else()
|
||||
set(PKG_CONFIG_FILES allegro ${ADDON_PKG_CONFIG_FILES})
|
||||
endif(WANT_MONOLITH)
|
||||
|
||||
-# Install pkg-config files on Unix, and when cross-compiling on Unix.
|
||||
+# Install pkg-config files
|
||||
|
||||
-if(UNIX AND NOT WANT_FRAMEWORKS AND NOT IPHONE)
|
||||
- set(INSTALL_PKG_CONFIG_FILES true)
|
||||
-endif()
|
||||
-if(CMAKE_CROSSCOMPILING AND CMAKE_HOST_UNIX)
|
||||
- set(INSTALL_PKG_CONFIG_FILES true)
|
||||
-endif()
|
||||
+set(INSTALL_PKG_CONFIG_FILES true)
|
||||
|
||||
if(INSTALL_PKG_CONFIG_FILES)
|
||||
append_lib_type_suffix(lib_type)
|
||||
diff --git a/cmake/Common.cmake b/cmake/Common.cmake
|
||||
index 782196f..de29535 100644
|
||||
--- a/cmake/Common.cmake
|
||||
|
@ -11,19 +11,19 @@
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/allegro5-7d8892a9278c57f2d8bb1e555f9ec59cf9ed4f73)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/allegro5-e8b209bc20a60224859eb8a0cae082bd20d32ed1)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH ${SOURCE_PATH}
|
||||
REPO liballeg/allegro5
|
||||
REF 7d8892a9278c57f2d8bb1e555f9ec59cf9ed4f73
|
||||
SHA512 b1531fa2f22023ecd4e053d03d1c54bf0b94aa3af004a3a06245c4d8278fea64e9d354467873ebd665301903d954795fed88e2467c88441f39c273e7e0d87d6e
|
||||
REF e8b209bc20a60224859eb8a0cae082bd20d32ed1
|
||||
SHA512 50b30d4b539bd4a2488d2b33e9fbfc6fdfd340039d9086993a5719bab3cb020ee6fe7f6d3578755a52c8aab9816d25cd74710ce93b0b374a2f97620b6138419d
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
set(ALLEGRO_USE_STATIC -DSHARED=ON)
|
||||
set(ALLEGRO_USE_STATIC ON)
|
||||
else()
|
||||
set(ALLEGRO_USE_STATIC -DSHARED=OFF)
|
||||
set(ALLEGRO_USE_STATIC OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_apply_patches(
|
||||
@ -39,7 +39,7 @@ vcpkg_configure_cmake(
|
||||
-DWANT_DOCS=OFF
|
||||
-DALLEGRO_SDL=OFF
|
||||
-DWANT_DEMO=OFF
|
||||
${ALLEGRO_USE_STATIC}
|
||||
-DSHARED=${ALLEGRO_USE_STATIC}
|
||||
-DWANT_EXAMPLES=OFF
|
||||
-DWANT_CURL_EXAMPLE=OFF
|
||||
-DWANT_TESTS=OFF
|
||||
@ -63,7 +63,7 @@ vcpkg_configure_cmake(
|
||||
-DWANT_OPENAL=ON
|
||||
-DWANT_OPENGL=ON
|
||||
-DWANT_OPENSL=OFF # Not yet available on vcpkg
|
||||
-DWANT_OPUS=OFF # opus is available on vcpkg, but opusfile isn't
|
||||
-DWANT_OPUS=ON
|
||||
-DWANT_PHYSFS=ON
|
||||
-DWANT_POPUP_EXAMPLES=OFF
|
||||
-DWANT_PRIMITIVES=ON
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: anax
|
||||
Version: 2.1.0-1
|
||||
Version: 2.1.0-2
|
||||
Description: An open source C++ entity system. <https://github.com/miguelmartin75/anax>
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: angle
|
||||
Version: 2017-06-14-8d471f-1
|
||||
Version: 2017-06-14-8d471f-2
|
||||
Description: A conformant OpenGL ES implementation for Windows, Mac and Linux.
|
||||
The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0 and 3.0 to desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Support for translation from OpenGL ES to Vulkan is underway, and future plans include compute shader support (ES 3.1) and MacOS support.
|
||||
|
@ -13,7 +13,7 @@ vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/angle
|
||||
REF 8d471f907d8d4ec1d46bc9366493bd76c11c1870
|
||||
SHA512 b9235d2a98330bc8533c3fe871129e7235c680420eac16610eae4ca7224c5284313ab6377f30ddfb8a2da39b69f3ef0d16023fe1e7cec3fc2198f4eb4bdccb26
|
||||
SHA512 b4670caeeaa5d662bc82702eb5f620123812ea6b5d82f57a65df54ae25cdaa5c9ff0fdb592448b07569d9c09af3d3c51b0b2f135c5800d1845b425009656bf18
|
||||
HEAD_REF master
|
||||
)
|
||||
vcpkg_apply_patches(
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: apr-util
|
||||
Version: 1.6.0
|
||||
Version: 1.6.0-1
|
||||
Description: Apache Portable Runtime (APR) project mission is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementation
|
||||
Build-Depends: expat, apr, openssl
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: apr
|
||||
Version: 1.6.2
|
||||
Version: 1.6.2-1
|
||||
Description: The Apache Portable Runtime (APR) is a C library that forms a system portability layer that covers many operating systems.
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: arrow
|
||||
Version: apache-arrow-0.4.0-1
|
||||
Build-Depends: boost
|
||||
Version: 0.6.0
|
||||
Build-Depends: boost, flatbuffers, rapidjson, zlib, lz4, brotli, zstd, snappy, gflags
|
||||
Description: Apache Arrow is a columnar in-memory analytics layer designed to accelerate big data. It houses a set of canonical in-memory representations of flat and hierarchical data along with multiple language-bindings for structure manipulation. It also provides IPC and common algorithm implementations.
|
||||
|
130
ports/arrow/all.patch
Normal file
130
ports/arrow/all.patch
Normal file
@ -0,0 +1,130 @@
|
||||
diff --git a/cmake_modules/FindBrotli.cmake b/cmake_modules/FindBrotli.cmake
|
||||
index f2e714c..2e475dc 100644
|
||||
--- a/cmake_modules/FindBrotli.cmake
|
||||
+++ b/cmake_modules/FindBrotli.cmake
|
||||
@@ -65,16 +65,13 @@ if (BROTLI_INCLUDE_DIR AND (PARQUET_MINIMAL_DEPENDENCY OR BROTLI_LIBRARIES))
|
||||
set(BROTLI_FOUND TRUE)
|
||||
get_filename_component( BROTLI_LIBS ${BROTLI_LIBRARY_ENC} PATH )
|
||||
set(BROTLI_LIB_NAME brotli)
|
||||
- if (MSVC AND NOT BROTLI_MSVC_STATIC_LIB_SUFFIX)
|
||||
- set(BROTLI_MSVC_STATIC_LIB_SUFFIX _static)
|
||||
- endif()
|
||||
set(BROTLI_STATIC_LIB
|
||||
- ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}enc${BROTLI_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||
- ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}dec${BROTLI_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||
- ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}common${BROTLI_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
- set(BROTLI_STATIC_LIBRARY_ENC ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}enc${BROTLI_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
- set(BROTLI_STATIC_LIBRARY_DEC ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}dec${BROTLI_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
- set(BROTLI_STATIC_LIBRARY_COMMON ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}common${BROTLI_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
+ ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}enc${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||
+ ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}dec${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||
+ ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}common${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
+ set(BROTLI_STATIC_LIBRARY_ENC ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}enc${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
+ set(BROTLI_STATIC_LIBRARY_DEC ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}dec${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
+ set(BROTLI_STATIC_LIBRARY_COMMON ${BROTLI_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${BROTLI_LIB_NAME}common${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
set(BROTLI_SHARED_LIB
|
||||
${BROTLI_LIBS}/${CMAKE_SHARED_LIBRARY_PREFIX}${BROTLI_LIB_NAME}enc${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||
${BROTLI_LIBS}/${CMAKE_SHARED_LIBRARY_PREFIX}${BROTLI_LIB_NAME}dec${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||
diff --git a/cmake_modules/FindFlatbuffers.cmake b/cmake_modules/FindFlatbuffers.cmake
|
||||
index 804f479..ff9bde1 100644
|
||||
--- a/cmake_modules/FindFlatbuffers.cmake
|
||||
+++ b/cmake_modules/FindFlatbuffers.cmake
|
||||
@@ -53,6 +53,7 @@ endif ()
|
||||
|
||||
find_program(FLATBUFFERS_COMPILER flatc
|
||||
"${FLATBUFFERS_HOME}/bin"
|
||||
+ "${FLATBUFFERS_HOME}/tools"
|
||||
/usr/local/bin
|
||||
/usr/bin
|
||||
NO_DEFAULT_PATH
|
||||
diff --git a/cmake_modules/FindLz4.cmake b/cmake_modules/FindLz4.cmake
|
||||
index 07707cf..9cbf67d 100644
|
||||
--- a/cmake_modules/FindLz4.cmake
|
||||
+++ b/cmake_modules/FindLz4.cmake
|
||||
@@ -29,15 +29,7 @@ elseif ( Lz4_HOME )
|
||||
list( APPEND _lz4_roots ${Lz4_HOME} )
|
||||
endif()
|
||||
|
||||
-if (MSVC AND NOT LZ4_MSVC_STATIC_LIB_SUFFIX)
|
||||
- set(LZ4_MSVC_STATIC_LIB_SUFFIX "_static")
|
||||
-endif()
|
||||
-
|
||||
-set(LZ4_STATIC_LIB_SUFFIX
|
||||
- "${LZ4_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
||||
-
|
||||
-set(LZ4_STATIC_LIB_NAME
|
||||
- ${CMAKE_STATIC_LIBRARY_PREFIX}lz4${LZ4_STATIC_LIB_SUFFIX})
|
||||
+set(LZ4_STATIC_LIB_NAME lz4)
|
||||
|
||||
find_path(LZ4_INCLUDE_DIR NAMES lz4.h
|
||||
PATHS ${_lz4_roots}
|
||||
diff --git a/cmake_modules/FindSnappy.cmake b/cmake_modules/FindSnappy.cmake
|
||||
index 867963c..8a432db 100644
|
||||
--- a/cmake_modules/FindSnappy.cmake
|
||||
+++ b/cmake_modules/FindSnappy.cmake
|
||||
@@ -55,7 +55,7 @@ if (SNAPPY_INCLUDE_DIR AND (PARQUET_MINIMAL_DEPENDENCY OR SNAPPY_LIBRARIES))
|
||||
set(SNAPPY_HEADER_NAME snappy.h)
|
||||
set(SNAPPY_HEADER ${SNAPPY_INCLUDE_DIR}/${SNAPPY_HEADER_NAME})
|
||||
set(SNAPPY_LIB_NAME snappy)
|
||||
- set(SNAPPY_STATIC_LIB ${SNAPPY_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${SNAPPY_LIB_NAME}${SNAPPY_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
+ set(SNAPPY_STATIC_LIB ${SNAPPY_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${SNAPPY_LIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
set(SNAPPY_SHARED_LIB ${SNAPPY_LIBS}/${CMAKE_SHARED_LIBRARY_PREFIX}${SNAPPY_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
|
||||
else ()
|
||||
set(SNAPPY_FOUND FALSE)
|
||||
diff --git a/cmake_modules/FindZLIB.cmake b/cmake_modules/FindZLIB.cmake
|
||||
index 78b84f2..eb09001 100644
|
||||
--- a/cmake_modules/FindZLIB.cmake
|
||||
+++ b/cmake_modules/FindZLIB.cmake
|
||||
@@ -62,11 +62,11 @@ if (ZLIB_INCLUDE_DIR AND (PARQUET_MINIMAL_DEPENDENCY OR ZLIB_LIBRARIES))
|
||||
set(ZLIB_LIB_NAME z)
|
||||
if (MSVC)
|
||||
if (NOT ZLIB_MSVC_STATIC_LIB_SUFFIX)
|
||||
- set(ZLIB_MSVC_STATIC_LIB_SUFFIX libstatic)
|
||||
+ set(ZLIB_MSVC_STATIC_LIB_SUFFIX lib)
|
||||
endif()
|
||||
set(ZLIB_MSVC_SHARED_LIB_SUFFIX lib)
|
||||
endif()
|
||||
- set(ZLIB_STATIC_LIB ${ZLIB_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${ZLIB_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
+ set(ZLIB_STATIC_LIB ${ZLIB_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${ZLIB_MSVC_SHARED_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
set(ZLIB_SHARED_LIB ${ZLIB_LIBS}/${CMAKE_SHARED_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${ZLIB_MSVC_SHARED_LIB_SUFFIX}${CMAKE_SHARED_LIBRARY_SUFFIX})
|
||||
else ()
|
||||
set(ZLIB_FOUND FALSE)
|
||||
diff --git a/cmake_modules/FindZSTD.cmake b/cmake_modules/FindZSTD.cmake
|
||||
index 02a0c39..73c61b5 100644
|
||||
--- a/cmake_modules/FindZSTD.cmake
|
||||
+++ b/cmake_modules/FindZSTD.cmake
|
||||
@@ -29,21 +29,11 @@ elseif ( ZStd_HOME )
|
||||
list( APPEND _zstd_roots ${ZStd_HOME} )
|
||||
endif()
|
||||
|
||||
-if (MSVC AND NOT ZSTD_MSVC_STATIC_LIB_SUFFIX)
|
||||
- set(ZSTD_MSVC_STATIC_LIB_SUFFIX "_static")
|
||||
-endif()
|
||||
-
|
||||
-set(ZSTD_STATIC_LIB_SUFFIX
|
||||
- "${ZSTD_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
||||
-
|
||||
-set(ZSTD_STATIC_LIB_NAME
|
||||
- ${CMAKE_STATIC_LIBRARY_PREFIX}zstd${ZSTD_STATIC_LIB_SUFFIX})
|
||||
-
|
||||
find_path(ZSTD_INCLUDE_DIR NAMES zstd.h
|
||||
PATHS ${_zstd_roots}
|
||||
NO_DEFAULT_PATH
|
||||
PATH_SUFFIXES "include" )
|
||||
-find_library(ZSTD_STATIC_LIB NAMES ${ZSTD_STATIC_LIB_NAME} lib${ZSTD_STATIC_LIB_NAME}
|
||||
+find_library(ZSTD_STATIC_LIB NAMES libzstd libzstd_static zstd zstd_static
|
||||
PATHS ${_zstd_roots}
|
||||
NO_DEFAULT_PATH
|
||||
PATH_SUFFIXES "lib" )
|
||||
diff --git a/cmake_modules/ThirdpartyToolchain.cmake b/cmake_modules/ThirdpartyToolchain.cmake
|
||||
index a888e92..0fe3629 100644
|
||||
--- a/cmake_modules/ThirdpartyToolchain.cmake
|
||||
+++ b/cmake_modules/ThirdpartyToolchain.cmake
|
||||
@@ -119,6 +119,7 @@ endif()
|
||||
set(Boost_DEBUG TRUE)
|
||||
set(Boost_USE_MULTITHREADED ON)
|
||||
set(Boost_ADDITIONAL_VERSIONS
|
||||
+ "1.65.0" "1.65"
|
||||
"1.64.0" "1.64"
|
||||
"1.63.0" "1.63"
|
||||
"1.62.0" "1.61"
|
@ -7,17 +7,39 @@ endif()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO apache/arrow
|
||||
REF apache-arrow-0.4.0
|
||||
SHA512 cdd67a884528b088688d88c0627b9c13077215e234dd0772797f0bf63319ffc18533276d52110a37a0938d32f006023b74dce93e71d34b1e0003a86761cea6ee
|
||||
REF apache-arrow-0.6.0
|
||||
SHA512 c0e89b959dfe75e895a3427edd4eee663be5ee542e9ea13f7311d0775fe7a00188eafa07ba524e3d3c0a71fc8e11213f10fe4ebfdf451754816062249ffa7f3d
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
|
||||
set(CPP_SOURCE_PATH "${SOURCE_PATH}/cpp")
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CPP_SOURCE_PATH}
|
||||
PATCHES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/all.patch"
|
||||
)
|
||||
|
||||
|
||||
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "dynamic" ARROW_BUILD_SHARED)
|
||||
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "static" ARROW_BUILD_STATIC)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${CPP_SOURCE_PATH}
|
||||
OPTIONS -DARROW_BUILD_TESTS=off
|
||||
-DRAPIDJSON_HOME=${CURRENT_INSTALLED_DIR}
|
||||
-DFLATBUFFERS_HOME=${CURRENT_INSTALLED_DIR}
|
||||
-DARROW_ZLIB_VENDORED=ON
|
||||
-DBROTLI_HOME=${CURRENT_INSTALLED_DIR}
|
||||
-DLZ4_HOME=${CURRENT_INSTALLED_DIR}
|
||||
-DZSTD_HOME=${CURRENT_INSTALLED_DIR}
|
||||
-DSNAPPY_HOME=${CURRENT_INSTALLED_DIR}
|
||||
-DBOOST_ROOT=${CURRENT_INSTALLED_DIR}
|
||||
-DGFLAGS_HOME=${CURRENT_INSTALLED_DIR}
|
||||
-DZLIB_HOME=${CURRENT_INSTALLED_DIR}
|
||||
-DARROW_BUILD_STATIC=${ARROW_BUILD_STATIC}
|
||||
-DARROW_BUILD_SHARED=${ARROW_BUILD_SHARED}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: assimp
|
||||
Version: 4.0.0
|
||||
Version: 4.0.0-2
|
||||
Description: The Open Asset import library
|
||||
Build-Depends: zlib
|
||||
|
15
ports/assimp/const-compare-worditerator.patch
Normal file
15
ports/assimp/const-compare-worditerator.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/code/X3DImporter.cpp b/code/X3DImporter.cpp
|
||||
index 1117735..669f46f 100644
|
||||
--- a/code/X3DImporter.cpp
|
||||
+++ b/code/X3DImporter.cpp
|
||||
@@ -95,8 +95,8 @@ struct WordIterator: public std::iterator<std::input_iterator_tag, const char*>
|
||||
end_ = other.end_;
|
||||
return *this;
|
||||
}
|
||||
- bool operator==(WordIterator &other) const { return start_ == other.start_; }
|
||||
- bool operator!=(WordIterator &other) const { return start_ != other.start_; }
|
||||
+ bool operator==(const WordIterator &other) const { return start_ == other.start_; }
|
||||
+ bool operator!=(const WordIterator &other) const { return start_ != other.start_; }
|
||||
WordIterator &operator++() {
|
||||
start_ += strcspn(start_, whitespace);
|
||||
start_ += strspn(start_, whitespace);
|
@ -8,6 +8,11 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/const-compare-worditerator.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DASSIMP_BUILD_TESTS=False
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: atk
|
||||
Version: 2.24.0
|
||||
Version: 2.24.0-1
|
||||
Description: GNOME Accessibility Toolkit
|
||||
Build-Depends: glib, gettext
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: aubio
|
||||
Version: 0.46~alpha-2
|
||||
Version: 0.46~alpha-3
|
||||
Description: Aubio is a tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.
|
||||
Build-Depends: ffmpeg, libsndfile, libogg, libflac, libvorbis
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: aws-sdk-cpp
|
||||
Version: 1.0.61
|
||||
Version: 1.0.61-1
|
||||
Description: AWS SDK for C++
|
||||
|
@ -1,5 +1,5 @@
|
||||
Source: azure-storage-cpp
|
||||
Version: 3.0.0-2
|
||||
Version: 3.0.0-3
|
||||
Build-Depends: cpprestsdk, atlmfc
|
||||
Description: Microsoft Azure Storage Client SDK for C++
|
||||
A client library for working with Microsoft Azure storage services including blobs, files, tables, and queues. This client library enables working with the Microsoft Azure storage services which include the blob service for storing binary and text data, the file service for storing binary and text data, the table service for storing structured non-relational data, and the queue service for storing messages that may be accessed by a client. Microsoft Azure Storage team's blog - http://blogs.msdn.com/b/windowsazurestorage/
|
||||
A client library for working with Microsoft Azure storage services including blobs, files, tables, and queues. This client library enables working with the Microsoft Azure storage services which include the blob service for storing binary and text data, the file service for storing binary and text data, the table service for storing structured non-relational data, and the queue service for storing messages that may be accessed by a client. Microsoft Azure Storage team's blog - http://blogs.msdn.com/b/windowsazurestorage/
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: benchmark
|
||||
Version: 1.1.0
|
||||
Description: A library to support the benchmarking of functions, similar to unit-tests.
|
||||
Version: 1.2.0
|
||||
Description: A library to support the benchmarking of functions, similar to unit-tests.
|
||||
|
@ -1,27 +0,0 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 4038875..94d2aea 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -28,17 +28,20 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
endif()
|
||||
|
||||
# Expose public API
|
||||
-target_include_directories(benchmark PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
||||
+target_include_directories(benchmark PRIVATE ${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
# Install target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
|
||||
install(
|
||||
TARGETS benchmark
|
||||
+ EXPORT benchmarkTargets
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
- COMPONENT library)
|
||||
+ INCLUDES DESTINATION include)
|
||||
|
||||
install(
|
||||
DIRECTORY "${PROJECT_SOURCE_DIR}/include/benchmark"
|
||||
DESTINATION include
|
||||
FILES_MATCHING PATTERN "*.*h")
|
||||
+
|
||||
+install(EXPORT benchmarkTargets NAMESPACE benchmark:: DESTINATION share/benchmark)
|
@ -12,30 +12,38 @@ include(vcpkg_common_functions)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/benchmark
|
||||
REF v1.1.0
|
||||
SHA512 533061531e6a37723a626addc9e779018c4c2cfc8634ae45860eec0d3800103b5b562f865ac1dc0c8dbe045579b81e59de887e1c48318cebf160f03c18321831
|
||||
REF v1.2.0
|
||||
SHA512 859063669fd84e847f04624013f0b2b734d75d90cada247682eaf345b86c88a9bc2320250e128f2361e37f402b3fb56a18c493ec6038973744a005a452d693ba
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_download_distfile(PATCH
|
||||
URLS "https://github.com/efcs/benchmark/commit/536b0b82b8ec12fc7e17e6d243633618f294a739.diff"
|
||||
FILENAME google-benchmark-1.2.0-536b0b82.patch
|
||||
SHA512 ed42cc0014741c8039c0fca5b4317b2ed09d06a25c91f49a48be6dce921e39469b002c088794c1ea73dc759166e20cb685b47f809ba28dddd95b5f3263be03cd
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/fix-cmakelists.patch"
|
||||
PATCHES
|
||||
"${PATCH}"
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBENCHMARK_ENABLE_TESTING=OFF
|
||||
-DBENCHMARK_ENABLE_TESTING=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/benchmark)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/benchmark)
|
||||
|
40
ports/bigint/CMakeLists.txt
Normal file
40
ports/bigint/CMakeLists.txt
Normal file
@ -0,0 +1,40 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
project(bigint)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
include_directories(".")
|
||||
|
||||
set(
|
||||
bigint_srcs
|
||||
BigUnsigned.cc
|
||||
BigInteger.cc
|
||||
BigIntegerAlgorithms.cc
|
||||
BigUnsignedInABase.cc
|
||||
BigIntegerUtils.cc
|
||||
)
|
||||
|
||||
set(
|
||||
bigint_hh
|
||||
NumberlikeArray.hh
|
||||
BigUnsigned.hh
|
||||
BigInteger.hh
|
||||
BigIntegerAlgorithms.hh
|
||||
BigUnsignedInABase.hh
|
||||
BigIntegerLibrary.hh
|
||||
)
|
||||
|
||||
add_library(bigint ${bigint_srcs})
|
||||
|
||||
install(
|
||||
TARGETS bigint
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES ${bigint_hh} DESTINATION include/bigint)
|
||||
endif()
|
3
ports/bigint/CONTROL
Normal file
3
ports/bigint/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: bigint
|
||||
Version: 2010.04.30-1
|
||||
Description: C++ Big Integer Library
|
27
ports/bigint/portfile.cmake
Normal file
27
ports/bigint/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(WARNING "Dynamic not supported building static")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/bigint-2010.04.30)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://mattmccutchen.net/bigint/bigint-2010.04.30.tar.bz2"
|
||||
FILENAME "bigint-2010.04.30.tar.bz2"
|
||||
SHA512 bb64380e51991f97a2489c04801ab4372f795b5e23870ad12d71087f1a2afba9b32f74dcdbdcb5228ebf0dd74a37185285bac7653dd3c62d6118d63c298689af
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/bigint RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: blaze
|
||||
Version: 3.1
|
||||
Version: 3.2
|
||||
Description: Blaze is an open-source, high-performance C++ math library for dense and sparse arithmetic.
|
||||
|
@ -1,13 +1,13 @@
|
||||
#header-only library
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/blaze-3.1)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://bitbucket.org/blaze-lib/blaze/downloads/blaze-3.1.tar.gz"
|
||||
FILENAME "blaze-3.1.tar.gz"
|
||||
SHA512 fe03a7615d4105d6a869cfd69b3db3165b838eff53cdff7adbbd5ae9d753aa009bbab50925463c6704f9530a4c4ad5605e373b3cbaee96ca982a474a665ed756
|
||||
vcpkg_from_bitbucket(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO blaze-lib/blaze
|
||||
REF v3.2
|
||||
SHA512 f9a50c454125fe194f0d1fb259c5440c82068d41880a228fbd15fe383b6ef4198557daa406a08809065eedf223fc0c55d2309cc00ef549a3fc1a2a89e6d4b445
|
||||
HEAD_REF master
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
# Copy the blaze header files
|
||||
file(COPY "${SOURCE_PATH}/blaze"
|
||||
|
@ -1,5 +1,5 @@
|
||||
Source: bond
|
||||
Maintainer: bond@microsoft.com
|
||||
Version: 6.0.0
|
||||
Version: 6.0.0-1
|
||||
Description: Bond is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services. <https://github.com/Microsoft/bond>
|
||||
Build-Depends: boost, rapidjson
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: boost
|
||||
Version: 1.64-5
|
||||
Version: 1.65.1
|
||||
Description: Peer-reviewed portable C++ source libraries
|
||||
Build-Depends: zlib, bzip2
|
||||
|
@ -1,14 +1,16 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(VERSION 1_64)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/boost_${VERSION}_0)
|
||||
set(VERSION 1_65)
|
||||
set(VERSION_FULL 1_65_1)
|
||||
set(VERSION2 1.65.1)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/boost_${VERSION_FULL})
|
||||
|
||||
######################
|
||||
# Acquire and arrange sources
|
||||
######################
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "https://sourceforge.net/projects/boost/files/boost/1.64.0/boost_${VERSION}_0.tar.bz2"
|
||||
FILENAME "boost_${VERSION}_0.tar.bz2"
|
||||
SHA512 68477f148f61be617552ef48559c5c2cb90d42264cabd6d5e87215d0d5024b48fca27c4afcfc1f77e490c6220d44fb1abdf0a53703867a2e4132c2857f69fedf
|
||||
URLS "https://sourceforge.net/projects/boost/files/boost/${VERSION2}/boost_${VERSION_FULL}.7z" "http://dl.bintray.com/boostorg/release/${VERSION2}/source/boost_${VERSION_FULL}.7z"
|
||||
FILENAME "boost_${VERSION_FULL}.7z"
|
||||
SHA512 b1d9264ec74dd75c68176f5a2d2da33a2c1e3162842cc61a07ac8ed1ebb953855cece4faf72ce99b490b665e813b839e35c7fc8026f2f9cb31b106fb8bab2a9c
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
|
||||
@ -61,7 +63,7 @@ file(MAKE_DIRECTORY
|
||||
if(NOT EXISTS ${SOURCE_PATH}/b2.exe)
|
||||
message(STATUS "Bootstrapping")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND "${SOURCE_PATH}/bootstrap.bat"
|
||||
COMMAND "${SOURCE_PATH}/bootstrap.bat" msvc
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
LOGNAME bootstrap
|
||||
)
|
||||
@ -108,7 +110,6 @@ if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
||||
# --without-date_time
|
||||
# --without-exception
|
||||
# --without-serialization
|
||||
# --without-fiber
|
||||
# --without-context
|
||||
# --without-graph_parallel
|
||||
# --without-signals
|
||||
@ -129,6 +130,8 @@ if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
||||
--without-program_options # libs\program_options\src\parsers.cpp(194): error C2065: 'environ': undeclared identifier
|
||||
|
||||
--without-test
|
||||
--without-fiber
|
||||
--without-stacktrace
|
||||
--without-filesystem # libs\filesystem\src\operations.cpp(178): error C2039: 'GetEnvironmentVariableW': is not a member of '`global namespace''
|
||||
--without-thread
|
||||
--without-iostreams
|
||||
|
@ -21,7 +21,7 @@ vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO erincatto/Box2D
|
||||
REF 374664b2a4ce2e7c24fbad6e1ed34bebcc9ab6bc
|
||||
SHA512 ae2bbee66644eea91d0e92156a4bece44053dfa8fd6b8630712a73b92210d4c75153df94e3386c64c49796b001af1ad7dee44868c16368b114567e1f6931d242
|
||||
SHA512 39074bab01b36104aa685bfe39b40eb903d9dfb54cc3ba8098125db5291f55a8a9e578fc59563b2e8743abbbb26f419be7ae1524e235e7bd759257f99ff96bda
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: brotli
|
||||
Version: 0.6.0
|
||||
Version: 0.6.0-1
|
||||
Description: a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling.
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: bullet3
|
||||
Version: 2.86.1
|
||||
Version: 2.86.1-1
|
||||
Description: Bullet Physics is a professional collision detection, rigid body, and soft body dynamics library
|
||||
|
43
ports/butteraugli/CMakeLists.txt
Normal file
43
ports/butteraugli/CMakeLists.txt
Normal file
@ -0,0 +1,43 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
project(butteraugli)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
find_package(JPEG REQUIRED)
|
||||
find_package(PNG REQUIRED)
|
||||
|
||||
include_directories("." ${JPEG_INCLUDE_DIR} ${PNG_INCLUDE_DIRS})
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
|
||||
add_library(butteraugli_lib butteraugli/butteraugli.cc)
|
||||
|
||||
add_executable(butteraugli butteraugli/butteraugli_main.cc)
|
||||
|
||||
target_link_libraries(butteraugli butteraugli_lib ${JPEG_LIBRARIES} ${PNG_LIBRARIES})
|
||||
|
||||
|
||||
install(
|
||||
TARGETS butteraugli_lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_TOOLS)
|
||||
install (
|
||||
TARGETS butteraugli
|
||||
RUNTIME DESTINATION tools/butteraugli
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES butteraugli/butteraugli.h DESTINATION include/butteraugli)
|
||||
endif()
|
4
ports/butteraugli/CONTROL
Normal file
4
ports/butteraugli/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: butteraugli
|
||||
Version: 2017-09-02-8c60a2aefa19adb-1
|
||||
Description: butteraugli estimates the psychovisual difference between two images
|
||||
Build-Depends: libpng, libjpeg-turbo
|
12
ports/butteraugli/missing_header.patch
Normal file
12
ports/butteraugli/missing_header.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git "a/butteraugli/butteraugli_main.cc" "b/butteraugli/butteraugli_main.cc"
|
||||
index f38af1d..ebf3197 100644
|
||||
--- "a/butteraugli/butteraugli_main.cc"
|
||||
+++ "b/butteraugli/butteraugli_main.cc"
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
+#include <algorithm>
|
||||
#include "butteraugli/butteraugli.h"
|
||||
|
||||
extern "C" {
|
30
ports/butteraugli/portfile.cmake
Normal file
30
ports/butteraugli/portfile.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/butteraugli
|
||||
REF 8c60a2aefa19adb40e457be5358d7cc93205c72f
|
||||
SHA512 ff3d8fd952d291b51dab60cef6fa46b723c4a7b649c3df70f89c63febce865dc6a2e5f95ca165ea4424fed52a57c2d76c918eb31646c44ba34a0fa51a003c9dd
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/missing_header.patch"
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/butteraugli)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/butteraugli RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: bzip2
|
||||
Version: 1.0.6-1
|
||||
Version: 1.0.6-2
|
||||
Description: High-quality data compressor.
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: c-ares
|
||||
Version: 1.12.1-dev-40eb41f-1
|
||||
Version: 1.13.0-1
|
||||
Description: A C library for asynchronous DNS requests
|
||||
Build-Depends:
|
||||
Build-Depends:
|
||||
|
@ -3,8 +3,8 @@ include(vcpkg_common_functions)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO c-ares/c-ares
|
||||
REF 40eb41f522eb9a86f9397352f10d1e63c89f2c54
|
||||
SHA512 901d7da97098f79d13ae8d72c85936bd15fbd6b65399c247462ad5367ac85ff32c90325998c21364f959e1bde2c8b7dbc9d9d7524ea34e6bc48dfb3854c199e1
|
||||
REF cares-1_13_0
|
||||
SHA512 0ee8a45772c64701d0e860cd84925cef8938a319b3004e02e86af900cbd9e07609940bc474a46bf4252b9b7e3815e1951de8f0eb16718074ec1d39c2105a2abe
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
|
4
ports/caffe2/CONTROL
Normal file
4
ports/caffe2/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: caffe2
|
||||
Version: 0.8.1
|
||||
Build-Depends: lmdb, gflags, glog, eigen3, protobuf
|
||||
Description: Caffe2 is a lightweight, modular, and scalable deep learning framework.
|
396
ports/caffe2/msvc-fixes.patch
Normal file
396
ports/caffe2/msvc-fixes.patch
Normal file
@ -0,0 +1,396 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 8054d98..35934f5 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -56,6 +56,14 @@ option(USE_ROCKSDB "Use RocksDB" ON)
|
||||
option(USE_SNPE "Use Qualcomm's SNPE library" OFF)
|
||||
option(USE_THREADS "Use Threads" ON)
|
||||
option(USE_ZMQ "Use ZMQ" OFF)
|
||||
+if(MSVC)
|
||||
+ if(BUILD_BUILD_SHARED_LIBS)
|
||||
+ set(USE_STATIC_RUNTIME_DEFAULT OFF)
|
||||
+ else()
|
||||
+ set(USE_STATIC_RUNTIME_DEFAULT ON)
|
||||
+ endif()
|
||||
+ option(USE_STATIC_RUNTIME "Link to the static runtime (/MT) instead of dynamic (/MD)" ${USE_STATIC_RUNTIME_DEFAULT})
|
||||
+endif()
|
||||
|
||||
# External projects
|
||||
include(ExternalProject)
|
||||
@@ -99,7 +107,7 @@ else()
|
||||
foreach(flag_var
|
||||
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
|
||||
- if (NOT ${BUILD_SHARED_LIBS})
|
||||
+ if (USE_STATIC_RUNTIME)
|
||||
if(${flag_var} MATCHES "/MD")
|
||||
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
||||
endif(${flag_var} MATCHES "/MD")
|
||||
diff --git a/caffe2/core/logging.cc b/caffe2/core/logging.cc
|
||||
index 1b4468e..1379f3a 100644
|
||||
--- a/caffe2/core/logging.cc
|
||||
+++ b/caffe2/core/logging.cc
|
||||
@@ -117,7 +117,7 @@ using fLB::FLAGS_logtostderr;
|
||||
|
||||
#endif // CAFFE2_USE_GFLAGS
|
||||
|
||||
-CAFFE2_DEFINE_int(caffe2_log_level, google::ERROR,
|
||||
+CAFFE2_DEFINE_int(caffe2_log_level, google::GLOG_ERROR,
|
||||
"The minimum log level that caffe2 will output.");
|
||||
|
||||
// Google glog's api does not have an external function that allows one to check
|
||||
@@ -134,15 +134,23 @@ bool IsGoogleLoggingInitialized();
|
||||
namespace caffe2 {
|
||||
bool InitCaffeLogging(int* argc, char** argv) {
|
||||
if (*argc == 0) return true;
|
||||
- if (!::google::glog_internal_namespace_::IsGoogleLoggingInitialized()) {
|
||||
+#if !(defined(_MSC_VER) && defined(GLOG_IS_A_DLL))
|
||||
+ // IsGoogleLoggingInitialized is not exported from the glog DLL
|
||||
+ // so we can't call it. If our program calls InitGoogleLogging twice glog will
|
||||
+ // abort it.
|
||||
+ if (!::google::glog_internal_namespace_::IsGoogleLoggingInitialized())
|
||||
+#endif
|
||||
+ {
|
||||
::google::InitGoogleLogging(argv[0]);
|
||||
+#if !defined(_MSC_VER)
|
||||
::google::InstallFailureSignalHandler();
|
||||
+#endif
|
||||
}
|
||||
// If caffe2_log_level is set and is lower than the min log level by glog,
|
||||
// we will transfer the caffe2_log_level setting to glog to override that.
|
||||
FLAGS_minloglevel = std::min(FLAGS_caffe2_log_level, FLAGS_minloglevel);
|
||||
// If caffe2_log_level is explicitly set, let's also turn on logtostderr.
|
||||
- if (FLAGS_caffe2_log_level < google::ERROR) {
|
||||
+ if (FLAGS_caffe2_log_level < google::GLOG_ERROR) {
|
||||
FLAGS_logtostderr = 1;
|
||||
}
|
||||
// Also, transfer the caffe2_log_level verbose setting to glog.
|
||||
@@ -154,7 +162,7 @@ bool InitCaffeLogging(int* argc, char** argv) {
|
||||
|
||||
void ShowLogInfoToStderr() {
|
||||
FLAGS_logtostderr = 1;
|
||||
- FLAGS_minloglevel = std::min(FLAGS_minloglevel, google::INFO);
|
||||
+ FLAGS_minloglevel = std::min(FLAGS_minloglevel, google::GLOG_INFO);
|
||||
}
|
||||
} // namespace caffe2
|
||||
|
||||
diff --git a/caffe2/core/logging_is_google_glog.h b/caffe2/core/logging_is_google_glog.h
|
||||
index 7dd2b4f..2df4435 100644
|
||||
--- a/caffe2/core/logging_is_google_glog.h
|
||||
+++ b/caffe2/core/logging_is_google_glog.h
|
||||
@@ -8,7 +8,7 @@
|
||||
// it. Some mobile platforms do not like stl_logging, so we add an
|
||||
// overload in that case as well.
|
||||
|
||||
-#if !defined(__CUDACC__) && !defined(CAFFE2_USE_MINIMAL_GOOGLE_GLOG)
|
||||
+#if !defined(__CUDARCH__) && !defined(CAFFE2_USE_MINIMAL_GOOGLE_GLOG)
|
||||
#include <glog/stl_logging.h>
|
||||
#else // !defined(__CUDACC__) && !!defined(CAFFE2_USE_MINIMAL_GOOGLE_GLOG)
|
||||
|
||||
diff --git a/caffe2/image/image_input_op.h b/caffe2/image/image_input_op.h
|
||||
index 9604e98..7d90014 100644
|
||||
--- a/caffe2/image/image_input_op.h
|
||||
+++ b/caffe2/image/image_input_op.h
|
||||
@@ -214,13 +214,13 @@ ImageInputOp<Context>::ImageInputOp(
|
||||
|
||||
// hard-coded PCA eigenvectors and eigenvalues, based on RBG channel order
|
||||
color_lighting_eigvecs_.push_back(
|
||||
- std::vector<float>{-144.7125, 183.396, 102.2295});
|
||||
+ std::vector<float>{-144.7125f, 183.396f, 102.2295f});
|
||||
color_lighting_eigvecs_.push_back(
|
||||
- std::vector<float>{-148.104, -1.1475, -207.57});
|
||||
+ std::vector<float>{-148.104f, -1.1475f, -207.57f});
|
||||
color_lighting_eigvecs_.push_back(
|
||||
- std::vector<float>{-148.818, -177.174, 107.1765});
|
||||
+ std::vector<float>{-148.818f, -177.174f, 107.1765f});
|
||||
|
||||
- color_lighting_eigvals_ = std::vector<float>{0.2175, 0.0188, 0.0045};
|
||||
+ color_lighting_eigvals_ = std::vector<float>{0.2175f, 0.0188f, 0.0045f};
|
||||
|
||||
CAFFE_ENFORCE_GT(batch_size_, 0, "Batch size should be nonnegative.");
|
||||
if (use_caffe_datum_) {
|
||||
diff --git a/caffe2/operators/batch_matmul_op.cc b/caffe2/operators/batch_matmul_op.cc
|
||||
index c2e578d..28cf030 100644
|
||||
--- a/caffe2/operators/batch_matmul_op.cc
|
||||
+++ b/caffe2/operators/batch_matmul_op.cc
|
||||
@@ -34,7 +34,7 @@ size (C x K x N) where C is the batch size and i ranges from 0 to C-1.
|
||||
b_dim1 = in[1].dims(2);
|
||||
}
|
||||
return vector<TensorShape> {
|
||||
- CreateTensorShape(vector<int> {
|
||||
+ CreateTensorShape(vector<TIndex> {
|
||||
in[0].dims(0), a_dim0, b_dim1},
|
||||
in[0].data_type())
|
||||
};
|
||||
diff --git a/caffe2/operators/layer_norm_op.cu b/caffe2/operators/layer_norm_op.cu
|
||||
index df13fc3..68bbc97 100644
|
||||
--- a/caffe2/operators/layer_norm_op.cu
|
||||
+++ b/caffe2/operators/layer_norm_op.cu
|
||||
@@ -252,8 +252,8 @@ bool LayerNormGradientOp<CUDAContext>::DoRunWithType<float>() {
|
||||
auto* ginput = Output(0);
|
||||
|
||||
const auto canonical_axis = norm_inputs.canonical_axis_index(axis_);
|
||||
- const int left = norm_inputs.size_to_dim(canonical_axis);
|
||||
- const int right = norm_inputs.size_from_dim(canonical_axis);
|
||||
+ const TIndex left = norm_inputs.size_to_dim(canonical_axis);
|
||||
+ const TIndex right = norm_inputs.size_from_dim(canonical_axis);
|
||||
|
||||
ginput->ResizeLike(norm_inputs);
|
||||
std::vector<TIndex> stats_dims(
|
||||
@@ -261,7 +261,7 @@ bool LayerNormGradientOp<CUDAContext>::DoRunWithType<float>() {
|
||||
stats_dims.push_back(1);
|
||||
dmean_.Resize(stats_dims);
|
||||
dstdev_.Resize(stats_dims);
|
||||
- gscratch_.Resize(std::vector<size_t>{left, right});
|
||||
+ gscratch_.Resize(std::vector<TIndex>{left, right});
|
||||
|
||||
std::vector<int> segs(left + 1);
|
||||
std::iota(segs.begin(), segs.end(), 0);
|
||||
@@ -291,7 +291,7 @@ bool LayerNormGradientOp<CUDAContext>::DoRunWithType<float>() {
|
||||
dout.data<float>(),
|
||||
gscratch_.mutable_data<float>());
|
||||
|
||||
- dstdev_.Resize(vector<size_t>{left, 1});
|
||||
+ dstdev_.Resize(vector<TIndex>{left, 1});
|
||||
// dstdev = reduce(temp1)
|
||||
allocScratchAndReduce(
|
||||
gscratch_.data<float>(),
|
||||
diff --git a/caffe2/operators/lengths_top_k_op.cc b/caffe2/operators/lengths_top_k_op.cc
|
||||
index c871d53..bad741a 100644
|
||||
--- a/caffe2/operators/lengths_top_k_op.cc
|
||||
+++ b/caffe2/operators/lengths_top_k_op.cc
|
||||
@@ -14,7 +14,7 @@ bool LengthsTopKOp<T, Context>::RunOnDevice() {
|
||||
|
||||
output_topk_values->Resize(N * k_);
|
||||
output_topk_indices->Resize(N * k_);
|
||||
- std::vector<int> output_dims = std::vector<int>({N, k_});
|
||||
+ std::vector<TIndex> output_dims = std::vector<TIndex>({N, k_});
|
||||
output_topk_values->Reshape(output_dims);
|
||||
output_topk_indices->Reshape(output_dims);
|
||||
T* output_topk_values_data = output_topk_values->template mutable_data<T>();
|
||||
diff --git a/caffe2/operators/pool_op_cudnn.cu b/caffe2/operators/pool_op_cudnn.cu
|
||||
index a380d8d..b0cd326 100644
|
||||
--- a/caffe2/operators/pool_op_cudnn.cu
|
||||
+++ b/caffe2/operators/pool_op_cudnn.cu
|
||||
@@ -467,6 +467,15 @@ class CuDNNPoolGradientOp : public ConvPoolOpBase<CUDAContext> {
|
||||
cudnnPoolingDescriptor_t pooling_desc_;
|
||||
cudnnPoolingMode_t mode_;
|
||||
|
||||
+// MSVC defines IN and OUT in minwindef.h
|
||||
+#ifdef IN
|
||||
+#undef IN
|
||||
+#endif
|
||||
+
|
||||
+#ifdef OUT
|
||||
+#undef OUT
|
||||
+#endif
|
||||
+
|
||||
// Input: X, Y, dY
|
||||
// Output: dX
|
||||
INPUT_TAGS(IN, OUT, OUT_GRAD);
|
||||
diff --git a/caffe2/operators/recurrent_op_cudnn.cc b/caffe2/operators/recurrent_op_cudnn.cc
|
||||
index 7777813..58bc8c3 100644
|
||||
--- a/caffe2/operators/recurrent_op_cudnn.cc
|
||||
+++ b/caffe2/operators/recurrent_op_cudnn.cc
|
||||
@@ -115,10 +115,11 @@ void RecurrentBaseOp<T>::initialize(
|
||||
|
||||
// RNN setup
|
||||
{
|
||||
- CUDNN_ENFORCE(cudnnSetRNNDescriptor(
|
||||
+// Do not use #if condition inside CUDNN_ENFORCE
|
||||
+// to avoid macro expansion errors.
|
||||
#if CUDNN_MAJOR >= 7
|
||||
+CUDNN_ENFORCE(cudnnSetRNNDescriptor(
|
||||
cudnn_wrapper_.inline_cudnn_handle(),
|
||||
-#endif
|
||||
rnnDesc_,
|
||||
hiddenSize,
|
||||
numLayers,
|
||||
@@ -126,10 +127,19 @@ void RecurrentBaseOp<T>::initialize(
|
||||
rnnInput,
|
||||
rnnDirection,
|
||||
rnnMode,
|
||||
-#if CUDNN_MAJOR >= 7
|
||||
CUDNN_RNN_ALGO_STANDARD, // TODO: verify correctness / efficiency.
|
||||
-#endif
|
||||
cudnnTypeWrapper<T>::type));
|
||||
+#else
|
||||
+ CUDNN_ENFORCE(cudnnSetRNNDescriptor(
|
||||
+ rnnDesc_,
|
||||
+ hiddenSize,
|
||||
+ numLayers,
|
||||
+ dropoutDesc_,
|
||||
+ rnnInput,
|
||||
+ rnnDirection,
|
||||
+ rnnMode,
|
||||
+ cudnnTypeWrapper<T>::type));
|
||||
+#endif // CUDNN_MAJOR >= 7
|
||||
}
|
||||
// X setup
|
||||
{
|
||||
diff --git a/caffe2/utils/CMakeLists.txt b/caffe2/utils/CMakeLists.txt
|
||||
index f90af5a..919a638 100644
|
||||
--- a/caffe2/utils/CMakeLists.txt
|
||||
+++ b/caffe2/utils/CMakeLists.txt
|
||||
@@ -27,6 +27,10 @@ exclude(Caffe2_CPU_SRCS "${Caffe2_CPU_SRCS}" ${Caffe2_GPU_SRCS})
|
||||
# will directly link nnpack pthreadpool.
|
||||
file(GLOB_RECURSE tmp pthreadpool*)
|
||||
exclude(Caffe2_CPU_SRCS "${Caffe2_CPU_SRCS}" ${tmp})
|
||||
+if(MSVC)
|
||||
+ file(GLOB_RECURSE tmp *ThreadPool.cc)
|
||||
+ exclude(Caffe2_CPU_SRCS "${Caffe2_CPU_SRCS}" ${tmp})
|
||||
+endif()
|
||||
|
||||
# ---[ GPU test files
|
||||
file(GLOB_RECURSE tmp *_gpu_test.cc)
|
||||
diff --git a/caffe2/utils/GpuBitonicSort.cuh b/caffe2/utils/GpuBitonicSort.cuh
|
||||
index f52bb50..a199bcb 100644
|
||||
--- a/caffe2/utils/GpuBitonicSort.cuh
|
||||
+++ b/caffe2/utils/GpuBitonicSort.cuh
|
||||
@@ -39,9 +39,11 @@ __device__ inline void bitonicSort(K* keys,
|
||||
// Assume the sort is taking place in shared memory
|
||||
// static_assert(Power2SortSize * (sizeof(K) + sizeof(V)) < 32768,
|
||||
// "sort data too large (>32768 bytes)");
|
||||
- static_assert(math::integerIsPowerOf2(Power2SortSize),
|
||||
+ static_assert(math::integerIsPowerOf2(
|
||||
+ std::integral_constant<int, Power2SortSize>::value),
|
||||
"sort size must be power of 2");
|
||||
- static_assert(math::integerIsPowerOf2(ThreadsPerBlock),
|
||||
+ static_assert(math::integerIsPowerOf2(
|
||||
+ std::integral_constant<int, ThreadsPerBlock>::value),
|
||||
"threads in block must be power of 2");
|
||||
|
||||
// If what we are sorting is too small, then not all threads
|
||||
@@ -107,7 +109,8 @@ __device__ inline void warpBitonicSort(K* keys,
|
||||
// Smaller sorts should use a warp shuffle sort
|
||||
static_assert(Power2SortSize > kWarpSize,
|
||||
"sort not large enough");
|
||||
- static_assert(math::integerIsPowerOf2(Power2SortSize),
|
||||
+ static_assert(math::integerIsPowerOf2(
|
||||
+ std::integral_constant<int, Power2SortSize>::value),
|
||||
"sort size must be power of 2");
|
||||
static_assert(Power2SortSize <= kMaxBitonicSortSize,
|
||||
"sort size <= 4096 only supported");
|
||||
diff --git a/caffe2/utils/math.h b/caffe2/utils/math.h
|
||||
index 6c352dc..a1eda9d 100644
|
||||
--- a/caffe2/utils/math.h
|
||||
+++ b/caffe2/utils/math.h
|
||||
@@ -426,18 +426,10 @@ constexpr T roundUp(T a, T b) {
|
||||
return divUp<T>(a, b) * b;
|
||||
}
|
||||
|
||||
-// Returns true if the given integer type is a power-of-2 (positive only)
|
||||
-// Note(jiayq): windows reported an error per
|
||||
-// https://github.com/caffe2/caffe2/issues/997
|
||||
-// and as a result will make it a macro.
|
||||
-#ifdef _MSC_VER
|
||||
-#define integerIsPowerOf2(v) ((v) && !((v) & ((v) - 1)))
|
||||
-#else // _MSC_VER
|
||||
template <typename T>
|
||||
constexpr bool integerIsPowerOf2(T v) {
|
||||
return (v && !(v & (v - 1)));
|
||||
}
|
||||
-#endif // _MSC_VER
|
||||
|
||||
// Returns log2(n) for a positive integer type
|
||||
template <typename T>
|
||||
diff --git a/cmake/Cuda.cmake b/cmake/Cuda.cmake
|
||||
index df70e2f..ca1b123 100644
|
||||
--- a/cmake/Cuda.cmake
|
||||
+++ b/cmake/Cuda.cmake
|
||||
@@ -37,6 +37,10 @@ function(caffe2_detect_installed_gpus out_variable)
|
||||
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
if(__nvcc_res EQUAL 0)
|
||||
+ # nvcc outputs text containing line breaks when building with MSVC.
|
||||
+ # The line below prevents CMake from inserting a variable with line
|
||||
+ # breaks in the cache
|
||||
+ string(REGEX MATCH "([1-9].[0-9])" __nvcc_out "${__nvcc_out}")
|
||||
string(REPLACE "2.1" "2.1(2.0)" __nvcc_out "${__nvcc_out}")
|
||||
set(CUDA_gpu_detect_output ${__nvcc_out} CACHE INTERNAL "Returned GPU architetures from caffe_detect_gpus tool" FORCE)
|
||||
endif()
|
||||
@@ -249,7 +253,7 @@ endif()
|
||||
# Debug and Release symbol support
|
||||
if (MSVC)
|
||||
if (${CMAKE_BUILD_TYPE} MATCHES "Release")
|
||||
- if (${BUILD_SHARED_LIBS})
|
||||
+ if (NOT USE_STATIC_RUNTIME)
|
||||
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler -MD")
|
||||
else()
|
||||
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler -MT")
|
||||
@@ -259,7 +263,7 @@ if (MSVC)
|
||||
"Caffe2 currently does not support the combination of MSVC, Cuda "
|
||||
"and Debug mode. Either set USE_CUDA=OFF or set the build type "
|
||||
"to Release")
|
||||
- if (${BUILD_SHARED_LIBS})
|
||||
+ if (NOT USE_STATIC_RUNTIME)
|
||||
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler -MDd")
|
||||
else()
|
||||
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler -MTd")
|
||||
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
|
||||
index afb6b68..bdad8b6 100644
|
||||
--- a/cmake/Dependencies.cmake
|
||||
+++ b/cmake/Dependencies.cmake
|
||||
@@ -182,6 +182,15 @@ if(USE_OPENCV)
|
||||
message(WARNING "Not compiling with OpenCV. Suppress this warning with -DUSE_OPENCV=OFF")
|
||||
set(USE_OPENCV OFF)
|
||||
endif()
|
||||
+ if(USE_OPENCV AND VCPKG_TARGET_TRIPLET MATCHES static)
|
||||
+ find_package(LibLZMA QUIET)
|
||||
+ if(LIBLZMA_FOUND)
|
||||
+ list(APPEND Caffe2_DEPENDENCY_LIBS ${LIBLZMA_LIBRARIES})
|
||||
+ else()
|
||||
+ message(WARNING "Not compiling with OpenCV. Could not find liblzma. Suppress this warning with -DUSE_OPENCV=OFF")
|
||||
+ set(USE_OPENCV OFF)
|
||||
+ endif()
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
# ---[ FFMPEG
|
||||
diff --git a/cmake/Modules/FindGlog.cmake b/cmake/Modules/FindGlog.cmake
|
||||
index 1167532..9780ba5 100644
|
||||
--- a/cmake/Modules/FindGlog.cmake
|
||||
+++ b/cmake/Modules/FindGlog.cmake
|
||||
@@ -27,6 +27,10 @@ if(MSVC)
|
||||
endif()
|
||||
if(TARGET ${GLOG_LIBRARY})
|
||||
get_target_property(GLOG_INCLUDE_DIR ${GLOG_LIBRARY} INTERFACE_INCLUDE_DIRECTORIES)
|
||||
+ get_target_property(GLOG_TYPE ${GLOG_LIBRARY} TYPE)
|
||||
+ if("${GLOG_TYPE}" STREQUAL "SHARED_LIBRARY")
|
||||
+ add_definitions(-DGLOG_IS_A_DLL=1)
|
||||
+ endif()
|
||||
endif()
|
||||
else()
|
||||
find_library(GLOG_LIBRARY glog
|
||||
diff --git a/cmake/ProtoBuf.cmake b/cmake/ProtoBuf.cmake
|
||||
index 89975c8..e37d6da 100644
|
||||
--- a/cmake/ProtoBuf.cmake
|
||||
+++ b/cmake/ProtoBuf.cmake
|
||||
@@ -13,6 +13,9 @@ function(custom_protobuf_find)
|
||||
# so we turn it off here.
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations" PARENT_SCOPE)
|
||||
endif()
|
||||
+ if(MSVC)
|
||||
+ set(protobuf_MSVC_STATIC_RUNTIME ${USE_STATIC_RUNTIME})
|
||||
+ endif()
|
||||
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/protobuf/cmake)
|
||||
caffe2_include_directories(${PROJECT_SOURCE_DIR}/third_party/protobuf/src)
|
||||
list(APPEND Caffe2_DEPENDENCY_LIBS libprotobuf)
|
||||
diff --git a/cmake/Summary.cmake b/cmake/Summary.cmake
|
||||
index b7423a6..2996484 100644
|
||||
--- a/cmake/Summary.cmake
|
||||
+++ b/cmake/Summary.cmake
|
||||
@@ -19,6 +19,13 @@ function (Caffe2_print_configuration_summary)
|
||||
message(STATUS " System : ${CMAKE_SYSTEM_NAME}")
|
||||
message(STATUS " C++ compiler : ${CMAKE_CXX_COMPILER}")
|
||||
message(STATUS " C++ compiler version : ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
+ if(MSVC)
|
||||
+ if(USE_STATIC_RUNTIME)
|
||||
+ message(STATUS " Runtime : static (/MT)")
|
||||
+ else()
|
||||
+ message(STATUS " Runtime : dynamic (/MD)")
|
||||
+ endif()
|
||||
+ endif()
|
||||
message(STATUS " Protobuf compiler : ${PROTOBUF_PROTOC_EXECUTABLE}")
|
||||
message(STATUS " CXX flags : ${CMAKE_CXX_FLAGS}")
|
||||
message(STATUS " Build type : ${CMAKE_BUILD_TYPE}")
|
118
ports/caffe2/portfile.cmake
Normal file
118
ports/caffe2/portfile.cmake
Normal file
@ -0,0 +1,118 @@
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "Warning: Dynamic building not supported yet. Building static.")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
if (VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
||||
message(FATAL_ERROR "Caffe2 cannot be built for the x86 architecture")
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO caffe2/caffe2
|
||||
REF eab13a2d5c807bf5d49efd4584787b639a981b79
|
||||
SHA512 505a8540b0c28329c4e2ce443ac8e198c1ee613eb6b932927ee9d04c8afdc95081f3c4581408b7097d567840427b31f6d7626ea80f27e56532f2f2e6acd87023
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/msvc-fixes.patch
|
||||
)
|
||||
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
||||
set(USE_STATIC_RUNTIME ON)
|
||||
else()
|
||||
set(USE_STATIC_RUNTIME OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
# Set to ON to use python
|
||||
-DBUILD_PYTHON=OFF
|
||||
-DUSE_STATIC_RUNTIME=${USE_STATIC_RUNTIME}
|
||||
-DUSE_GFLAGS=ON
|
||||
-DUSE_GLOG=ON
|
||||
# Cannot use OpenCV without USE_CUDA=ON right now
|
||||
-DUSE_OPENCV=OFF
|
||||
-DUSE_THREADS=ON
|
||||
# Uncomment to use MKL
|
||||
# -DBLAS=MKL
|
||||
-DUSE_CUDA=OFF
|
||||
-DUSE_FFMPEG=OFF
|
||||
-DUSE_GLOO=OFF
|
||||
-DUSE_LEVELDB=OFF
|
||||
-DUSE_LITE_PROTO=OFF
|
||||
-DUSE_METAL=OFF
|
||||
-DUSE_MOBILE_OPENGL=OFF
|
||||
-DUSE_MPI=OFF
|
||||
-DUSE_NCCL=OFF
|
||||
-DUSE_NERVANA_GPU=OFF
|
||||
-DUSE_NNPACK=OFF
|
||||
-DUSE_OBSERVERS=OFF
|
||||
-DUSE_OPENMP=ON
|
||||
-DUSE_REDIS=OFF
|
||||
-DUSE_ROCKSDB=OFF
|
||||
-DUSE_SNPE=OFF
|
||||
-DUSE_ZMQ=OFF
|
||||
-DBUILD_TEST=OFF
|
||||
-DPROTOBUF_PROTOC_EXECUTABLE:FILEPATH=${CURRENT_INSTALLED_DIR}/tools/protoc.exe
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Remove folders from install
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/caffe)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/caffe2)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/caffe)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/caffe2)
|
||||
|
||||
# Remove empty directories from include (should probably fix or
|
||||
# patch caffe2 install script)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/caffe2/test)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/caffe2/python)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/caffe2/experiments/python)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/caffe2/contrib/opengl)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/caffe2/contrib/nnpack)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/caffe2/contrib/libopencl-stub)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/caffe2/contrib/docker-ubuntu-14.04)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/caffe2/binaries)
|
||||
|
||||
# Move bin to tools
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools)
|
||||
file(GLOB BINARIES ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
||||
foreach(binary ${BINARIES})
|
||||
get_filename_component(binary_name ${binary} NAME)
|
||||
file(RENAME ${binary} ${CURRENT_PACKAGES_DIR}/tools/${binary_name})
|
||||
endforeach()
|
||||
|
||||
# Remove bin directory
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
endif()
|
||||
|
||||
# Remove headers and tools from debug build
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(GLOB BINARIES ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
||||
foreach(binary ${BINARIES})
|
||||
get_filename_component(binary_name ${binary} NAME)
|
||||
file(REMOVE ${binary})
|
||||
endforeach()
|
||||
|
||||
# Remove bin directory
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
endif()
|
||||
|
||||
# install license
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/caffe2)
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/caffe2 RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
@ -1,4 +1,4 @@
|
||||
Source: cairo
|
||||
Version: 1.15.6
|
||||
Version: 1.15.8-1
|
||||
Description: Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
|
||||
Build-Depends: zlib, libpng, pixman, glib, freetype, fontconfig
|
||||
|
@ -1,16 +0,0 @@
|
||||
src/win32/cairo-win32-device.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/win32/cairo-win32-device.c b/src/win32/cairo-win32-device.c
|
||||
index 741e49e..c60c494 100644
|
||||
--- a/src/win32/cairo-win32-device.c
|
||||
+++ b/src/win32/cairo-win32-device.c
|
||||
@@ -131,6 +131,8 @@ _cairo_win32_device_get (void)
|
||||
{
|
||||
cairo_win32_device_t *device;
|
||||
|
||||
+ CAIRO_MUTEX_INITIALIZE ();
|
||||
+
|
||||
if (__cairo_win32_device)
|
||||
return cairo_device_reference (__cairo_win32_device);
|
||||
|
@ -7,19 +7,18 @@
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(CAIRO_VERSION 1.15.6)
|
||||
set(CAIRO_VERSION 1.15.8)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cairo-${CAIRO_VERSION})
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://cairographics.org/snapshots/cairo-${CAIRO_VERSION}.tar.xz"
|
||||
FILENAME "cairo-${CAIRO_VERSION}.tar.xz"
|
||||
SHA512 e4eccba745a03545001ebd6f1a7b87bee4b932f80a2d877a764500ad5c18011a5bac585f31eec6d0b65ccaa818de0df2b3b99f0792111363bd3554cfa7f688b6
|
||||
SHA512 5af1eebf432201dae0efaa5b6766b151d8273ea00dae48e104d56477005b4d423d64b5d11c512736a4cb076632fb2a572ec35becd922825a68d933bb5ff96ca1
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/Initialize-mutexes-for-static-builds-for-win32.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/export-only-in-shared-build.patch"
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/export-only-in-shared-build.patch"
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/src)
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: cairomm
|
||||
Version: 1.15.3-1
|
||||
Version: 1.15.3-2
|
||||
Description: A C++ wrapper for the cairo graphics library
|
||||
Build-Depends: cairo, libsigcpp
|
||||
Build-Depends: cairo, libsigcpp
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: catch
|
||||
Version: 1.9.6
|
||||
Version: 1.10.0
|
||||
Description: C++ Automated Test Cases in Headers
|
||||
|
@ -1,11 +1,11 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(CATCH_VERSION v1.9.6)
|
||||
set(CATCH_VERSION v1.10.0)
|
||||
|
||||
vcpkg_download_distfile(HEADER
|
||||
URLS "https://github.com/philsquared/Catch/releases/download/${CATCH_VERSION}/catch.hpp"
|
||||
FILENAME "catch-${CATCH_VERSION}.hpp"
|
||||
SHA512 a0e4d568a5d90e72cef6ae9e741a66909235498c2901e96623892e5b323cb3bc51d55617ee6a42b30938a0cf2564323c621bd201d94eb67ba9c4fe5de65c10ee
|
||||
SHA512 275ab5b5d778cc8a91b5f3e8f241a37b680c81d1b8945ff64ad16a9708c98e6535b389746bf8cacbed07f874629f456b56bafbf1879c5a6f84fa87675c1361b6
|
||||
)
|
||||
|
||||
vcpkg_download_distfile(LICENSE
|
||||
|
39
ports/ccd/0001_fix_symbols_export.patch
Normal file
39
ports/ccd/0001_fix_symbols_export.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From 05b5718a364ac525c8766387bd74faf852f98589 Mon Sep 17 00:00:00 2001
|
||||
From: Mikhail Paulyshka <me@mixaill.tk>
|
||||
Date: Sun, 27 Aug 2017 03:39:53 +0300
|
||||
Subject: [PATCH] win32: export additional symbols, fixes FCL build on MSVC
|
||||
|
||||
---
|
||||
src/ccd/vec3.h | 2 +-
|
||||
src/support.h | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/ccd/vec3.h b/src/ccd/vec3.h
|
||||
index b0c1b33..014531c 100644
|
||||
--- a/src/ccd/vec3.h
|
||||
+++ b/src/ccd/vec3.h
|
||||
@@ -93,7 +93,7 @@ typedef struct _ccd_vec3_t ccd_vec3_t;
|
||||
/**
|
||||
* Holds origin (0,0,0) - this variable is meant to be read-only!
|
||||
*/
|
||||
-extern ccd_vec3_t *ccd_vec3_origin;
|
||||
+extern _ccd_export ccd_vec3_t *ccd_vec3_origin;
|
||||
|
||||
/**
|
||||
* Array of points uniformly distributed on unit sphere.
|
||||
diff --git a/src/support.h b/src/support.h
|
||||
index 3372f5e..2e75df7 100644
|
||||
--- a/src/support.h
|
||||
+++ b/src/support.h
|
||||
@@ -37,7 +37,7 @@ _ccd_inline void ccdSupportCopy(ccd_support_t *, const ccd_support_t *s);
|
||||
* Computes support point of obj1 and obj2 in direction dir.
|
||||
* Support point is returned via supp.
|
||||
*/
|
||||
-void __ccdSupport(const void *obj1, const void *obj2,
|
||||
+_ccd_export void __ccdSupport(const void *obj1, const void *obj2,
|
||||
const ccd_vec3_t *dir, const ccd_t *ccd,
|
||||
ccd_support_t *supp);
|
||||
|
||||
--
|
||||
2.12.2.windows.2
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: libccd
|
||||
Version: 2.0.0
|
||||
Source: ccd
|
||||
Version: 2.0.0-2
|
||||
Description: Library for collision detection between two convex shapes
|
30
ports/ccd/portfile.cmake
Normal file
30
ports/ccd/portfile.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO danfis/libccd
|
||||
REF 64f02f741ac94fccd0fb660a5bffcbe6d01d9939
|
||||
SHA512 901b09d57e119e4661b3556bbefe5a4d58cb843bff5c76ee3952fe379ff183c878a04e86e6192006c11012309c6e93d42319e9d606abdf7ad723f6d8afeea47f
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001_fix_symbols_export.patch)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/ccd")
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/BSD-LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/ccd RENAME copyright)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/doc)
|
4
ports/ccfits/CONTROL
Normal file
4
ports/ccfits/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: ccfits
|
||||
Version: 2.5-1
|
||||
Description: CCfits is an object oriented interface to the cfitsio library. It is designed to make the capabilities of cfitsio available to programmers working in C++.
|
||||
Build-Depends: cfitsio
|
495
ports/ccfits/dll_exports.patch
Normal file
495
ports/ccfits/dll_exports.patch
Normal file
@ -0,0 +1,495 @@
|
||||
Index: FITS.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- FITS.h (date 1502267716000)
|
||||
+++ FITS.h (revision )
|
||||
@@ -21,6 +21,8 @@
|
||||
#include "HDUCreator.h"
|
||||
// FitsError
|
||||
#include "FitsError.h"
|
||||
+//DLL Exporting
|
||||
+#include "ccfits_export.h"
|
||||
|
||||
namespace CCfits {
|
||||
class FITSBase;
|
||||
@@ -665,9 +667,8 @@
|
||||
|
||||
|
||||
|
||||
- class FITS
|
||||
- {
|
||||
-
|
||||
+ class CCFITS_EXPORT FITS
|
||||
+ {
|
||||
public:
|
||||
|
||||
|
||||
Index: HDU.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- HDU.h (date 1502267716000)
|
||||
+++ HDU.h (revision )
|
||||
@@ -568,7 +568,7 @@
|
||||
|
||||
|
||||
|
||||
- class HDU
|
||||
+ class CCFITS_EXPORT HDU
|
||||
{
|
||||
|
||||
public:
|
||||
Index: Table.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- Table.h (date 1502267716000)
|
||||
+++ Table.h (revision )
|
||||
@@ -268,7 +268,7 @@
|
||||
|
||||
|
||||
|
||||
- class Table : public ExtHDU //## Inherits: <unnamed>%3804A126EB10
|
||||
+ class CCFITS_EXPORT Table : public ExtHDU //## Inherits: <unnamed>%3804A126EB10
|
||||
{
|
||||
|
||||
public:
|
||||
Index: Column.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- Column.h (date 1502267716000)
|
||||
+++ Column.h (revision )
|
||||
@@ -838,14 +838,14 @@
|
||||
|
||||
|
||||
|
||||
- class Column
|
||||
+ class CCFITS_EXPORT Column
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
|
||||
- class RangeError : public FitsException //## Inherits: <unnamed>%3946526D031A
|
||||
+ class CCFITS_EXPORT RangeError : public FitsException //## Inherits: <unnamed>%3946526D031A
|
||||
{
|
||||
public:
|
||||
RangeError (const String& msg, bool silent = true);
|
||||
@@ -857,7 +857,7 @@
|
||||
|
||||
|
||||
|
||||
- class InvalidDataType : public FitsException //## Inherits: <unnamed>%3947CF30033E
|
||||
+ class CCFITS_EXPORT InvalidDataType : public FitsException //## Inherits: <unnamed>%3947CF30033E
|
||||
{
|
||||
public:
|
||||
InvalidDataType (const String& str = string(), bool silent = true);
|
||||
@@ -869,7 +869,7 @@
|
||||
|
||||
|
||||
|
||||
- class InvalidRowParameter : public FitsException //## Inherits: <unnamed>%39B5310F01A0
|
||||
+ class CCFITS_EXPORT InvalidRowParameter : public FitsException //## Inherits: <unnamed>%39B5310F01A0
|
||||
{
|
||||
public:
|
||||
InvalidRowParameter (const String& diag, bool silent = true);
|
||||
@@ -881,7 +881,7 @@
|
||||
|
||||
|
||||
|
||||
- class WrongColumnType : public FitsException //## Inherits: <unnamed>%39B545780082
|
||||
+ class CCFITS_EXPORT WrongColumnType : public FitsException //## Inherits: <unnamed>%39B545780082
|
||||
{
|
||||
public:
|
||||
WrongColumnType (const String& diag, bool silent = true);
|
||||
@@ -893,7 +893,7 @@
|
||||
|
||||
|
||||
|
||||
- class UnspecifiedLengths : public FitsException //## Inherits: <unnamed>%3A018C9D007D
|
||||
+ class CCFITS_EXPORT UnspecifiedLengths : public FitsException //## Inherits: <unnamed>%3A018C9D007D
|
||||
{
|
||||
public:
|
||||
UnspecifiedLengths (const String& diag, bool silent = true);
|
||||
@@ -905,7 +905,7 @@
|
||||
|
||||
|
||||
|
||||
- class InvalidRowNumber : public FitsException //## Inherits: <unnamed>%3B0A850F0307
|
||||
+ class CCFITS_EXPORT InvalidRowNumber : public FitsException //## Inherits: <unnamed>%3B0A850F0307
|
||||
{
|
||||
public:
|
||||
InvalidRowNumber (const String& diag, bool silent = true);
|
||||
@@ -917,7 +917,7 @@
|
||||
|
||||
|
||||
|
||||
- class InsufficientElements : public FitsException //## Inherits: <unnamed>%3B0BE611010A
|
||||
+ class CCFITS_EXPORT InsufficientElements : public FitsException //## Inherits: <unnamed>%3B0BE611010A
|
||||
{
|
||||
public:
|
||||
InsufficientElements (const String& msg, bool silent = true);
|
||||
@@ -929,7 +929,7 @@
|
||||
|
||||
|
||||
|
||||
- class NoNullValue : public FitsException //## Inherits: <unnamed>%3B0D589A0092
|
||||
+ class CCFITS_EXPORT NoNullValue : public FitsException //## Inherits: <unnamed>%3B0D589A0092
|
||||
{
|
||||
public:
|
||||
NoNullValue (const String& diag, bool silent = true);
|
||||
@@ -941,7 +941,7 @@
|
||||
|
||||
|
||||
|
||||
- class InvalidNumberOfRows : public FitsException //## Inherits: <unnamed>%3B20EB8B0205
|
||||
+ class CCFITS_EXPORT InvalidNumberOfRows : public FitsException //## Inherits: <unnamed>%3B20EB8B0205
|
||||
{
|
||||
public:
|
||||
InvalidNumberOfRows (int number, bool silent = true);
|
||||
Index: AsciiTable.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- AsciiTable.h (date 1502267716000)
|
||||
+++ AsciiTable.h (revision )
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
|
||||
|
||||
- class AsciiTable : public Table //## Inherits: <unnamed>%3804A75CE420
|
||||
+ class CCFITS_EXPORT AsciiTable : public Table //## Inherits: <unnamed>%3804A75CE420
|
||||
{
|
||||
|
||||
public:
|
||||
Index: CCfits.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- CCfits.h (date 1502267716000)
|
||||
+++ CCfits.h (revision )
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <sys/types.h>
|
||||
#include "longnam.h"
|
||||
#include "float.h"
|
||||
-
|
||||
+#include "ccfits_export.h"
|
||||
|
||||
namespace CCfits {
|
||||
/*! \namespace CCfits
|
||||
@@ -32,8 +32,8 @@
|
||||
static const int BITPIX = -32;
|
||||
static const int NAXIS = 2;
|
||||
static const int MAXDIM = 99;
|
||||
- extern const unsigned long USBASE;
|
||||
- extern const unsigned long ULBASE;
|
||||
+ extern const CCFITS_EXPORT unsigned long USBASE;
|
||||
+ extern const CCFITS_EXPORT unsigned long ULBASE;
|
||||
|
||||
extern char BSCALE[7];
|
||||
extern char BZERO[6];
|
||||
Index: FITSBase.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- FITSBase.h (date 1502267716000)
|
||||
+++ FITSBase.h (revision )
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
|
||||
|
||||
- class FITSBase
|
||||
+ class CCFITS_EXPORT FITSBase
|
||||
{
|
||||
|
||||
public:
|
||||
Index: Keyword.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- Keyword.h (date 1502267716000)
|
||||
+++ Keyword.h (revision )
|
||||
@@ -195,7 +195,7 @@
|
||||
|
||||
|
||||
|
||||
- class Keyword
|
||||
+ class CCFITS_EXPORT Keyword
|
||||
{
|
||||
|
||||
public:
|
||||
Index: ExtHDU.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- ExtHDU.h (date 1502267716000)
|
||||
+++ ExtHDU.h (revision )
|
||||
@@ -435,7 +435,7 @@
|
||||
|
||||
|
||||
|
||||
- class ExtHDU : public HDU //## Inherits: <unnamed>%38048213E7A8
|
||||
+ class CCFITS_EXPORT ExtHDU : public HDU //## Inherits: <unnamed>%38048213E7A8
|
||||
{
|
||||
|
||||
public:
|
||||
Index: PHDU.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- PHDU.h (date 1502267716000)
|
||||
+++ PHDU.h (revision )
|
||||
@@ -264,7 +264,7 @@
|
||||
|
||||
|
||||
|
||||
- class PHDU : public HDU //## Inherits: <unnamed>%394E6F9800C3
|
||||
+ class CCFITS_EXPORT PHDU : public HDU //## Inherits: <unnamed>%394E6F9800C3
|
||||
{
|
||||
|
||||
public:
|
||||
Index: BinTable.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- BinTable.h (date 1502267716000)
|
||||
+++ BinTable.h (revision )
|
||||
@@ -127,7 +127,7 @@
|
||||
|
||||
|
||||
|
||||
- class BinTable : public Table //## Inherits: <unnamed>%3804A7E75F10
|
||||
+ class CCFITS_EXPORT BinTable : public Table //## Inherits: <unnamed>%3804A7E75F10
|
||||
{
|
||||
|
||||
public:
|
||||
Index: Image.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- Image.h (date 1502267716000)
|
||||
+++ Image.h (revision )
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
template <typename T>
|
||||
- class Image
|
||||
+ class Image
|
||||
{
|
||||
|
||||
public:
|
||||
Index: ColumnCreator.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- ColumnCreator.h (date 1502267716000)
|
||||
+++ ColumnCreator.h (revision )
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
|
||||
|
||||
- class ColumnCreator
|
||||
+ class CCFITS_EXPORT ColumnCreator
|
||||
{
|
||||
|
||||
public:
|
||||
Index: FitsError.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- FitsError.h (date 1502267716000)
|
||||
+++ FitsError.h (revision )
|
||||
@@ -14,6 +14,7 @@
|
||||
//#include <iostream>
|
||||
//#include <stl.h>
|
||||
#include <string>
|
||||
+#include "ccfits_export.h"
|
||||
using std::string;
|
||||
|
||||
|
||||
@@ -90,7 +91,7 @@
|
||||
|
||||
|
||||
|
||||
- class FitsException
|
||||
+ class CCFITS_EXPORT FitsException
|
||||
{
|
||||
public:
|
||||
FitsException (const string& msg, bool& silent);
|
||||
@@ -109,7 +110,7 @@
|
||||
|
||||
|
||||
|
||||
- class FitsError : public FitsException //## Inherits: <unnamed>%399170BD017D
|
||||
+ class CCFITS_EXPORT FitsError : public FitsException //## Inherits: <unnamed>%399170BD017D
|
||||
{
|
||||
public:
|
||||
FitsError (int errornum, bool silent = true);
|
||||
@@ -123,7 +124,7 @@
|
||||
|
||||
|
||||
|
||||
- class FitsFatal
|
||||
+ class CCFITS_EXPORT FitsFatal
|
||||
{
|
||||
public:
|
||||
FitsFatal (const string& diag);
|
||||
Index: HDUCreator.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- HDUCreator.h (date 1502267716000)
|
||||
+++ HDUCreator.h (revision )
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
|
||||
|
||||
- class HDUCreator
|
||||
+ class CCFITS_EXPORT HDUCreator
|
||||
{
|
||||
|
||||
public:
|
||||
Index: ccfits_export.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- ccfits_export.h (revision )
|
||||
+++ ccfits_export.h (revision )
|
||||
@@ -0,0 +1,42 @@
|
||||
+
|
||||
+#ifndef CCFITS_EXPORT_H
|
||||
+#define CCFITS_EXPORT_H
|
||||
+
|
||||
+#ifdef CCFITS_STATIC_DEFINE
|
||||
+# define CCFITS_EXPORT
|
||||
+# define CCFITS_NO_EXPORT
|
||||
+#else
|
||||
+# ifndef CCFITS_EXPORT
|
||||
+# ifdef CCfits_EXPORTS
|
||||
+ /* We are building this library */
|
||||
+# define CCFITS_EXPORT __declspec(dllexport)
|
||||
+# else
|
||||
+ /* We are using this library */
|
||||
+# define CCFITS_EXPORT __declspec(dllimport)
|
||||
+# endif
|
||||
+# endif
|
||||
+
|
||||
+# ifndef CCFITS_NO_EXPORT
|
||||
+# define CCFITS_NO_EXPORT
|
||||
+# endif
|
||||
+#endif
|
||||
+
|
||||
+#ifndef CCFITS_DEPRECATED
|
||||
+# define CCFITS_DEPRECATED __declspec(deprecated)
|
||||
+#endif
|
||||
+
|
||||
+#ifndef CCFITS_DEPRECATED_EXPORT
|
||||
+# define CCFITS_DEPRECATED_EXPORT CCFITS_EXPORT CCFITS_DEPRECATED
|
||||
+#endif
|
||||
+
|
||||
+#ifndef CCFITS_DEPRECATED_NO_EXPORT
|
||||
+# define CCFITS_DEPRECATED_NO_EXPORT CCFITS_NO_EXPORT CCFITS_DEPRECATED
|
||||
+#endif
|
||||
+
|
||||
+#if 0 /* DEFINE_NO_DEPRECATED */
|
||||
+# ifndef CCFITS_NO_DEPRECATED
|
||||
+# define CCFITS_NO_DEPRECATED
|
||||
+# endif
|
||||
+#endif
|
||||
+
|
||||
+#endif
|
||||
Index: FITSUtil.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- FITSUtil.h (date 1502267716000)
|
||||
+++ FITSUtil.h (revision )
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string>
|
||||
// FitsError
|
||||
#include "FitsError.h"
|
||||
+#include "ccfits_export.h"
|
||||
#include <typeinfo>
|
||||
|
||||
|
||||
@@ -287,21 +288,21 @@
|
||||
template <typename T>
|
||||
void swap(std::vector<T>& left, std::vector<T>& right);
|
||||
|
||||
- string lowerCase(const string& inputString);
|
||||
+ string CCFITS_EXPORT lowerCase(const string& inputString);
|
||||
|
||||
- string upperCase(const string& inputString);
|
||||
+ string CCFITS_EXPORT upperCase(const string& inputString);
|
||||
|
||||
// Check if a file name includes an image compression specifier,
|
||||
// and return its location if it exists.
|
||||
- string::size_type checkForCompressString(const string& fileName);
|
||||
+ string::size_type CCFITS_EXPORT checkForCompressString(const string& fileName);
|
||||
|
||||
- struct InvalidConversion : public FitsException
|
||||
+ struct CCFITS_EXPORT InvalidConversion : public FitsException
|
||||
{
|
||||
InvalidConversion(const string& diag, bool silent=false);
|
||||
|
||||
};
|
||||
|
||||
- struct MatchStem : public std::binary_function<string,string,bool>
|
||||
+ struct CCFITS_EXPORT MatchStem : public std::binary_function<string,string,bool>
|
||||
{
|
||||
bool operator()(const string& left, const string& right) const;
|
||||
};
|
||||
@@ -323,7 +324,7 @@
|
||||
|
||||
char** CharArray(const std::vector<string>& inArray);
|
||||
|
||||
- string FITSType2String( int typeInt );
|
||||
+ string CCFITS_EXPORT FITSType2String( int typeInt );
|
||||
|
||||
|
||||
template <typename S, typename T>
|
||||
@@ -633,7 +634,7 @@
|
||||
|
||||
|
||||
|
||||
- class UnrecognizedType : public FitsException //## Inherits: <unnamed>%3CE143AB00C6
|
||||
+ class CCFITS_EXPORT UnrecognizedType : public FitsException //## Inherits: <unnamed>%3CE143AB00C6
|
||||
{
|
||||
public:
|
||||
UnrecognizedType (string diag, bool silent = true);
|
||||
Index: KeywordCreator.h
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
--- KeywordCreator.h (date 1502267716000)
|
||||
+++ KeywordCreator.h (revision )
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
|
||||
|
||||
- class KeywordCreator
|
||||
+ class CCFITS_EXPORT KeywordCreator
|
||||
{
|
||||
|
||||
public:
|
56
ports/ccfits/portfile.cmake
Normal file
56
ports/ccfits/portfile.cmake
Normal file
@ -0,0 +1,56 @@
|
||||
# Common Ambient Variables:
|
||||
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
|
||||
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
||||
# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
|
||||
# PORT = current port name (zlib, etc)
|
||||
# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
|
||||
# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
|
||||
# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
|
||||
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
|
||||
# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
#removes current source to prevent static builds from using patched source code
|
||||
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/src/CCfits)
|
||||
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/src/CCfits-2.5.tar.gz.extracted)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/CCfits)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://heasarc.gsfc.nasa.gov/fitsio/ccfits/CCfits-2.5.tar.gz"
|
||||
FILENAME "CCfits-2.5.tar.gz"
|
||||
SHA512 63ab4d153063960510cf60651d5c832824cf85f937f84adc5390c7c2fb46eb8e9f5d8cda2554d79d24c7a4f1b6cf0b7a6e20958fb69920b65d7c362c0a5f26b5
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/CCfits
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/dll_exports.patch"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/CCfits.dll ${CURRENT_PACKAGES_DIR}/bin/CCfits.dll)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/CCfits.dll ${CURRENT_PACKAGES_DIR}/debug/bin/CCfits.dll)
|
||||
endif()
|
||||
|
||||
# Remove duplicate include files
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/ccfits RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: cereal
|
||||
Version: 1.2.2
|
||||
Version: 1.2.2-1
|
||||
Description: a header-only C++11 serialization library (built in support for binary, XML and JSon)
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: ceres
|
||||
Version: 1.12.0-4
|
||||
Version: 1.13.0-1
|
||||
Build-Depends:suitesparse, eigen3, clapack, gflags, glog
|
||||
Description: non-linear optimization package
|
||||
Description: non-linear optimization package
|
||||
|
@ -22,8 +22,8 @@ set(VCPKG_PLATFORM_TOOLSET "v140") # Force VS2015 because VS2017 compiler return
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ceres-solver/ceres-solver
|
||||
REF 1.12.0
|
||||
SHA512 4b4cba5627fbd80a626e8a31d9f561d6cee1c8345970304e4b5b163a9dcadc6d636257d1046ecede00781a11229ef671ee89c3e7e6baf15f49f63f36e6a2ebe1
|
||||
REF 1.13.0
|
||||
SHA512 b548a303d1d4eeb75545551c381624879e363a2eba13cdd998fb3bea9bd51f6b9215b579d59d6133117b70d8bf35e18b983400c3d6200403210c18fcb1886ebb
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
|
3
ports/cfitsio/CONTROL
Normal file
3
ports/cfitsio/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: cfitsio
|
||||
Version: 3.410-1
|
||||
Description: Library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format
|
29
ports/cfitsio/portfile.cmake
Normal file
29
ports/cfitsio/portfile.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cfitsio)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio3410.tar.gz"
|
||||
FILENAME "cfitsio3410.tar.gz"
|
||||
SHA512 b2ac31ab17e19eeeb4f1601f42f348402c0a4ab03725dbf74fe75eaabbee2f44f64f0c0ee7f0b2688bd93a9cc0dccf29f07e73b9148fff97fc78bebdbb5f6f0f
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Remove duplicate include files
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
# move DLLs to bin directories for dynamic builds
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cfitsio.dll ${CURRENT_PACKAGES_DIR}/bin/cfitsio.dll)
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/cfitsio.dll ${CURRENT_PACKAGES_DIR}/debug/bin/cfitsio.dll)
|
||||
endif()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/cfitsio RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: charls
|
||||
Version: 2.0.0
|
||||
Description: CharLS, a C++ JPEG-LS library implementation.
|
||||
Version: 2.0.0-1
|
||||
Description: CharLS, a C++ JPEG-LS library implementation.
|
||||
|
3
ports/chmlib/CONTROL
Normal file
3
ports/chmlib/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: chmlib
|
||||
Version: 0.40-1
|
||||
Description: CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. Right now, it is a very simple library, but sufficient for dealing with all of the .chm files I've come across. Due to the fairly well-designed indexing built into this particular file format, even a small library is able to gain reasonably good performance indexing into ITSS archives.
|
211
ports/chmlib/chm.vcxproj
Normal file
211
ports/chmlib/chm.vcxproj
Normal file
@ -0,0 +1,211 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{3bafee52-fe1a-494e-ab46-89bf77ed63a7}</ProjectGuid>
|
||||
<RootNamespace>chmLibExe1</RootNamespace>
|
||||
<ProjectName>chm</ProjectName>
|
||||
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<!--Overriden at build time.-->
|
||||
<OutDir>..\..\..\x86-windows-static-dbg\</OutDir>
|
||||
<IntDir>..\..\..\x86-windows-static-dbg\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<!--Overriden at build time.-->
|
||||
<OutDir>..\..\..\x86-windows-static-rel\</OutDir>
|
||||
<IntDir>..\..\..\x86-windows-static-rel\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<!--Overriden at build time.-->
|
||||
<OutDir>..\..\..\x64-windows-static-dbg\</OutDir>
|
||||
<IntDir>..\..\..\x64-windows-static-dbg\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<!--Overriden at build time.-->
|
||||
<OutDir>..\..\..\x64-windows-static-rel\</OutDir>
|
||||
<IntDir>..\..\..\x64-windows-static-rel\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>WIN32;CHM_MT;CHM_DEBUG;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<DisableSpecificWarnings>4018;4057;4127;4189;4244;4267;4295;4324;4458;4477;4701;4706;4800;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>
|
||||
</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, libcmt.lib, msvcrt.lib, libcd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
<Lib>
|
||||
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<Verbose>true</Verbose>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, libcmt.lib, msvcrt.lib, libcd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
<LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>WIN32;CHM_MT;CHM_DEBUG;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<DisableSpecificWarnings>4018;4057;4127;4189;4244;4267;4295;4324;4458;4477;4701;4706;4800;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>
|
||||
</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, libcmt.lib, msvcrt.lib, libcd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
<Lib>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<Verbose>true</Verbose>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, libcmt.lib, msvcrt.lib, libcd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
<LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>CHM_MT;WIN32;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<DisableSpecificWarnings>4018;4057;4127;4189;4244;4267;4295;4324;4458;4477;4701;4706;4800;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<Optimization>Full</Optimization>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>
|
||||
</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
</Link>
|
||||
<Lib>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<Verbose>true</Verbose>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>CHM_MT;WIN32;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<DisableSpecificWarnings>4018;4057;4127;4189;4244;4267;4295;4324;4458;4477;4701;4706;4800;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<Optimization>Full</Optimization>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>
|
||||
</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
</Link>
|
||||
<Lib>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<Verbose>true</Verbose>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="chm_lib.c" />
|
||||
<ClCompile Include="lzx.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="chm_lib.h" />
|
||||
<ClInclude Include="lzx.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
109
ports/chmlib/enum_chmLib.vcxproj
Normal file
109
ports/chmlib/enum_chmLib.vcxproj
Normal file
@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="enum_chmLib.c" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{2c833145-059b-47d5-b0fe-b3ac6ff1ccb0}</ProjectGuid>
|
||||
<RootNamespace>enum_chmLib</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>..\..\..\x86-windows-static-rel\</OutDir>
|
||||
<IntDir>..\..\..\x86-windows-static-rel\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>..\..\..\x64-windows-static-rel\</OutDir>
|
||||
<IntDir>..\..\..\x64-windows-static-rel\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>WIN32;_UNICODE;UNICODE;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<ShowIncludes>true</ShowIncludes>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>$(OutputPath)chm.lib</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>WIN32;_UNICODE;UNICODE;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<ShowIncludes>true</ShowIncludes>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>$(OutputPath)chm.lib</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
100
ports/chmlib/enumdir_chmLib.vcxproj
Normal file
100
ports/chmlib/enumdir_chmLib.vcxproj
Normal file
@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="enumdir_chmLib.c" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{bb0bfe9a-7d13-44a0-b2b5-3b69a07a77e8}</ProjectGuid>
|
||||
<RootNamespace>enumdir_chmLib</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>..\..\..\x86-windows-static-rel\</OutDir>
|
||||
<IntDir>..\..\..\x86-windows-static-rel\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>..\..\..\x64-windows-static-rel\</OutDir>
|
||||
<IntDir>..\..\..\x64-windows-static-rel\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>$(OutputPath)chm.lib</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>$(OutputPath)chm.lib</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
100
ports/chmlib/extract_chmLib.vcxproj
Normal file
100
ports/chmlib/extract_chmLib.vcxproj
Normal file
@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{8F41248C-8E62-4822-9A85-4CAF00AACEEE}</ProjectGuid>
|
||||
<RootNamespace>extract_chmLib</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>..\..\..\x86-windows-static-rel\</OutDir>
|
||||
<IntDir>..\..\..\x86-windows-static-rel\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>..\..\..\x64-windows-static-rel\</OutDir>
|
||||
<IntDir>..\..\..\x64-windows-static-rel\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>$(OutputPath)chm.lib</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<MultiProcessorCompilation>false</MultiProcessorCompilation>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>$(OutputPath)chm.lib</AdditionalDependencies>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<ShowProgress>LinkVerbose</ShowProgress>
|
||||
<IgnoreSpecificDefaultLibraries>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="extract_chmLib.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
66
ports/chmlib/portfile.cmake
Normal file
66
ports/chmlib/portfile.cmake
Normal file
@ -0,0 +1,66 @@
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "Warning: Dynamic building not supported. Building static.")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
set(CHMLIB_VERSION chmlib-0.40)
|
||||
set(CHMLIB_FILENAME ${CHMLIB_VERSION}.zip)
|
||||
set(CHMLIB_URL http://www.jedrea.com/chmlib/${CHMLIB_FILENAME})
|
||||
set(CHMLIB_SRC ${CURRENT_BUILDTREES_DIR}/src/${CHMLIB_VERSION}/src)
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_download_distfile(
|
||||
ARCHIVE
|
||||
URLS ${CHMLIB_URL}
|
||||
FILENAME ${CHMLIB_FILENAME}
|
||||
SHA512 ad3b0d49fcf99e724c0c38b9c842bae9508d0e4ad47122b0f489c113160f5344223d311abb79f25cbb0b662bb00e2925d338d60dd20a0c309bda2822cda4cd24
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(GLOB VCXPROJS "${VCPKG_ROOT_DIR}/ports/${PORT}/*.vcxproj")
|
||||
file(COPY ${VCXPROJS} DESTINATION ${CHMLIB_SRC})
|
||||
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${CHMLIB_SRC}/chm.vcxproj
|
||||
RELEASE_CONFIGURATION Release
|
||||
DEBUG_CONFIGURATION Debug
|
||||
TARGET Build
|
||||
OPTIONS /v:diagnostic
|
||||
)
|
||||
|
||||
#enum_chmLib RELEASE only
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${CHMLIB_SRC}/enum_chmLib.vcxproj
|
||||
RELEASE_CONFIGURATION Release
|
||||
DEBUG_CONFIGURATION Release
|
||||
TARGET Build
|
||||
OPTIONS /v:diagnostic
|
||||
)
|
||||
|
||||
#enumdir_chmLib RELEASE only
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${CHMLIB_SRC}/enumdir_chmLib.vcxproj
|
||||
RELEASE_CONFIGURATION Release
|
||||
DEBUG_CONFIGURATION Release
|
||||
TARGET Build
|
||||
OPTIONS /v:diagnostic
|
||||
)
|
||||
|
||||
#extract_chmLib RELEASE only
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${CHMLIB_SRC}/extract_chmLib.vcxproj
|
||||
RELEASE_CONFIGURATION Release
|
||||
DEBUG_CONFIGURATION Release
|
||||
TARGET Build
|
||||
OPTIONS /v:diagnostic
|
||||
)
|
||||
|
||||
file(INSTALL ${CHMLIB_SRC}/chm_lib.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${VCPKG_TARGET_ARCHITECTURE}-windows-static-rel/chm.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${VCPKG_TARGET_ARCHITECTURE}-windows-static-dbg/chm.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${VCPKG_TARGET_ARCHITECTURE}-windows-static-rel/enum_chmLib.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${VCPKG_TARGET_ARCHITECTURE}-windows-static-rel/enumdir_chmLib.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${VCPKG_TARGET_ARCHITECTURE}-windows-static-rel/extract_chmLib.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/chmlib-0.40/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/chmlib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/chmlib/COPYING ${CURRENT_PACKAGES_DIR}/share/chmlib/copyright)
|
@ -1,4 +1,4 @@
|
||||
Source: clapack
|
||||
Version: 3.2.1
|
||||
Version: 3.2.1-1
|
||||
Description: CLAPACK (f2c'ed version of LAPACK)
|
||||
Build-Depends: openblas
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: clockutils
|
||||
Version: 1.1.1-3651f232c27074c4ceead169e223edf5f00247c5
|
||||
Version: 1.1.1-3651f232c27074c4ceead169e223edf5f00247c5-1
|
||||
Description: A lightweight c++ library for commonly needed tasks. Optimized for simplicity and speed.
|
||||
|
3
ports/console-bridge/CONTROL
Normal file
3
ports/console-bridge/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: console-bridge
|
||||
Version: 0.3.2-2
|
||||
Description: a ROS-independent package for logging that seamlessly pipes into rosconsole/rosout for ROS-dependent packages.
|
31
ports/console-bridge/License.txt
Normal file
31
ports/console-bridge/License.txt
Normal file
@ -0,0 +1,31 @@
|
||||
Software License Agreement (BSD License)
|
||||
|
||||
Copyright (c) 2008, Willow Garage, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of the Willow Garage nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
24
ports/console-bridge/portfile.cmake
Normal file
24
ports/console-bridge/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ros/console_bridge
|
||||
REF 0.3.2
|
||||
SHA512 41fa5340d7ba79c887ef73eb4fda7b438ed91febd224934ae4658697e4c9e43357207e1b3e191ecce3c97cb9a87b0556372832735a268261bc798cc7683aa207
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "CMake")
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/console-bridge ${CURRENT_PACKAGES_DIR}/share/console_bridge)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/console-bridge RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: corrade
|
||||
Version: jun2017-2
|
||||
Version: jun2017-3
|
||||
Description: C++11/C++14 multiplatform utility library http://mosra.cz/blog/corrade.php
|
||||
|
@ -3,7 +3,7 @@ vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO mosra/corrade
|
||||
REF c182fe636894a998f241212d0205d0c126b7926f
|
||||
SHA512 e62486368eab9c5f90ef9f4af91500f465d9e3baa6e5f6e9f2a49844d09676faefcb965a9d5b27a54eda19436af6b23dcda19504be6cd0dcd52dfad2ad4bfa21
|
||||
SHA512 d664c7884c0c6c7977261a851948b2b591ac0fbdbcfddab1d8e578e629a252f48fa786cf9f96525e10aa76c95919dfc3452ccbe5e930aa4a69e61269e4ee07ee
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
@ -44,4 +44,4 @@ endif()
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/corrade)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/corrade/COPYING ${CURRENT_PACKAGES_DIR}/share/corrade/copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_copy_pdbs()
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: cpp-redis
|
||||
Version: 3.5.2
|
||||
Version: 3.5.2-2
|
||||
Build-Depends: tacopie
|
||||
Description: cpp-redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.
|
||||
|
8
ports/cpp-redis/tacopie/CMakeLists.txt
Normal file
8
ports/cpp-redis/tacopie/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
find_library(TACOPIE tacopie)
|
||||
find_path(TACOPIE_H tacopie/tacopie)
|
||||
|
||||
message(STATUS "TACOPIE_H: ${TACOPIE_H}")
|
||||
|
||||
add_library(tacopie INTERFACE)
|
||||
target_link_libraries(tacopie INTERFACE "${TACOPIE}")
|
||||
target_include_directories(tacopie INTERFACE "${TACOPIE_H}")
|
@ -1,4 +1,4 @@
|
||||
Source: cppcms
|
||||
Version: 1.1.0
|
||||
Version: 1.1.0-1
|
||||
Description: CppCMS is a Free High Performance Web Development Framework (not a CMS) aimed at Rapid Web Application Development
|
||||
Build-Depends: icu, pcre, openssl, zlib
|
||||
|
@ -1,5 +1,5 @@
|
||||
Source: cpprestsdk
|
||||
Version: 2.9.0-2
|
||||
Build-Depends: zlib [windows], openssl [windows], boost [windows], websocketpp [windows]
|
||||
Version: 2.9.0-3
|
||||
Build-Depends: zlib (windows), openssl (windows), boost (windows), websocketpp (windows)
|
||||
Description: C++11 JSON, REST, and OAuth library
|
||||
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
|
||||
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
|
||||
|
@ -4,7 +4,7 @@ vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Microsoft/cpprestsdk
|
||||
REF v2.9.0
|
||||
SHA512 c75de6ad33b3e8d2c6ba7c0955ed851d557f78652fb38a565de0cfbc99e7db89cb6fa405857512e5149df80356c51ae9335abd914c3c593fa6658ac50adf4e29
|
||||
SHA512 7f6af05e2aaf49fb5ba24f4fac43b7787345d46913831504925cefc60d1b62e38457e1d628d5de8b0db891b59716d2bfe63a494ca0b337d67fc9ca5447a5ba9b
|
||||
HEAD_REF master
|
||||
)
|
||||
if(NOT VCPKG_USE_HEAD_VERSION)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: cppwinrt
|
||||
Version: feb2017_refresh-14393
|
||||
Version: spring_2017_creators_update_for_vs_15.3
|
||||
Description: C++/WinRT is a standard C++ language projection for the Windows Runtime.
|
||||
|
@ -1,18 +1,18 @@
|
||||
include(vcpkg_common_functions)
|
||||
find_program(GIT git)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cppwinrt-february_2017_refresh)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cppwinrt-spring_2017_creators_update_for_vs_15.3)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/Microsoft/cppwinrt/archive/february_2017_refresh.tar.gz"
|
||||
FILENAME "cppwinrt-february_2017_refresh.tar.gz"
|
||||
SHA512 0e2ed94d65ae4c7297ae4d82d64a43fa59fac7b35fbe42ea939f135f0f6eb867f57fac70b6a9cc9a78912de75aa4482d48007f83a3781b147d237ae637fdaa0e
|
||||
URLS "https://github.com/Microsoft/cppwinrt/archive/spring_2017_creators_update_for_vs_15.3.tar.gz"
|
||||
FILENAME "cppwinrt-spring_2017_creators_update_for_vs_15.3.tar.gz"
|
||||
SHA512 779586122552e49a79aff08f4476905e00c3b4ad3dbc502240e9a7cc59ec0e4ab6304149a66505923ab84d2b334059de9e18c84a5b0ed6bde106d19119ef911f
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
# Put the licence file where vcpkg expects it
|
||||
file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppwinrt/license.txt)
|
||||
file(COPY ${SOURCE_PATH}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppwinrt/license.txt)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cppwinrt/license.txt ${CURRENT_PACKAGES_DIR}/share/cppwinrt/copyright)
|
||||
|
||||
# Copy the cppwinrt header files
|
||||
file(GLOB HEADER_FILES ${SOURCE_PATH}/10.0.14393.0/winrt/*)
|
||||
file(GLOB HEADER_FILES ${SOURCE_PATH}/10.0.15063.0/winrt/*)
|
||||
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/winrt)
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: cpr
|
||||
Version: 1.3.0
|
||||
Version: 1.3.0-1
|
||||
Description: C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project.
|
||||
Build-Depends: curl
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: cryptopp
|
||||
Version: 5.6.5
|
||||
Version: 5.6.5-1
|
||||
Description: Crypto++ is a free C++ class library of cryptographic schemes.
|
||||
|
@ -92,5 +92,5 @@ install(
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(DIRECTORY "${COMMON_INCLUDES}/" DESTINATION include FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY "${COMMON_INCLUDES}/ctemplate" DESTINATION include FILES_MATCHING PATTERN "*.h")
|
||||
endif()
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: ctemplate
|
||||
Version: 2017-06-23-44b7c5b918a08ad561c63e9d28beecb40c10ebca
|
||||
Version: 2017-06-23-44b7c5-3
|
||||
Description: C++ CTemplate system
|
||||
|
@ -1,27 +1,20 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(GIT_REF 44b7c5b918a08ad561c63e9d28beecb40c10ebca)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO OlafvdSpek/ctemplate
|
||||
REF 44b7c5b918a08ad561c63e9d28beecb40c10ebca
|
||||
SHA512 b572f6d0d182e977d3a459e68bde6244dad7196c44c16407990dc1fb6a7a93bcd8d6851e515d50b6051c1d011f71695f895f6ab233664baadae0bf6a3d464305
|
||||
REF 4b7e6c52dc7cbb4d51c9abcebcbac91ec256a62b
|
||||
SHA512 9317fb26f22892b0bc2ca17cbccb5b084091050aa88766b4ed673a690bc4cdb9cd882134fbcd7ed3ee156f6a6937218717765143796d7e98b532355867ed042b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_find_acquire_program(PYTHON2)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-msvc.patch
|
||||
)
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DPYTHON_EXECUTABLE=${PYTHON2}
|
||||
OPTIONS -DPYTHON_EXECUTABLE=${PYTHON3}
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: cunit
|
||||
Version: 2.1.3-1
|
||||
Version: 2.1.3-2
|
||||
Description: CUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces
|
||||
|
@ -1,20 +1,20 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index ed3f38a..d6480b7 100644
|
||||
index 0caf3dc..de9fcdb 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1010,7 +1010,9 @@ include(CMake/OtherTests.cmake)
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
@@ -941,7 +941,9 @@ check_symbol_exists(ioctl "${CURL_INCLUDES}" HAVE_IOCTL)
|
||||
check_symbol_exists(setsockopt "${CURL_INCLUDES}" HAVE_SETSOCKOPT)
|
||||
|
||||
# For windows, do not allow the compiler to use default target (Vista).
|
||||
# symbol exists in win32, but function does not.
|
||||
-if(WIN32)
|
||||
+if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
+ add_definitions(-D_WIN32_WINNT=0x0A00 -DHAVE_STRUCT_POLLFD -D_WINSOCK_DEPRECATED_NO_WARNINGS)
|
||||
+elseif(WIN32)
|
||||
add_definitions(-D_WIN32_WINNT=0x0501)
|
||||
endif(WIN32)
|
||||
|
||||
if(ENABLE_INET_PTON)
|
||||
check_function_exists(inet_pton HAVE_INET_PTON)
|
||||
# _WIN32_WINNT_VISTA (0x0600)
|
||||
diff --git a/lib/curl_gethostname.c b/lib/curl_gethostname.c
|
||||
index 2591fd8..cef38ac 100644
|
||||
index 8337c72..41867b2 100644
|
||||
--- a/lib/curl_gethostname.c
|
||||
+++ b/lib/curl_gethostname.c
|
||||
@@ -21,6 +21,7 @@
|
||||
@ -25,7 +25,7 @@ index 2591fd8..cef38ac 100644
|
||||
|
||||
#include "curl_gethostname.h"
|
||||
|
||||
@@ -64,9 +65,10 @@ int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen) {
|
||||
@@ -64,9 +65,10 @@ int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen)
|
||||
#ifdef DEBUGBUILD
|
||||
|
||||
/* Override host name when environment variable CURL_GETHOSTNAME is set */
|
||||
@ -38,10 +38,10 @@ index 2591fd8..cef38ac 100644
|
||||
}
|
||||
else {
|
||||
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
|
||||
index 812a073..02c8416 100644
|
||||
index aea5452..c1f59f2 100644
|
||||
--- a/lib/curl_ntlm_core.c
|
||||
+++ b/lib/curl_ntlm_core.c
|
||||
@@ -696,9 +696,12 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash,
|
||||
@@ -700,9 +700,12 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash,
|
||||
|
||||
/* Calculate the timestamp */
|
||||
#ifdef DEBUGBUILD
|
||||
@ -57,40 +57,23 @@ index 812a073..02c8416 100644
|
||||
#endif
|
||||
tw = ((curl_off_t)time(NULL) + CURL_OFF_T_C(11644473600)) * 10000000;
|
||||
diff --git a/lib/ftp.c b/lib/ftp.c
|
||||
index b231731..d50779f 100644
|
||||
index 6e86e53..a96fe1a 100644
|
||||
--- a/lib/ftp.c
|
||||
+++ b/lib/ftp.c
|
||||
@@ -3250,7 +3250,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
|
||||
ssize_t nread;
|
||||
int ftpcode;
|
||||
CURLcode result = CURLE_OK;
|
||||
- char *path;
|
||||
+ char *path = NULL;
|
||||
const char *path_to_use = data->state.path;
|
||||
|
||||
if(!ftp)
|
||||
diff --git a/lib/smb.c b/lib/smb.c
|
||||
index 7cb0c96..2f43d3c 100644
|
||||
--- a/lib/smb.c
|
||||
+++ b/lib/smb.c
|
||||
@@ -32,8 +32,12 @@
|
||||
|
||||
#ifdef HAVE_PROCESS_H
|
||||
#include <process.h>
|
||||
+#if defined(CURL_WINDOWS_APP)
|
||||
+#define getpid GetCurrentProcessId
|
||||
+#else
|
||||
#define getpid _getpid
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#include "smb.h"
|
||||
#include "urldata.h"
|
||||
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
|
||||
index 56a8823..5a895ed 100644
|
||||
--- a/lib/vtls/vtls.c
|
||||
+++ b/lib/vtls/vtls.c
|
||||
@@ -197,7 +197,7 @@ unsigned int Curl_rand(struct Curl_easy *data)
|
||||
@@ -4292,7 +4292,7 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
|
||||
/* prevpath is "raw" so we convert the input path before we compare the
|
||||
strings */
|
||||
size_t dlen;
|
||||
- char *path;
|
||||
+ char *path = NULL;
|
||||
CURLcode result =
|
||||
Curl_urldecode(conn->data, data->state.path, 0, &path, &dlen, FALSE);
|
||||
if(result) {
|
||||
diff --git a/lib/rand.c b/lib/rand.c
|
||||
index 2713a0a..7da6e00 100644
|
||||
--- a/lib/rand.c
|
||||
+++ b/lib/rand.c
|
||||
@@ -44,7 +44,7 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd)
|
||||
static bool seeded = FALSE;
|
||||
|
||||
#ifdef CURLDEBUG
|
||||
@ -98,12 +81,12 @@ index 56a8823..5a895ed 100644
|
||||
+ char *force_entropy = curl_getenv("CURL_ENTROPY");
|
||||
if(force_entropy) {
|
||||
if(!seeded) {
|
||||
size_t elen = strlen(force_entropy);
|
||||
@@ -208,6 +208,7 @@ unsigned int Curl_rand(struct Curl_easy *data)
|
||||
}
|
||||
unsigned int seed = 0;
|
||||
@@ -58,6 +58,7 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd)
|
||||
else
|
||||
randseed++;
|
||||
*rnd = randseed;
|
||||
+ free(force_entropy);
|
||||
return randseed;
|
||||
return CURLE_OK;
|
||||
}
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: curl
|
||||
Version: 7.51.0-3
|
||||
Version: 7.55.1-1
|
||||
Build-Depends: zlib, openssl, libssh2
|
||||
Description: A library for transferring data with URLs
|
||||
|
@ -1,11 +1,11 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/curl-curl-7_51_0)
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "https://github.com/curl/curl/archive/curl-7_51_0.tar.gz"
|
||||
FILENAME "curl-7.51.0.tar.gz"
|
||||
SHA512 88ec572efb1b2fb793dc26b627e54863718e774343283f0eb92022ce252f7798332d9d3f20f63e45c38576614a000abbf12570e91e14a118f150e0378f1a27e5
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO curl/curl
|
||||
REF curl-7_55_1
|
||||
SHA512 b5c6dd6cca8d07c08d1760feff9822f1264359adde068afd1584fc3fdcfa50c68e0e1b5ecaa277298ad0923b61019943c181ee1f0870c312399038c4c4e0e327
|
||||
HEAD_REF master
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
@ -14,41 +14,40 @@ vcpkg_apply_patches(
|
||||
${CMAKE_CURRENT_LIST_DIR}/0002_fix_uwp.patch
|
||||
)
|
||||
|
||||
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
SET(CURL_STATICLIB OFF)
|
||||
else()
|
||||
SET(CURL_STATICLIB ON)
|
||||
endif()
|
||||
|
||||
set(UWP_OPTIONS)
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBUILD_TESTING=OFF
|
||||
-DBUILD_CURL_EXE=OFF
|
||||
-DENABLE_MANUAL=OFF
|
||||
-DUSE_WIN32_LDAP=OFF
|
||||
-DCURL_DISABLE_TELNET=ON
|
||||
-DENABLE_IPV6=OFF
|
||||
-DENABLE_UNIX_SOCKETS=OFF
|
||||
-DCMAKE_USE_OPENSSL=ON
|
||||
-DCURL_STATICLIB=${CURL_STATICLIB}
|
||||
OPTIONS_DEBUG
|
||||
-DENABLE_DEBUG=ON
|
||||
)
|
||||
else()
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBUILD_TESTING=OFF
|
||||
-DBUILD_CURL_EXE=OFF
|
||||
-DENABLE_MANUAL=OFF
|
||||
-DCURL_STATICLIB=${CURL_STATICLIB}
|
||||
OPTIONS_DEBUG
|
||||
-DENABLE_DEBUG=ON
|
||||
set(UWP_OPTIONS
|
||||
-DUSE_WIN32_LDAP=OFF
|
||||
-DCURL_DISABLE_TELNET=ON
|
||||
-DENABLE_IPV6=OFF
|
||||
-DENABLE_UNIX_SOCKETS=OFF
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_find_acquire_program(PERL)
|
||||
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
||||
set(ENV{PATH} "$ENV{PATH};${PERL_PATH}")
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
${UWP_OPTIONS}
|
||||
-DBUILD_TESTING=OFF
|
||||
-DBUILD_CURL_EXE=OFF
|
||||
-DENABLE_MANUAL=OFF
|
||||
-DCURL_STATICLIB=${CURL_STATICLIB}
|
||||
-DCMAKE_USE_OPENSSL=ON
|
||||
OPTIONS_DEBUG
|
||||
-DENABLE_DEBUG=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/curl RENAME copyright)
|
||||
@ -56,6 +55,21 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
# Drop debug suffix, as FindCURL.cmake does not look for it
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libcurl-d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/libcurl.lib)
|
||||
else()
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/curl-config ${CURRENT_PACKAGES_DIR}/debug/bin/curl-config)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/libcurl_imp.lib ${CURRENT_PACKAGES_DIR}/lib/libcurl.lib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libcurl-d_imp.lib ${CURRENT_PACKAGES_DIR}/debug/lib/libcurl.lib)
|
||||
endif()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/include/curl/curl.h CURL_H)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
string(REPLACE "#ifdef CURL_STATICLIB" "#if 1" CURL_H "${CURL_H}")
|
||||
else()
|
||||
string(REPLACE "#ifdef CURL_STATICLIB" "#if 0" CURL_H "${CURL_H}")
|
||||
endif()
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/curl/curl.h "${CURL_H}")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
30
ports/date/CMakeLists.txt
Normal file
30
ports/date/CMakeLists.txt
Normal file
@ -0,0 +1,30 @@
|
||||
cmake_minimum_required(VERSION 3.5.1)
|
||||
project(tz CXX)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
add_definitions(-DNOMINMAX)
|
||||
|
||||
|
||||
include_directories(".")
|
||||
|
||||
add_library(tz tz.cpp)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(tz PRIVATE -DDATE_BUILD_DLL)
|
||||
else()
|
||||
target_compile_definitions(tz PRIVATE -DDATE_BUILD_LIB)
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS tz
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES date.h tz.h julian.h iso_week.h islamic.h DESTINATION include)
|
||||
endif()
|
3
ports/date/CONTROL
Normal file
3
ports/date/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: date
|
||||
Version: 2.2
|
||||
Description: A date and time library based on the C++11/14/17 <chrono> header
|
38
ports/date/portfile.cmake
Normal file
38
ports/date/portfile.cmake
Normal file
@ -0,0 +1,38 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
message(WARNING
|
||||
"You will need to also install http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml into your install location"
|
||||
"See https://howardhinnant.github.io/date/tz.html"
|
||||
)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO HowardHinnant/date
|
||||
REF 272d487b3d490126e520b67fe76bbb2e67226c07
|
||||
SHA512 59e8ff642d3eb82cb6116a77d4c5e14bbc2ae6bd4019e64a49609b6e46d679c2cb4ccae74807b72223aed18ae015596193919cdb58b011bfb774ff3e29a1d43b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
set(HEADER "${CURRENT_PACKAGES_DIR}/include/tz.h")
|
||||
file(READ "${HEADER}" _contents)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
string(REPLACE "DATE_BUILD_DLL" "1" _contents "${_contents}")
|
||||
else()
|
||||
string(REPLACE "DATE_BUILD_LIB" "1" _contents "${_contents}")
|
||||
endif()
|
||||
file(WRITE "${HEADER}" "${_contents}")
|
||||
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/date RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: dimcli
|
||||
Version: 2.0.0
|
||||
Version: 2.0.0-1
|
||||
Description: C++ command line parser toolkit
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: dlfcn-win32
|
||||
Version: 1.1.1
|
||||
Version: 1.1.1-1
|
||||
Description: dlfcn-win32 is an implementation of dlfcn for Windows.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user