Commit Graph

1091 Commits

Author SHA1 Message Date
Billy O'Neal
7db401cb1e
[qt5] Add -j to make to parallelize on Linux and MacOS (#11111) 2020-05-04 15:37:57 -07:00
Billy O'Neal
63e1d87432
[vcpkg] Add disk space report on Linux and MacOS. (#11166) 2020-05-04 12:12:07 -07:00
yurybura
cfc05991f5
[llvm] Update to version 10.0.0 and add new features (#10295)
* [llvm] Update to version 10.0.0 and new features

* switch to llvmorg-10.0.0-rc3, allow to use bin directory for tools

* Fix CMake targets after vcpkg_fixup_cmake_targets call.

* [halide] Update to master version to support LLVM 10

* [halide] fix x64-osx build

* [llvm] add enable-assertions feature

* [llvm] fix comment

* [llvm] enable ci for x64-linux and x64-osx

* [llvm] update to v10.0.0-rc5
[llvm] disable assertions and ABI breaking checks by default
[llvm] limit the maximum number of concurrent link jobs to 1
[llvm] add postfix `d` and debug shared libraries in the `/bin` directory

* [llvm] revert debug postfix `d`
[llvm] don't remove debug version of tools and shared libs

* [llvm] fix debug tools path

* [llvm] update to release tag llvmorg-10.0.0
[llvm] build with CMAKE_DEBUG_POSTFIX=d
[llvm] remove debug binaries

* remove new CMake argument FOLLOW_SYMLINK_CHAIN

* [llvm] force TableGen to be built with optimization

* [llvm] add future disable-clang-static-analyzer

* [llvm] add futures for main targets
[llvm] remove utils and clang-tools-extra from default features list
[llvm] exclude tests

* [llvm] add features for main targets
[llvm] remove utils and clang-tools-extra from default features list
[llvm] exclude tests

* [llvm] update features description

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
2020-05-03 20:30:17 -07:00
myd7349
0ab1a9e1c6
[vcpkg] Add new function vcpkg_copy_tools (#8749)
* [vcpkg] Add new function vcpkg_copy_tools

* [cpuinfo][czmq][nanomsg][uriparser] Use vcpkg_copy_tools

* [czmq] Clean even tools are not copied

[libsvm][zyre] Use vcpkg_copy_tools

* [vcpkg-copy-tools] Clean debug/bin

This should fix czmq build error

* [czmq] czmq does not have BUILD_TOOLS option

* [vcpkg] Split clean logic into another function

* [cpuinfo][czmq][nanomsg][uriparser] Fix calling of vcpkg_copy_tools

* [zyre] Fix regression error

* [vcpkg] Update try_remove_empty_directory

* [libsvm] Fix vcpkg_copy_tools call
2020-05-01 15:28:55 -07:00
Billy Robert O'Neal III
6aab6e0d3d [OpenBLAS] Upgrade to 0.3.9 + a patch to fix AVX512 (which is now present on the VMs) 2020-04-30 21:51:31 -07:00
Billy Robert O'Neal III
b8755728ab [vcpkg] Onboard Linux to VMSS, open 'git' port, and switch back to Azure Spot
* Adds scripts to generate scale sets for testing Linux.
    * Note workaround for https://github.com/microsoft/azure-pipelines-agent/pull/2929
* Switches Windows validation to 'Spot' VMs.
* Opens the git port 9418.
* Removes provisioning of the no longer used 'logs' file share.
* Changes Azure region to 'westus2', which is cheaper.
* Adds +x to all the scripts in scripts/azure-pipelines.
* Use 'xml-results' for all platforms instead of 'raw xml results' on Windows.
2020-04-30 21:51:31 -07:00
Gregor Jasny
43d664ab53
[civetweb] Update to version 1.12 (#10591) 2020-04-30 17:56:33 -07:00
Fabien Castan
4f1ce2eea6
[alembic] linux fixes (#10912)
* [alembic] make the portfile linux-compatible

* [alembic] fix build error in debug on linux

* [alembic] simplify renaming of copyright file

* [alembic] code simplification and formatting

* [alembic] update version to 1.7.12-1

* [alembic] linux build does not fail anymore
2020-04-30 17:45:43 -07:00
Nick Renieris
c1dd394d1c
[libqcow] Initial port (#11036)
* [libqcow] Add new port

Signed-off-by: Alexandro Sanchez Bach <alexandro@phi.nz>

* [libqcow] fix build

Co-authored-by: Alexandro Sanchez Bach <asanchez@kryptoslogic.com>
2020-04-30 17:21:19 -07:00
Voskrese
b8c5ede662
[msbuild] Hotfix /p:UseEnv=True to be a port-local setting (#11058)
* Update vcpkg_build_msbuild.cmake

* Update vcpkg_install_msbuild.cmake

* Update CONTROL

* Update CONTROL

* Update portfile.cmake

* Update portfile.cmake

* Update ci.baseline.txt
2020-04-30 10:11:20 -07:00
Jack·Boos·Yu
695d2a8a4d
[armadillo] Add dependent port superlu on osx (#11063)
* [armadillo] Add dependent port superlu on osx

* [armadillo] Suppress automatic dependency enablement

* [mlpack] Re-enable in CI

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-04-30 10:05:06 -07:00
Alexander Neumann
2e33b93e27
[qt5] reactivate qt5-activeqt in CI by adding a fake dependency to qt5-declarative (#11045)
This is required so that qt5-tools is not skipped in CI which affects CI coverage.
In general Qt5 ports should not be build apart from each other but as complete package!
Or VCPKG should accept installing duplicated *.dll in every folder excebt for /bin or debug/bin
2020-04-30 10:02:20 -07:00
Alexander Neumann
d054476e04
[vcpkg_acquire_msys] Fix undefined working dir. (#11102) 2020-04-30 09:50:29 -07:00
nicole mazzuca
b4f8f14529
[vcpkg baseline] Ignore mlpack on macOS (#11091)
There's some conflict with something else.
2020-04-29 18:29:53 -07:00
Billy O'Neal
d9d283bd2b
Bump macos build timeouts. (#11090) 2020-04-29 17:26:12 -07:00
myd7349
b9c3a26392
[opencc] Add new port (#8474)
* [opencc] Add new port

* [opencc] Update to 2019-10-09

* [opencc] Minor update

* [opencc] Modernize

* [opencc] Update to 2020-04-26

* [opencc] Bypass arm64-windows

* [opencc] Modernize

* [opencc] Rebuild on osx
2020-04-28 13:14:11 -07:00
Billy O'Neal
7341c295b6
[vcpkg] Copy macos pipelines into azure-pipelines.yml 2020-04-28 13:02:39 -07:00
Alexander Neumann
c444db5f5a
[scripts] add new function vcpkg_fixup_pkgconfig (#9861)
* add new function vcpkg_fixup_pkgconfig

* make message with changed files a debug_message

* add two more cases to the debug *.pc files

* comment out prefix.
use --define-variable=prefix=INSTALL_PATH

* changed the comment header.

* add missing word

* finish vcpkg_fixup_pkgconfig.cmake

* Update vcpkg_fixup_pkgconfig.cmake

Note: since CMake is run in script mode the description of VCPKG_FIXUP_PKGCONFIG_CALLED cannot be viewed

* transfer changes from x windows pr

* fix typo in regex

* make the regex comment aware
make pc files relocatable by using ${pcfiledir} in prefix
tested with x window pr
2020-04-27 17:37:55 -07:00
Jack·Boos·Yu
981daa4e98
[gts] Support for build with cmake in unix (#10055)
* [gts] Support for build with cmake in unix

* update baseline

* [gts] Apply patch

* [gts] Fix undefined M_PI in windows

* update baseline
2020-04-27 08:01:31 -07:00
Chris Moore
ff32240ab4
[Libtomcrypt, libtommath] new ports (#10960)
* Add initial version of libttommath port

* Add initial version of libtomcrypt port

* Remove unnecessary EXTRALIB flag.

* Remove deprecated include(vcpkg_common_functions)

* Add homepage to CONTROL file

* Update license copying in portfile

* [libtommath] make build for non-windows

* [libtomcrypt] make build for non-windows

* [libtomcrypt] update ci baseline

* [libtomcrypt] set HEAD_REF to upstream dev branch

* [libtommath] set HEAD_REF to upstream dev branch

* [libtomcrypt] Correct CFLAGS and include path

* [libtommath][libtomcrypt] Lowercase 'debug' folder. Tweak CRT flags. Use VCPKG_CONCURRENCY.

* [libtomcrypt] Remove x64-windows-static=fail from the ci baseline

Co-authored-by: Frederik Juul <frederik.juul@3shape.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-04-27 06:53:55 -07:00
Jack·Boos·Yu
a048cffdf3
[hwloc] Support UNIX (#10615)
* [hwloc] Support UNIX

* update baseline

* update baseline

* update baseline
2020-04-24 14:10:39 -07:00
NancyLi1013
56738de192
[sdl2-gfx] Fix build error on non windows (#10575)
* [sdl2-gfx] Fix build error on non windows

* Update as review suggestions

* Updated to support osx
2020-04-24 14:05:43 -07:00
Park DongHa
7fbb19602a
[coroutine] update to 1.5.0 (#10692)
* [coroutine] update to 1.5.0

* this is release candidate
* WindowsStore build will be updated soon

* [coroutine] support UWP build

* triplet(community) `x64-uwp`, `x86-uwp`
* triplet: `arm-uwp`, `arm64-windows`

* [coroutine] mark install failure on uwp/linux

* update checksum
* use `vcpkg_fail_port_install`

* [coroutine] remove x86-windows fail in ci.baseline

* [coroutine] Relax install restrictions on Linux. Use vcpkg_fixup_cmake_targets().

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-04-24 14:02:39 -07:00
Robert Schumacher
84f94fb6fd
[cppcoro] add new port (#10693)
* [cppcoro] add new port

* [cppcoro] update with PR review

* update reference to tag and hash value
* ${PORT} for destination

Linux build support should marked unavailable?

* [cppcoro] embed CMakeLists.txt file

* copy the CMakeLists.txt file and start build with it
* change version to 2020.2

For now the repo doesn't have any tags.
Therefore its version followed the latest commit,
which is made in 2020 Feb.

* [cppcoro] 2020-02-28

* [cppcoro] port install failure on platforms

* vcpkg_fail_port_install on uwp/linux

mention PR #10693 so linux/clang users can see the port issues

* [cppcoro] force static linkage

* report error for clang-cl

build with VC++ in VS 2019 will fail by the header file.

* [cppcoro] register ci.baseline failure

* [cppcoro] Simplify CMakeLists.txt to ease future maintenance. Fix VS 2019 builds.

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-04-24 14:01:38 -07:00
simon987
c0d6fc23c1
[libmupdf] fix build error on Linux (#10708)
* minimum to compile on linux

* Update as reviewed

* Update baseline and add the condition to execuate script

* Move find_program and make it REQUIRED

* always execute generate command

* only use make in find_program

Co-authored-by: Nancy Li (Beyondsoft Corporation) <v-ruil@microsoft.com>
2020-04-24 02:58:24 -07:00
Odysseas Georgoudis
b896a0da5a
[Quill] Add new port (#10902)
* [Quill] Add new port

* Mark port as unsupported for uwp/arm/arm64 and update ci.baseline

* Mark uwp, arm and arm64 as ignored in ci.baseline

* fix alphabetical order in ci.baseline

* Remove duplicate from ci.baseline

* Invert supports expression in CONTROL

* Mark as skip in ci.baseline

* Address review comments

* Bump version to 1.2.1

* add vcpkg_fail_port_install

* use vcpkg_from_github and simplify feature options

* fix file alignment

* Always depend on fmt
2020-04-23 21:40:56 -07:00
Alexander Neumann
bb7ccc4b90
[Qt[latest]] Update to 5.14.2 (#10644)
* make qt5 all features and add the missing qt modules

* fix control

* qt5 webengine enviromnent setup

* copy qtminimal plugin to tools

* add opengles3 option for testing

* [qt5-imageformats] freeglut is not a dependency on osx

* [qt5-base] fontconfig can require iconv on linux and osx

* include the jasper fix to get CI coverage?

* trying to get ci coverage for qt on osx

* Revert "trying to get ci coverage for qt on osx"

This reverts commit 8b9b188839.

* apply the correct ci hack

* fix wrapper to include macosx debug suffix

* update baseline

* first try to fix the Qt5 cmake configs at the root.

* fix missing backslash

* fix plugin patch

* fix qt config patch

* remove 90% of fixcmake.py

* update baseline

* experimental removal of fixcmake.py and dll copying into tools/qt5/bin

* fix experimental dll copying.

* fix static windows builds

* fix static builds

* fix plugin copy

* add quotes around configuration to make it work

* remove dll debug messages

* note about the cmake fix

* revert fontconfig changes on linux. Make qt.conf relative and not absolute

* make qt.conf relative

* trying to fix ogre osx ci regression

* fix silly path error

* Revert "trying to fix ogre osx ci regression"

This reverts commit 708d8250d6.

* add ogre:x64-osx=fail to CI baseline

* retry on osx

* fix configure error. since in qt5-base everything is in the package directory and not in the installed

* revert change to ci.baseline

* update ci baseline

* update Qt Control fields

* update qt hashes to 5.12.7

* update baseline
update missing hashes
update empty include/packages
add info for placeholder ports not yet correctly working (e.g. qt5-wayland)

* fix linux qt targets not having debug properties.

* remove most of the wrapper

* actual forgot to commit the prl parser

* fix the config a bit differently. have to check linux configs again

* add xlib patch.

* make qt-base fail to get logs on linux

* Need logs from qt5-base

* update versions I missed

* ws change

* lets see if this is enough to make qt5-x11extras happy

* add upstream patch.

* add newline to patch

* ws change to trigger rebuild and maybe get logs on osx failure

* need generated cmakescripts to check linkage.

* rename cmake files to end on .log so that i can inspect them after CI failure

* fix patch

* make qt run

* androidextras only supports android

* qt5-doc will only be build on linux

* ws ci trigger due to download failure

* WS to retrigger CI due to download failure

* add code for debug tools

* lets see if we can do it with only the release tools

* update baseline

* fix create link error on linx

* update baseline

* revert changes which tried to use release tools only

* fix dependencies

* add debug qt.conf

* add another copyright install

* qtdoc does not have any include files

* fix wrong copy pasta

* update latest port hashes.

* make the patches versions dependent

* cleanup qt5 control a bit

* update qt5-base control for ci run to use latest

* fix patches for latest

* forgot to commit the portfile changes

* fix imageformat dependencies for latest qt

* update last hash

* fix translations dependencies

* get cmake scripts from CI

* new patch for creating correct configs

* patch precompiled headers away from qt5-webengine

* fix patch for 5.12.7. (Patch was for 5.14.1)

* trigger CI rebuild

* add simple gl path to fix the chormium build error

* comment out debug message from prl parser

* bump control

* update webengine control

* update CI to skip webengine.

* update baseline

* ws change to osg-qt

* remove kd-soap from faillist

* reset ci baseline to upstream/master

* update baseline

* fix osg-qt?

* skip ms-angle on osx and linux since the normal angle port should be used!

* update ci baseline

* try adding fontconfig manually

* update ci baseline to remove osg-qt for the time being

* remove manual library.

* remove wrapper and get plugin info also from linux and osx

* allow build of complete qt

* fix missing parameter in populate plugin.

* need more info from CI

* fix foreach CI loop

* comment out CI code colllection to make a full qt5 ci run

* fix qt5-imageformats regression on linux

* update baseline

* - add patch to find the debug library
- manually fix EGL path in Qt5GuiConfigExtras.cmake

* bump control

* update hashes to 5.14.2

* comment out messages for debugging

* bump version in control

* fix create cmake patch

* add qtmain path corrections for single configuration build.

* fix escaping of . in regex

* remove one to many \\

* remove latest as a default feature

* reenable messages to debug osg-qt issue on osx.

* small cmake options details.
might need to patch cmakelists.txt if this is not working

* remove unnecessary comment

* make prl parser silent again.

* remove canvas3d from the default features since it has been deprecated and will be removed in the future

* remove ws change

* remove newline and ws

* trigger ci test

* revert 199a3ef92f

* add messages to qt5-webengine and adjust baseline

* add jpeg and zlib to JASPER_LIBS

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
2020-04-23 21:19:45 -07:00
Voskrese
ed9511fcf6
[libvpx][mpg123] Fix use of YASM in MSBuild (via path) (#10952)
* Update vcpkg_build_msbuild.cmake

* Update vcpkg_install_msbuild.cmake

* Update portfile.cmake

* Update CONTROL

* Update portfile.cmake

* Update CONTROL

* Update ci.baseline.txt.

* Update ci.baseline.txt

* Update ci.baseline.txt

* Update ci.baseline.txt

* Update portfile.cmake

* Update CONTROL

* Update CONTROL

* Update portfile.cmake

* [mpg123][libvpx] UWP is a target

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-04-23 21:18:56 -07:00
Cheney Wang
b6cd6ca0ba
[vcpkg] Update git to 2.26.2 (#10932)
* Update git to 2.26.1

* [vcpkg] Update git to 2.26.2

Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
2020-04-23 13:47:47 -07:00
Johnny Willemsen
9f31167fb2
[ace] Add support for MacOSX (#10984)
* [ace] Update to 6.5.8

* Address review comments

    * ports/ace/portfile.cmake:

* Put back copy step

    * ports/ace/portfile.cmake:

* Fixed error

    * ports/ace/portfile.cmake:

* ARM should work, let us try it

    * ports/ace/portfile.cmake:

* ARM doesn't work yet, so disable it again
    * ports/ace/portfile.cmake:

* Add support for vcpkg of ace on MacOSX

    * ports/ace/portfile.cmake:

* [ace] ACE should work now on ARM
    * ports/ace/portfile.cmake:

* [ace] OSX should work now

 scripts/ci.baseline.txt:

* ARM doesn't work yet, visual studio 2019 is broken for the moment

    * ports/ace/portfile.cmake:

* Increment version of ace

    * ports/ace/CONTROL:
2020-04-23 13:45:56 -07:00
vvandrounik
a0126a86e7
[ryml] Add new port (#10793)
* [ryml] Add new port

* Remove deprecated include

* Fix ver regarding maintainer guide

* Mark port as unsupport arm/arm64/osx

* Update CI baseline

* Replace deprecated func vcpkg_extract_source_archive,
add PREFER_NINJA to conf

* Fix wrong placed port states

* Resolve merge conflict
2020-04-23 13:43:38 -07:00
Billy Robert O'Neal III
21e6e12e63 WIP 2020-04-22 17:23:58 -07:00
Billy Robert O'Neal III
ee24c0a236 WIP 2020-04-22 15:47:54 -07:00
Billy Robert O'Neal III
9256735ad5 WIP 2020-04-22 02:47:03 -07:00
Billy Robert O'Neal III
f9321f8d08 WIP 2020-04-21 21:21:53 -07:00
Billy Robert O'Neal III
070a18974b Change supporting infrastructure to use Azure Virtual Machine Scale Sets for vcpkg's PR builds, which should both improve our PR build times and reduce Azure spending by shutting down machines when they aren't being used.
Included is a script that sets up all vcpkg's Azure infrastructure for Windows PR tests, and several updates to baselines. The baseline updates are generally caused by an updated copy of the MSVC++ compiler caused by updating the VMs, but some are caused by missed failures only detected now because this did a cleared out archives directory first.

Some of the build infrastructure isn't what I'd call 'pretty' (e.g. we're split into more scripts and such than I'd like) but this mirrors how our existing PR system works.

It is expected that the existing vcpkg Windows PR system will hate these baseline updates so we'll need to merge this, then remove that (duplicate) workflow immediately afterwards, then delete all the Windows VMs powering the old infrastructure.
2020-04-21 17:12:21 -07:00
Lily
43d13abe44
[ompl] Fix ompl[app] build error (#10854)
* [ompl] Fix ompl[app] build error

* [ompl] Fix patch apply error

* [ompl] Remove extra comment

* [ompl] Fix build error on Linux/MACOS
2020-04-21 13:31:10 -07:00
NancyLi1013
1da127ed7c
[winreg] Update to 2.2.0 (#10926)
* [winreg] Update to 2.2.0

* Revert changes INSATLL to COPY headers
2020-04-21 13:17:32 -07:00
Park DongHa
fe0202d7f3 [cppcoro] register ci.baseline failure 2020-04-21 00:39:26 +09:00
Long Huan
71377f69e2
[qscintilla] Update to 2.11.4 (#10511)
* update qscintilla to 2.11.4

* Update portfile.cmake

* for CI test

* undo

* add !osx support

* fix osx build error

* Update ci.baseline.txt

* Update ci.baseline.txt

* [ci.baseline.txt] Revert line endings change

* [qscintilla] Restore vcpkg_copy_pdbs()

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-04-17 15:11:12 -07:00
vvandrounik
7d2f838ea7
[c4core] Add new port (#10791)
* [c4core] Add new port

* Remove deprecated include

* Fix ver regarding maintainer guide

* Mark port as unsupport arm/arm64

* Update CI baseline

* Mark port as unsupport OSX

* Update CI baseline

* Fix path to header instead of moving

Signed-off-by: vvandrounik <vvandrounik@gmail.com>

* Replace deprecated func vcpkg_extract_source_archive, add PREFER_NINJA to conf
2020-04-17 14:10:00 -07:00
nicole mazzuca
12d75a13ac
[vcpkg] Fix build scripts on openSUSE and g++9 (#10867)
The existing code did not correctly pass `CXX` to cmake.
2020-04-17 10:56:27 -07:00
wangqr
b7ef16861f
[avisynthplus] Add new port (#10496)
* [avisynthplus] Add new port

* [avisynthplus] Disable static build

Static build is not supported. See https://github.com/AviSynth/AviSynthPlus/issues/130

* [avisynthplus] Ass Supports to CONTROL

* [avisynthplus] set static to fail in CI baseline

* [avisynthplus] add vcpkg_fail_port_install
2020-04-16 13:44:18 -07:00
Robert Schumacher
d216948042
[mosquitto] Add support for static build (#10636)
* [mosquitto] Add support for static build

* Update ci.baseline.txt

* [libwebsockets] Update options -DLWS_USE_BUNDLED_ZLIB as -DLWS_WITH_BUNDLED_ZLIB
2020-04-16 13:33:10 -07:00
Robert Schumacher
2070c3c0d8
[ninja] Merge pull request #10796 from Voskrese/ninja-update-1.10
[Ninja] Update to 1.10
2020-04-16 12:23:19 -07:00
Robert Schumacher
2327468362
Merge pull request #10816 from zi-m/blosc
[blosc] Update to 1.18.1
2020-04-16 12:21:54 -07:00
Stefano Sinigardi
614ac279da
[python3] fix build on macOS and linux (#10841)
* [python3] fix build on macOS and linux

* update ci baseline
2020-04-16 11:57:59 -07:00
Michael Spector
648396545c
[avro-c] Fix building avro-c in Linux (#10514)
* Fix building avro-c in Linux

* Increment version

* Declare Linux is supported

* Updated CI baseline

Co-authored-by: Michael Spector <spektom@gmail.com>
2020-04-16 11:51:43 -07:00
alcroito
c5f01e1dee
Add initial iOS support (#6275)
* Add iOS community triplets and toolchain support

Added an iOS toolchain to enable building packages for iOS.
The toolchain is used when a triplet's VCPKG_CMAKE_SYSTEM_NAME is set
to iOS.

To configure which architecture should be built, as well as other
iOS specifics, the following triplet variables can be set:
- VCPKG_TARGET_ARCHITECTURE
- VCPKG_OSX_SYSROOT
- VCPKG_OSX_DEPLOYMENT_TARGET
- VCPKG_OSX_ARCHITECTURES

The following VCPKG_TARGET_ARCHITECTURE values are currently
supported:
 - arm, arm64, x64, x86.

The following VCPKG_OSX_SYSROOT values are currently supported:
 - iphoneos, iphonesimulator, or an absolute path to the device or
   simulator Xcode SDK.

VCPKG_OSX_DEPLOYMENT_TARGET can be set to control the minimum iOS
delopyment target for the built libraries.

CMAKE_OSX_ARCHITECTURES is derived from VCPKG_TARGET_ARCHITECTURE,
so generally it should not be set. In case if someone needs to target
a more specific architecture (like armv7k or arm64e), it can
be set in the triplet via VCPKG_OSX_ARCHITECTURES.

Note that only certain combinations of the architecture and sysroot
will work: simulator SDKs only provide x86-based libraries, etc.

The toolchain also sets CMAKE_SYSTEM_PROCESSOR for certain
configurations, because certain packages (like libpng) depend on the
processor type.

Added 4 community iOS triplets that build static libraries:
- arm-ios, arm64-ios, x86-ios, x64-ios.
The non-arm triplets target the iOS simulator.

The triplets build static libraries because they are easiest to
integrate into an iOS project. Dynamic libraries or frameworks require
code signing on iOS, which complicates integration.

Added heuristics to try and automatically detect what iOS triplet to
use when building your own CMake project (so when a CMake project sets
CMAKE_TOOLCHAIN_FILE to buildsystems/vcpkg.cmake), if no explicit
triplet is provided (VCPKG_TARGET_TRIPLET is undefined).

The heuristic checks for the values of CMAKE_SYSTEM_NAME and
CMAKE_OSX_ARCHITECTURES. Note that for this to work,
CMAKE_OSX_ARCHITECTURES needs to be set before the first project()
call in your CMake project.

Added workaround so find_package finds vcpkg installed packages
when targeting iOS.
This is done by saving / restoring the value of CMAKE_FIND_ROOT_PATH
while also adding the vcpkg package root in the find_package override
macro.
The workaround can be removed once vcpkg upgrades to CMake 3.15.0
or higher where the issue is fixed.

Fixes: #6003

* Fix building libpng and pcre2 targetting iOS

Fixes: #6003
2020-04-15 13:06:55 -07:00
nicole mazzuca
4db554b937
[vcpkg] Fix bootstrap from out of directory (#10846)
In my last PR, I broke building vcpkg from a directory that isn't the
vcpkg directory; this commit fixes that.
2020-04-15 10:15:12 -07:00