From 1a548277882323489c205ba14f1e2f9d0c7fd976 Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Mon, 1 May 2023 07:18:02 -0400 Subject: [PATCH] content/doc/install: add notes about cross-compilation This commit provides some hints about how to cross-compile Gio between desktop platforms. Signed-off-by: Chris Waldon --- content/doc/install/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/doc/install/index.md b/content/doc/install/index.md index 179d7f0..8f8ace8 100644 --- a/content/doc/install/index.md +++ b/content/doc/install/index.md @@ -41,3 +41,12 @@ For the platforms some additional dependencies may be necessary. The `gogio` tool will use the `appicon.png` file in your main package directory, if present, as the app icon. + +## Cross Compilation + +Gio can be cross-complied for platforms other than the current OS, but this requires an appropriate cross-compiler for any native code integrations. Cross-compilation is most easily achieved from Linux, and the Linux instructions can be followed within a container or VM from other platforms. + +### From Linux + +- `macOS`: a cross-compiler like [osxcross](https://github.com/tpoechtrager/osxcross) as well as the macOS SDK (see link for instructions). +- `Windows`: no special compiler is needed, as we don't use CGo for Windows support. -- 2.45.2