-
Notifications
You must be signed in to change notification settings - Fork 6
/
MakefileX
42 lines (30 loc) · 1.46 KB
/
MakefileX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Cross-builds:
xbuild: xdarwin xlinux xwindows ## - all desktop PCs and single board computers (SBC)
xdarwin: xdarwin_amd64 xdarwin_arm64 ## - Mac OS X desktops
xdarwin_amd64:
$(call xbuild_cmd,darwin,amd64) -macosx-sdk-path=$(HOME)/SDKs/MacOSX11.3.sdk
./sh/app2dmg.sh amd64
xdarwin_arm64:
$(call xbuild_cmd,darwin,arm64) -macosx-sdk-path=$(HOME)/SDKs/MacOSX11.3.sdk
./sh/app2dmg.sh arm64
xlinux: xlinux_amd64 xlinux_arm64 xlinux_arm ## - Linux desktops and SBCs
xlinux_amd64:
$(call xbuild_cmd,linux,amd64)
cp fyne-cross/dist/linux-amd64/Pixyne.tar.xz fyne-cross/pixyne-linux-amd64.tar.xz
xlinux_arm64:
$(call xbuild_cmd,linux,arm64)
cp fyne-cross/dist/linux-arm64/Pixyne.tar.xz fyne-cross/pixyne-linux-arm64.tar.xz
xlinux_arm:
$(call xbuild_cmd,linux,arm)
cp fyne-cross/dist/linux-arm/Pixyne.tar.xz fyne-cross/pixyne-linux-arm.tar.xz
xwindows: xwindows_amd64 ## - Windows desktops
xwindows_amd64:
$(call xbuild_cmd,windows,amd64)
./sh/app2img.sh amd64
xsdk: ## - Extract SDK from Apple Command Line Tools for Xcode
## only version Xcode_12.5.1 was tested
## https://developer.apple.com/download/all/?q=Command%20Line%20Tools
sudo rm -rf $(HOME)/SDKs
sudo $(HOME)/go/bin/fyne-cross darwin-sdk-extract -pull -xcode-path $(HOME)/Command_Line_Tools_for_Xcode_12.5.1.dmg
.PHONY: xbuild xdarwin xlinux xwindows macsdk xdarwin_amd64 xdarwin_arm64 xlinux_amd64 xlinux_arm64 xlinux_arm xlinux_386 xwindows_amd64 xwindows_386