Releases: IsaacShelton/AdeptCrossCompilation
Adept Cross Compiling Support (v2.8)
For Adept versions 2.8+
Requirements
Requires Adept 2.8+ (Adept 2.8 recommended)
Changelog
- Moved
x86_64-w64-mingw32-ld
tobin/x86_64-w64-mingw32-ld
- Added
bin/x86_64-w64-mingw32-windres
- Added
bin/x86_64-w64-mingw32-gcc
- Added
libexec/gcc/x86_64-w64-mingw32/12.2.0/cc1
- Added
include/*.h
These changes are to allow for cross compiling Windows resource files
For MacOS to Windows
In the folder cross-compile-windows
is all the necessary components to allow Adept to cross compile for Windows.
Installation
Copy cross-compile-windows
to where the adept
executable is located. If you don't know where adept
is located, you can figure it out by running adept --version
and taking the parent folder of Import Folder
:
Platform: MacOS
Adept Build: Adept 2.8 - Built Oct 23 2022 22:18:05
Adept Version: 2.8
Pkg Manager: enabled
Import Folder: "/Library/Adept/2.8.0/import/"
Stblib Folder: "/Library/Adept/2.8.0/import/2.8"
In this case, the Import Folder
is located at /Library/Adept/2.8.0/import/
, so we need to place cross-compile-windows
in the folder above that, which is /Library/Adept/2.8.0
.
Example
/Library/Adept/2.8.0/cross-compile-windows/crt2.o
/Library/Adept/2.8.0/cross-compile-windows/crtbegin.o
/Library/Adept/2.8.0/cross-compile-windows/libdep.a
/Library/Adept/2.8.0/cross-compile-windows/libgcc_s_seh-1.dll
/Library/Adept/2.8.0/cross-compile-windows/libstdc++-6.dll
/Library/Adept/2.8.0/cross-compile-windows/libwinpthread-1.dll
/Library/Adept/2.8.0/cross-compile-windows/bin/x86_64-w64-mingw32-gcc
/Library/Adept/2.8.0/cross-compile-windows/bin/x86_64-w64-mingw32-ld
/Library/Adept/2.8.0/cross-compile-windows/bin/x86_64-w64-mingw32-windres
etc.
Adept will automatically recognize that you've installed the Adept cross-compile-windows
extension when you tell it to cross compile to Windows.
Components
crt2.o
- Support Library (obtained from the MinGW-w64 Project)crtbegin.o
- Support Library (obtained from the MinGW-w64 Project)libdep.a
- Bundled Support Archive (Contains lots of small .o files obtained from the MinGW-w64 Project)libgcc_s_seh-1.dll
- SEH Windows Exceptions (obtained from the MinGW-w64 Project)libmsvcrt.a
- C Standard Library Support (obtained from the MinGW-w64 Project)libstdc++-6.dll
- C++ Components (obtained from the MinGW-w64 Project)libwinpthread-1.dll
- POSIX Thread Support (obtained from the MinGW-w64 Project)bin/x86_64-w64-mingw32-gcc
- Windows Cross-Compilation C Compiler used bywindres
for preprocessing resource files (obtained from the MinGW-w64 Project)bin/x86_64-w64-mingw32-ld
- Windows Cross-Compilation Linker (obtained from the MinGW-w64 Project)bin/x86_64-w64-mingw32-windres
- Windows Cross-Compilation Resource Compiler (obtained from the MinGW-w64 Project)libexec/gcc/x86_64-w64-mingw32/12.2.0/cc1
- MinGW C infrastructure used to preprocess resource filesinclude/*.h
- MinGW C Headers used for resources files
Usage
Adept code can be cross-compiled for Windows by using
adept --windows
Adept Cross Compiling Support (v2.4-v2.7)
For Adept versions v2.4-v2.7
Requirements
Requires Adept 2.4+ (Adept 2.7 recommended)
For MacOS to Windows
In the folder cross-compile-windows
is all the necessary components to allow Adept to cross compile for Windows.
Installation
Copy cross-compile-windows
to where the adept
executable is located. If you don't know where adept
is located, you can figure it out by running adept --version
and taking the parent folder of Import Folder
:
Platform: MacOS
Adept Build: Adept 2.4 - Build Sep 5 2020 21:14:51 CDT
Adept Version: 2.4
Pkg Manager: disabled
Import Folder: "/Users/isaac/Projects/Adept/bin/import/"
Stblib Folder: "/Users/isaac/Projects/Adept/bin/import/2.4"
In this case, the Import Folder
is located at /Users/isaac/Projects/Adept/bin/import
, so we need to place cross-compile-windows
in the folder above that, which is /Users/isaac/Projects/Adept/bin
.
Example
/Users/isaac/Projects/Adept/bin/cross-compile-windows/crt2.o
/Users/isaac/Projects/Adept/bin/cross-compile-windows/crtbegin.o
/Users/isaac/Projects/Adept/bin/cross-compile-windows/libdep.a
/Users/isaac/Projects/Adept/bin/cross-compile-windows/libgcc_s_seh-1.dll
/Users/isaac/Projects/Adept/bin/cross-compile-windows/libstdc++-6.dll
/Users/isaac/Projects/Adept/bin/cross-compile-windows/libwinpthread-1.dll
/Users/isaac/Projects/Adept/bin/cross-compile-windows/x86_64-w64-mingw32-ld
Adept will automatically recognize that you've installed the Adept cross-compile-windows
extension when you tell it to cross compile to Windows.
Components
-
crt2.o
- Support Library (obtained from the MinGW-w64 Project) -
crtbegin.o
- Support Library (obtained from the MinGW-w64 Project) -
libdep.a
- Bundled Support Archive (Contains lots of small .o files obtained from the MinGW-w64 Project) -
libgcc_s_seh-1.dll
- SEH Windows Exceptions (obtained from the MinGW-w64 Project) -
libmsvcrt.a
- C Standard Library Support (obtained from the MinGW-w64 Project) -
libstdc++-6.dll
- C++ Components (obtained from the MinGW-w64 Project) -
libwinpthread-1.dll
- POSIX Thread Support (obtained from the MinGW-w64 Project) -
x86_64-w64-mingw32-ld
- Windows Cross-Compilation Linker (obtained from the MinGW-w64 Project)
Usage
Adept code can be cross-compiled for Windows by using
adept --windows