]> git.cameronkatri.com Git - dotfiles.git/blob - .crossenv.zsh
fe0b11b4b537e77d0ed09f5d630c2697d28ccebd
[dotfiles.git] / .crossenv.zsh
1 iphoneos-arm64-proenv() {
2 MEMO_TARGET='iphoneos-arm64' PLATFORM='iphoneos' MEMO_ARCH='arm64' TARGET_SYSROOT='/usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk' MACOSX_SYSROOT='/usr/home/cameron/Documents/iOS/SDK/MacOSX11.1.sdk' GNU_HOST_TRIPLE='aarch64-apple-darwin'
3 CC='aarch64-apple-darwin-clang' CXX='aarch64-apple-darwin-clang++' AR='aarch64-apple-darwin-ar' LD='aarch64-apple-darwin-ld ' CPP='aarch64-apple-darwin-clang -E' RANLIB='aarch64-apple-darwin-ranlib ' STRIP='aarch64-apple-darwin-strip' NM='aarch64-apple-darwin-nm' LIPO='aarch64-apple-darwin-lipo' OTOOL='aarch64-apple-darwin-otool' I_N_T='aarch64-apple-darwin-install_name_tool' EXTRA='' SED='sed ' LDID='ldid' GINSTALL='install ' LN='ln' CP='cp'
4 BUILD_ROOT='/usr/home/cameron/Documents/iOS/Procursus' BUILD_BASE='/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700' BUILD_INFO='/usr/home/cameron/Documents/iOS/Procursus/build_info' BUILD_WORK='/usr/home/cameron/Documents/iOS/Procursus/build_work/iphoneos-arm64/1700' BUILD_STAGE='/usr/home/cameron/Documents/iOS/Procursus/build_stage/iphoneos-arm64/1700' BUILD_DIST='/usr/home/cameron/Documents/iOS/Procursus/build_dist/iphoneos-arm64/1700' BUILD_STRAP='/usr/home/cameron/Documents/iOS/Procursus/build_strap/iphoneos-arm64/1700' BUILD_TOOLS='/usr/home/cameron/Documents/iOS/Procursus/build_tools'
5 DEB_ARCH='iphoneos-arm' DEB_ORIGIN='' DEB_MAINTAINER='Cameron Katri <me@cameronkatri.com>'
6 CFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=14.0 -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks'
7 CXXFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=14.0 -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks'
8 CPPFLAGS='-arch arm64 -miphoneos-version-min=14.0 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -Wno-error-implicit-function-declaration'
9 LDFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=14.0 -L/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/lib -L/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/local/lib -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks -liosexec'
10 export MEMO_TARGET PLATFORM MEMO_ARCH TARGET_SYSROOT MACOSX_SYSROOT GNU_HOST_TRIPLE
11 export CC CXX AR LD CPP RANLIB STRIP NM LIPO OTOOL I_N_T EXTRA SED LDID GINSTALL LN CP
12 export BUILD_ROOT BUILD_BASE BUILD_INFO BUILD_WORK BUILD_STAGE BUILD_DIST BUILD_STRAP BUILD_TOOLS
13 export DEB_ARCH DEB_ORIGIN DEB_MAINTAINER
14 export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
15 }
16
17 iphoneos-arm64-env() {
18 TARGET_SYSROOT='/usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk'
19 CC='aarch64-apple-darwin-clang' CXX='aarch64-apple-darwin-clang++' AR='aarch64-apple-darwin-ar' LD='aarch64-apple-darwin-ld' CPP='aarch64-apple-darwin-clang -E' RANLIB='aarch64-apple-darwin-ranlib' STRIP='aarch64-apple-darwin-strip' NM='aarch64-apple-darwin-nm' LIPO='aarch64-apple-darwin-lipo' OTOOL='aarch64-apple-darwin-otool' I_N_T='aarch64-apple-darwin-install_name_tool' LDID='ldid'
20 CFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk -miphoneos-version-min=12.0 -isystem /usr/home/cameron/Documents/iOS/apple_cmds/base/include'
21 CXXFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk -miphoneos-version-min=12.0 -isystem /usr/home/cameron/Documents/iOS/apple_cmds/base/include'
22 CPPFLAGS='-arch arm64 -miphoneos-version-min=12.0 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk -isystem /usr/home/cameron/Documents/iOS/apple_cmds/base/include'
23 LDFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk -miphoneos-version-min=12.0 -L/usr/home/cameron/Documents/iOS/apple_cmds/base/lib'
24 export CC CXX AR LD CPP RANLIB STRIP NM LIPO OTOOL I_N_T LDID
25 export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
26 }
27
28 # Procursus Env Vars
29 export TARGET_SYSROOT=/usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk
30 export MACOSX_SYSROOT=/usr/home/cameron/Documents/iOS/SDK/MacOSX11.1.sdk
31 export DEB_MAINTAINER="Cameron Katri <me@cameronkatri.com>"
32 export MEMO_DEVICE_IP=localhost
33 export MEMO_DEVICE_PORT=2222
34 export MEMO_FORCE_LTO=1
35 export MEMO_TARGET=iphoneos-arm64
36 export DPKG_TYPE=xz
37 export GNUBINDIR=/usr/local/gnubin
38
39 function x86_64-linux-gnu-env() {
40 export CC='clang --target=x86_64-linux-gnu' CFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/ -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter' CPPFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/ -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter' LDFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/' LD='ld --target=x86_64-linux-gnu' AR='llvm-ar' NM='llvm-nm'
41 }