Commit Graph

17 Commits

Author SHA1 Message Date
Cristian Adam
8c77506c4f MinGW: Fix vcpkg common definitions (#9807)
Since MinGW has both VCPKG_TARGET_IS_MINGW and VCPKG_TARGET_IS_WINDOWS,
make sure to test the first before.
2020-01-23 12:17:40 -08:00
Cristian Adam
38b959022c Add support for building with MinGW (#9137)
* Add support for building with MinGW

Tested with MSYS2 MinGW 8.3.0, gcc-mcf.lhmouse MinGW 9.2.1,
and StephanTLavavej/mingw-distro!

* Add MinGW toolchain

From your MinGW configured shell you could just use vcpkg to
configure packages.

An x64-mingw triplet would look like:
```
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_ENV_PASSTHROUGH PATH)

set(VCPKG_CMAKE_SYSTEM_NAME MinGW)
```

* Add MinGW community tripplets

x64 tested with https://github.com/StephanTLavavej/mingw-distro
x86, arm64, arm tested with https://github.com/mstorsjo/llvm-mingw
2020-01-17 15:36:08 -08:00
Robert Schumacher
8831e8f25f
Merge pull request #7598 from Neumann-A/path_separator
[vcpkg] QoL: add host specific path separator to common definitions
2019-11-22 09:45:33 -08:00
Stefano Sinigardi
726c111481 [vcpkg] fatal_error when patch fails to apply (#8087)
vcpkg will now fail on failure to apply patches except when using `--head`.
2019-10-07 10:35:13 -07:00
Alexander Neumann
0c7bf66527 removed escaped version. added correct usage description 2019-09-20 12:52:14 +02:00
Alexander Neumann
5b1e426929 Merge remote-tracking branch 'upstream/master' into path_separator
# Conflicts:
#	scripts/cmake/vcpkg_common_definitions.cmake
2019-09-20 12:24:23 +02:00
Alexander Neumann
8a44d47f76 [vcpkg] add missing implib definitions, fix shared lib extension on mac (#8131)
* [vcpkg] add missing implib definitions, fix shared lib extension on mac

(cherry picked from commit 2cddef9541)

* Better find_library suffixes and prefixes.

* moved additional suffix into a comment and reverted back to what is expected on windows

* updated documentation for add variables.
2019-09-16 09:06:06 -07:00
Alexander Neumann
d93b940b18
Merge branch 'master' into path_separator 2019-08-23 08:54:20 +02:00
Alexander Neumann
78abf650e7 [vcpkg] QoL: add host/target dependent variables for executable suffixes (#7599)
* improve documentation

* add executable suffixes for host/target into common definitions
2019-08-22 15:57:24 -07:00
Alexander Neumann
18d61a3fb1
Merge branch 'master' into path_separator 2019-08-21 12:00:35 +02:00
Alexander Neumann
743bec775a make find_library useable without errors to console. (#7773) 2019-08-20 08:34:18 -07:00
Alexander Neumann
70f4aabbe8
Merge branch 'master' into path_separator 2019-08-19 21:40:43 +02:00
Alexander Neumann
9c879883f6 add variables for target specific library suffix and prefix. (#7600)
also set the according cmakevariables in script mode
enabling find_library calls in portfiles
2019-08-19 11:13:30 -07:00
Alexander Neumann
5899cd1d25 improve documentation 2019-08-08 14:40:47 +02:00
Alexander Neumann
b72fa4561f use it in vcpkg_add_to_path. 2019-08-08 14:22:53 +02:00
Alexander Neumann
6eaf7f0f97 add definition for host specific path separators 2019-08-08 14:18:47 +02:00
Alexander Neumann
fd87a081bb Introduce an easier way to identify target systems... (#6846)
* Introduce an easier way to identify target systems...

* fix missing ()

* move the include around.
also added vcpkg_common_functions to be automatically included

* remove warning message

* added remaining VCPKG_CMAKE_SYSTEM_NAMEs found only in vcpkg_configure_cmake to load a toolchain.

* remove warning again from messed up merge
2019-06-26 15:00:48 -07:00