Commit Graph

116 Commits

Author SHA1 Message Date
Thomas Pöchtrager
c4a842ae23 Support extracting MacOS 13.x and MacOS 14.x SDKs.
Fix a libc++ include order issue in the Wrapper.
Fix for https://github.com/tpoechtrager/osxcross/issues/383
Introduce a complex C++20 test for SDK versions 13.3 and above, requiring Clang version 13.0 or higher.
Update the GCC version to 13.2.0 in the build_gcc.sh script.
2023-08-17 18:55:09 +02:00
Thomas Pöchtrager
82d685c562 Fix for #383 2023-08-17 13:16:35 +02:00
Joost-Wim Boekesteijn
26063b07e2
osxcross-macports: update macOS -> darwin mapping
macOS 11.* should map to darwin_20
macOS 13.* should map to darwin_22

macOS 12.* was already correctly set to darwin_21

This follows the logic from https://trac.macports.org/wiki/XcodeVersionInfo#macOSVersionMap and https://en.wikipedia.org/wiki/Darwin_(operating_system)#Darwin_20_onwards
2023-04-05 07:56:04 +02:00
Joost-Wim Boekesteijn
06dbef2a8e
support macOS 12.x and 13.x SDKs from tools 2022-09-14 08:25:18 +02:00
Thomas Pöchtrager
6796ca7e6b gen_sdk_package.sh: Support macOS 13.x SDKs 2022-06-10 19:24:09 +02:00
Thomas Pöchtrager
58c372da6a Revert "gen_sdk_package.sh: Use a more general pattern for finding the SDKs"
This reverts commit 2752b1c9e2.

It breaks the script on my Computer. Arch Linux.
2022-06-10 19:22:36 +02:00
David (Pololu)
2752b1c9e2 gen_sdk_package.sh: Use a more general pattern for finding the SDKs
so the script has some hope of working when macOS is released.
Also make it show an error message if no SDKs are found instead of
just stopping.
2022-06-05 14:17:15 -07:00
lucor
95285e589f
gen_sdk_package_tools_dmg: extract packages with not standard name
This commit allows to extract the Command Line Tools pkg with a not standard name from the .dmg.
For example the Command_Line_Tools_macOS_10.11_for_Xcode_8.2.dmg contains "Command Line Tools (macOS El Capitan version 10.11).pkg" and the Command_Line_Tools_OS_X_10.11_for_Xcode_7.3.dmg contains "Command Line Tools (OS X 10.11).pkg"
2022-01-21 20:42:49 +01:00
CrazyMax
aee7305d8b
osxcross-macports: 12 target 2021-12-31 18:13:27 +01:00
Nikos Chantziaras
23f82c2057
Fix cmake wrapper breaking cmake build options
Since cmake 3.20, "-D" prevents any build options (--build, --target, -j,
etc) from working. It will abort with an "unrecognized argument" error.

Fix the issue by passing the toolchain file as an env variable to cmake,
not with -D.
2021-11-23 17:14:40 +02:00
mite-user
532b955de3 osxcross-macports: add package version check 2021-09-19 14:51:07 +03:00
Sandro Gauci
88f627a812 added arm64 switch on osxcross-macports 2021-07-30 10:28:25 +02:00
Thomas Pöchtrager
bce9988c71 gen_sdk_package_pbzx.sh: Build pbzx with -O2 and -Wall 2021-07-17 12:07:28 +02:00
Thomas Pöchtrager
1c23b94bad Support latest Xcode 2021-06-09 08:43:47 +02:00
Luca Corbo
1c8440a804
verify_sdk_version: exit with code 1 if the SDK is not found
This change updates the exit code for `verify_sdk_version` to `1` function if the SDK is not found.
This should help to stop the build in automatic scripts when the SDK_VERSION env variable is set to a invalid value.
2021-05-08 13:15:48 +02:00
Dean M Greer
5fb7f5496b tools.sh: Workaround hardcoded paths
As OpenSSL is expected to be in a standard UNIX location but that's not always the case on macOS, this works around the issue regardless of package manager used as long as pkg-config is installed into $PATH

Macports default prefix is /opt/local
Homebrew on M1 uses /opt/homebrew
2021-03-29 21:45:29 -04:00
Thomas Pöchtrager
00b9083b07 osxcross-macports:
* Add 11.x target
* Enable HTTPS
2021-03-27 18:56:46 +01:00
Ben Kochie
7838690391
Fix build_complete_file in get_sources
Move setting build_complete_file to after fetching project_name using
get_project_name_from_url. Avoids empty ".FOO_build_complete" file name.
* Fix up a number of shellcheck issues in get_sources().

Signed-off-by: Ben Kochie <superq@gmail.com>
2021-03-23 18:02:41 +01:00
Rok Mandeljc
3a4335d042 Add scripts for extracting SDKs from Command Line Tools for Xcode
Being able to extract SDKs from Command Line Tools for Xcode instead
of the full Xcode package saves bandwidth, disk space, and time.

Two scripts are added:
* tools/gen_sdk_package_tools.sh: extracts SDKs from installed
  Command Line Tools on macOS (/Library/Developer/CommandLineTools)
  or from a path specified via XCODE_TOOLS_DIR
* tools/gen_sdk_package_tools_dmg.sh: unpacks the content of provided
  Command_Line_Tools_for_Xcode.dmg and extracts SDKs via the above
  script.

Tested with Command Line Tools for Xcode 12.x.
2021-01-29 21:59:49 +01:00
Thomas Pöchtrager
9d7f6c2461 More Android/Termux adjustments 2020-10-14 09:24:50 +02:00
Thomas Pöchtrager
536dc13153 * Update README
* Update ChangeLog
* Mac OS X -> macOS
2020-08-17 19:19:47 +02:00
Thomas Pöchtrager
5489149683 More work on ARM target 2020-08-16 19:26:58 +02:00
Thomas Pöchtrager
261de10511 Support ARM target 2020-08-15 20:07:54 +02:00
Thomas Pöchtrager
1b731164df Fix for #221 2020-04-11 22:30:28 +02:00
Thomas Pöchtrager
2f02baaf90 osxcross-macports: Add 10.15 target 2020-04-10 19:48:00 +02:00
Thomas Pöchtrager
4d46f4bbf2 Build scripts & osxcross-macports: Tweak tarball download code 2020-04-10 19:46:06 +02:00
Thomas Pöchtrager
748108aec4 * Bump Version to 1.2
* Drop support for <= 10.5 SDKs (use osxcross-1.1 branch instead)
* Adjustments for ld64 512.4
2020-03-22 13:04:53 +01:00
Thomas Pöchtrager
6edf1ca936 * Add xcodebuild stub tool. Only '-version' is supported.
* build_compiler_rt.sh: Change git repository. The llvm.org one is no longer synced.
* build_compiler_rt.sh: Add check for os/lock.h.
* xcrun: "Support" -show-sdk-platform-path.
* sw_vers: Output 0CFFFF for Build Version.
2020-03-10 16:49:39 +01:00
Thomas Pöchtrager
542acc2ef6 Make OSXCross work on Android (Termux)
Additional changes:

5e9c52005f
9fa76fb95a
8239a5211b

cd9885b97f
2019-11-06 20:42:24 +01:00
Thomas Pöchtrager
2f504fe4ba * Update cctools to 927.0.2 and ld64 to 450.3
* Added back support for OpenBSD
* Some cleanup and various fixes
2019-11-02 13:26:21 +01:00
Thomas Pöchtrager
379f7648c3 Make TARGET_DIR configurable (#108, #137, #201) 2019-10-23 16:06:00 +02:00
Sebastian Krzyszkowiak
832e3b2b3f
Add missing zlib1g-dev Debian dependency 2019-10-06 17:18:31 +02:00
Thomas Pöchtrager
37894c5839 gen_sdk_package_*.sh: Accept relative Xcode paths (closes #189) 2019-08-16 10:09:22 +02:00
Thomas Pöchtrager
ada9ea8d1b Some cleanup 2019-06-04 18:34:11 +02:00
Thomas Pöchtrager
8a780ba3ae Although it may work, GCC shouldn't be built by clang 2019-06-02 09:40:04 +02:00
Thomas Pöchtrager
68bdbd9452 New:
* Added support for TAPIv3 stubs (including "zippering" target)
* Added support for MacOSX SDKs up to 10.14
* Added new SDK packaging script for SDKs that end with ".xip" (tools/gen_sdk_package_pbzx.sh <xcode.xip>) (tested up to Xcode 10.2.1)
* Updated cctools to 921 and ld64 to 409.12

Fixed:
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/171
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/178
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/182

Changed:
* cctools, ld64, apple-libtapi and xar are now "git clone"'d and no longer come with OSXCross.

Removed:
* Support for Cygwin and *BSD (besides FreeBSD)
* Support for building OSXCross with GCC
2019-06-01 19:57:44 +02:00
Thomas Pöchtrager
ee54d9fd43
Remove unneeded file 2019-03-07 15:04:49 +01:00
b1ue
bea1afb2f3 Fix the findtherightuser problem 2019-03-07 14:25:15 +01:00
b1ue
a1c48a02d4 Update: it is better to use env to handle the case the host system has multiple users 2019-03-07 12:38:41 +01:00
b1ue
05b2486a0c Added feature to install uuid from AUR 2019-03-07 11:37:23 +01:00
b1ue
a298620e9d Added Arch linux option in the dependencies script 2019-03-05 16:26:10 +01:00
Quentin PARIS
9419c1be8f osxcross-macport: support for universal binaries 2018-10-13 21:17:38 +02:00
Thomas Pöchtrager
f4ba4facae
Merge pull request #148 from jpcima/cmake
add CMake
2018-09-09 08:52:23 +02:00
don bright
7f85bacb59
fix issue #118
fix issue #118
2018-08-20 18:47:59 -05:00
JP Cimalando
d4628c4377 CMake: provide the definition of CMAKE_INSTALL_NAME_TOOL 2018-07-21 01:55:49 +02:00
Thomas Pöchtrager
c47ff0aeed gen_sdk_package_darling_dmg.sh: Update darling-dmg to 991a1c19d67e30ad1099fc871c4f9e702dd4d489 2018-06-29 16:10:45 +02:00
Thomas Pöchtrager
38baf8d2fa gen_sdk_package_p7zip.sh: Compile p7zip sources as C++03 2018-06-29 16:10:22 +02:00
JP Cimalando
f394d6a890 add CMake 2018-03-10 18:29:47 +01:00
heinrich5991
51805010c9 Fix compilation issue in darling-dmg
This pulls in the https://github.com/darlinghq/darling-dmg/pull/41 fix
for compilation with newer GCC.

The error message this fixes is
```
osxcross/build/darling-dmg/src/main-fuse.cpp:137:28: error: no member named 'function' in namespace 'std'
int handle_exceptions(std::function<int()> func)
                      ~~~~~^
osxcross/build/darling-dmg/src/main-fuse.cpp:137:44: error: use of undeclared identifier 'func'
int handle_exceptions(std::function<int()> func)
                                           ^
osxcross/build/darling-dmg/src/main-fuse.cpp:137:49: error: expected ';' after top level declarator
int handle_exceptions(std::function<int()> func)
                                                ^
                                                ;
3 errors generated.
```
2017-10-25 09:50:23 +02:00
Thomas Pöchtrager
6f603a9c0a Misc 'osxcross-macports' fixes 2017-02-19 19:50:18 +01:00