Skip to content

Commit

Permalink
templating script and target configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalao authored and Jose Palao committed Aug 29, 2021
1 parent f42620c commit 2ff70d3
Show file tree
Hide file tree
Showing 15 changed files with 1,737 additions and 0 deletions.
79 changes: 79 additions & 0 deletions ios/config/appletv/arm64/config.h.diff
@@ -0,0 +1,79 @@
/*#define HAS_FORK / **/
/*#define HAS_SYSCALL / **/
/*#define HAS_SYSTEM / **/
/*#define I_SYS_DIR / **/
#define LONGSIZE 8 /**/
# define Quad_t long /**/
# define Uquad_t unsigned long /**/
# define QUADKIND 2 /**/
#define MEM_ALIGNBYTES 8
#define CASTI32 /**/
/*#define CASTNEGFLOAT / **/
#define CASTFLAGS 1 /**/
#define Gconvert(x,n,t,b) sprintf((b),"%.*g",(n),(x))
#define USE_STDIO_PTR /**/
#define STDIO_PTR_LVALUE /**/
#define STDIO_CNT_LVALUE /**/
#define STDIO_PTR_LVAL_NOCHANGE_CNT /**/
#define USE_STDIO_BASE /**/
#define RD_NODATA -1
#define EOF_NONBLOCK
#define PTRSIZE 8 /**/
#define CPPSTDIN "/usr/bin/clang -no-cpp-precomp -arch arm64 -DTARGET_OS_APPLETV -I/opt/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include -arch arm64 -mappletvos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk -DPERL_USE_SAFE_PUTENV -fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -pipe -O0 -g -fno-strict-aliasing -fstack-protector-strong -E"
#define CPPRUN "/usr/bin/clang -no-cpp-precomp -arch arm64 -DTARGET_OS_APPLETV -I/opt/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include -arch arm64 -mappletvos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk -DPERL_USE_SAFE_PUTENV -fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -pipe -O0 -g -fno-strict-aliasing -fstack-protector-strong -E"
#define LONG_DOUBLESIZE 8 /**/
#define LONG_DOUBLEKIND 0 /**/
#undef LONG_DOUBLE_STYLE_IEEE
#undef LONG_DOUBLE_STYLE_IEEE_EXTENDED
/*#define USE_SEMCTL_SEMUN / **/
/*#define USE_SEMCTL_SEMID_DS / **/
/*#define HAS_BUILTIN_ADD_OVERFLOW / **/
/*#define HAS_BUILTIN_SUB_OVERFLOW / **/
/*#define HAS_BUILTIN_MUL_OVERFLOW / **/
#define HAS_FAST_STDIO /**/
#define HAS_FCHMODAT /**/
#define HAS_LINKAT /**/
#define HAS_OPENAT /**/
#define HAS_RENAMEAT /**/
#define HAS_UNLINKAT /**/
#define HAS_FUTIMES /**/
/*#define HAS_MKOSTEMP / **/
/*#define HAS_SYSCALL_PROTO / **/
#define DB_VERSION_MAJOR_CFG 1 /**/
#define DB_VERSION_MINOR_CFG 0 /**/
#define DB_VERSION_PATCH_CFG 0 /**/
#define DOUBLENANBYTES 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f /**/
#define LONGDBLINFBYTES 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f /**/
#define LONGDBLNANBYTES 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f /**/
#define PERL_PRIfldbl "f" /**/
#define PERL_PRIgldbl "g" /**/
#define PERL_PRIeldbl "e" /**/
#define PERL_SCNfldbl "f" /**/
#define LONGDBLMANTBITS 52
#define NVMANTBITS 52
/*#define NEED_VA_COPY / **/
#define I32TYPE int /**/
#define U32TYPE unsigned int /**/
#define I64TYPE long /**/
#define U64TYPE unsigned long /**/
#define NVTYPE double /**/
#define IVSIZE 8 /**/
#define UVSIZE 8 /**/
#define NVSIZE 8 /**/
#undef NV_PRESERVES_UV
#define NV_PRESERVES_UV_BITS 53
#define NV_OVERFLOWS_INTEGERS_AT (256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0)
#define NV_ZERO_IS_ALLBITS_ZERO
#define NVef "e" /**/
#define NVff "f" /**/
#define NVgf "g" /**/
#define GMTIME_MAX 67768036191676799 /**/
#define GMTIME_MIN -62167219200 /**/
#define LOCALTIME_MAX 67768036191673199 /**/
#define LOCALTIME_MIN -62167219200 /**/
#define USE_64_BIT_INT /**/
#define USE_64_BIT_ALL /**/
/*#define USE_LONG_DOUBLE / **/
#define Gid_t_f "u" /**/
#define Size_t_size 8 /**/
#define Uid_t_f "u" /**/
115 changes: 115 additions & 0 deletions ios/config/appletv/arm64/config.sh.diff
@@ -0,0 +1,115 @@
alignbytes='8'
aphostname='/usr/bin/hostname'
c=''
castflags='1'
cccdlflags=' -arch arm64 -mappletvos-version-min=8.0 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk'
ccflags='-fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -no-cpp-precomp -mappletvos-version-min=8.0 -arch arm64 -DTARGET_OS_APPLETV -I/opt/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include -arch arm64 -mappletvos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk -DPERL_USE_SAFE_PUTENV -fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -pipe -O0 -g -fno-strict-aliasing -fstack-protector-strong -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include -I/opt/local/include'
cf_time='Wed Jun 17 20:19:17 CEST 2020'
cppflags='-no-cpp-precomp -arch arm64 -DTARGET_OS_APPLETV -I/opt/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include -arch arm64 -mappletvos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk -DPERL_USE_SAFE_PUTENV -fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -pipe -O0 -g -fno-strict-aliasing -fstack-protector-strong'
cpprun='/usr/bin/clang -no-cpp-precomp -arch arm64 -DTARGET_OS_APPLETV -I/opt/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include -arch arm64 -mappletvos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk -DPERL_USE_SAFE_PUTENV -fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -pipe -O0 -g -fno-strict-aliasing -fstack-protector-strong -E'
cppstdin='/usr/bin/clang -no-cpp-precomp -arch arm64 -DTARGET_OS_APPLETV -I/opt/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include -arch arm64 -mappletvos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk -DPERL_USE_SAFE_PUTENV -fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -pipe -O0 -g -fno-strict-aliasing -fstack-protector-strong -E'
cppsymbols='_FORTIFY_SOURCE=2 _LP64=1 __BYTE_ORDER__=1234 __GNUC_MINOR__=2 __GNUC__=4 __LITTLE_ENDIAN__=1 __LP64__=1 __MACH__=1 __PIC__=2 __STDC__=1 __aarch64__=1 __clang__=1 __pic__=2'
d_Gconvert='sprintf((b),"%.*g",(n),(x))'
d_bsd='define'
d_builtin_add_overflow='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
d_casti32='define'
d_castneg='undef'
d_eofnblk='define'
d_faststdio='define'
d_fchmodat='define'
d_fork='undef'
d_futimes='define'
d_linkat='define'
d_long_double_style_ieee='undef'
d_long_double_style_ieee_extended='undef'
d_mkostemp='undef'
d_nv_preserves_uv='undef'
d_nv_zero_is_allbits_zero='define'
d_openat='define'
d_renameat='define'
d_semctl_semid_ds='undef'
d_semctl_semun='undef'
d_stdio_cnt_lval='define'
d_stdio_ptr_lval='define'
d_stdio_ptr_lval_nochange_cnt='define'
d_stdiobase='define'
d_stdstdio='define'
d_syscall='undef'
d_syscallproto='undef'
d_system='undef'
d_unlinkat='define'
d_vfork='undef'
doublenanbytes='0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f'
gidformat='"u"'
i32type='int'
i64type='long'
i_sysdir='undef'
incpth='/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include /opt/local/include /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include'
ivsize='8'
ld='/usr/bin/clang -arch arm64'
lddlflags=' -mappletvos-version-min=8.0 -bundle -undefined dynamic_lookup -arch arm64 -DTARGET_OS_APPLETV -arch arm64 -L/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib -Wl,-headerpad_max_install_names -bundle -L/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib -L/opt/local/lib -fstack-protector-strong'
ldflags=' -mappletvos-version-min=8.0 -arch arm64 -DTARGET_OS_APPLETV -arch arm64 -L/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib -Wl,-headerpad_max_install_names -fstack-protector-strong -L/opt/local/lib'
libpth='/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib /opt/local/lib /opt/local/lib /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib /lib /usr/lib /usr/local/lib'
libsdirs=' /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib /opt/local/lib'
libsfiles=' libpthread.dylib libdl.dylib libm.dylib libutil.dylib libc.dylib'
libsfound=' /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib/libpthread.dylib /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib/libdbm.dylib /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib/libdl.dylib /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib/libm.dylib /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib/libutil.dylib /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib/libc.dylib'
libspath=' /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib /opt/local/lib /opt/local/lib /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib /lib /usr/lib /usr/local/lib'
locincpth='/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include /opt/local/include'
loclibpth='/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib /opt/local/lib'
longdblinfbytes='0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f'
longdblkind='0'
longdblmantbits='52'
longdblnanbytes='0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f'
longdblsize='8'
longsize='8'
myarchname='arm64-darwin'
n='-n'
need_va_copy='undef'
nvEUformat='"E"'
nvFUformat='"F"'
nvGUformat='"G"'
nv_overflows_integers_at='256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0'
nv_preserves_uv_bits='53'
nveformat='"e"'
nvfformat='"f"'
nvgformat='"g"'
nvmantbits='52'
nvsize='8'
nvtype='double'
ptrsize='8'
quadkind='2'
quadtype='long'
rd_nodata='-1'
sGMTIME_max='67768036191676799'
sGMTIME_min='-62167219200'
sLOCALTIME_max='67768036191673199'
sLOCALTIME_min='-62167219200'
sPRIEUldbl='"E"'
sPRIFUldbl='"F"'
sPRIGUldbl='"G"'
sPRIXU64='"lX"'
sPRId64='"ld"'
sPRIeldbl='"e"'
sPRIfldbl='"f"'
sPRIgldbl='"g"'
sPRIi64='"li"'
sPRIo64='"lo"'
sPRIu64='"lu"'
sPRIx64='"lx"'
sSCNfldbl='"f"'
sizesize='8'
timeincl='/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/time.h '
u32type='unsigned int'
u64type='unsigned long'
uidformat='"u"'
uquadtype='unsigned long'
use64bitall='define'
use64bitint='define'
uselongdouble='undef'
usevfork='false'
uvsize='8'
ios_build='0'
tv_build='1'
watch_build='0'
79 changes: 79 additions & 0 deletions ios/config/appletv/x86_64/config.h.diff
@@ -0,0 +1,79 @@
/*#define HAS_FORK / **/
/*#define HAS_SYSCALL / **/
/*#define HAS_SYSTEM / **/
#define I_SYS_DIR /**/
#define LONGSIZE 8 /**/
# define Quad_t long /**/
# define Uquad_t unsigned long /**/
# define QUADKIND 2 /**/
#define MEM_ALIGNBYTES 16
/*#define CASTI32 / **/
#define CASTNEGFLOAT /**/
#define CASTFLAGS 0 /**/
#define Gconvert(x,n,t,b) sprintf((b),"%.*""Lg",(n),(x))
/*#define USE_STDIO_PTR / **/
/*#define STDIO_PTR_LVALUE / **/
/*#define STDIO_CNT_LVALUE / **/
/*#define STDIO_PTR_LVAL_NOCHANGE_CNT / **/
/*#define USE_STDIO_BASE / **/
#define RD_NODATA
#undef EOF_NONBLOCK
#define PTRSIZE 8 /**/
#define CPPSTDIN "/usr/bin/clang -arch x86_64 -I/opt/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/usr/include -arch x86_64 -mappletvos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk -DPERL_APPLETV -DPERL_USE_SAFE_PUTENV -fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -pipe -O0 -g -fno-strict-aliasing -fstack-protector-strong -E"
#define CPPRUN "/usr/bin/clang -arch x86_64 -I/opt/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/usr/include -arch x86_64 -mappletvos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk -DPERL_APPLETV -DPERL_USE_SAFE_PUTENV -fno-common -fPIC -DPERL_DARWIN -DTARGET_OS_IPHONE -pipe -O0 -g -fno-strict-aliasing -fstack-protector-strong -E"
#define LONG_DOUBLESIZE 16 /**/
#define LONG_DOUBLEKIND 3 /**/
#define LONG_DOUBLE_STYLE_IEEE
#define LONG_DOUBLE_STYLE_IEEE_EXTENDED
#define USE_SEMCTL_SEMUN /**/
#define USE_SEMCTL_SEMID_DS /**/
#define HAS_BUILTIN_ADD_OVERFLOW /**/
#define HAS_BUILTIN_SUB_OVERFLOW /**/
#define HAS_BUILTIN_MUL_OVERFLOW /**/
/*#define HAS_FAST_STDIO / **/
/*#define HAS_FCHMODAT / **/
/*#define HAS_LINKAT / **/
/*#define HAS_OPENAT / **/
/*#define HAS_RENAMEAT / **/
/*#define HAS_UNLINKAT / **/
/*#define HAS_FUTIMES / **/
/*#define HAS_MKOSTEMP / **/
/*#define HAS_SYSCALL_PROTO / **/
#define DB_VERSION_MAJOR_CFG 1 /**/
#define DB_VERSION_MINOR_CFG 0 /**/
#define DB_VERSION_PATCH_CFG 0 /**/
#define DOUBLENANBYTES 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff /**/
#define LONGDBLINFBYTES 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /**/
#define LONGDBLNANBYTES 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /**/
#define PERL_PRIfldbl "Lf" /**/
#define PERL_PRIgldbl "Lg" /**/
#define PERL_PRIeldbl "Le" /**/
#define PERL_SCNfldbl "Lf" /**/
#define LONGDBLMANTBITS 64
#define NVMANTBITS 64
#define NEED_VA_COPY /**/
#define I32TYPE int /**/
#define U32TYPE unsigned int /**/
#define I64TYPE long /**/
#define U64TYPE unsigned long /**/
#define NVTYPE long double /**/
#define IVSIZE 8 /**/
#define UVSIZE 8 /**/
#define NVSIZE 16 /**/
#define NV_PRESERVES_UV
#define NV_PRESERVES_UV_BITS 64
#define NV_OVERFLOWS_INTEGERS_AT (256.0*256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0*2.0*2.0*2.0)
#undef NV_ZERO_IS_ALLBITS_ZERO
#define NVef "Le" /**/
#define NVff "Lf" /**/
#define NVgf "Lg" /**/
#define GMTIME_MAX 67768036191676799 /**/
#define GMTIME_MIN -62167219200 /**/
#define LOCALTIME_MAX 67768036191673199 /**/
#define LOCALTIME_MIN -62167219200 /**/
#define USE_64_BIT_INT /**/
#define USE_64_BIT_ALL /**/
#define USE_LONG_DOUBLE /**/
#define Gid_t_f "u" /**/
#define Size_t_size 8 /**/
#define Uid_t_f "u" /**/

0 comments on commit 2ff70d3

Please sign in to comment.