|
|
@ -51,6 +51,7 @@ DEFINES = [ |
|
|
|
'XASH_NETBSD', |
|
|
|
'XASH_NETBSD', |
|
|
|
'XASH_OPENBSD', |
|
|
|
'XASH_OPENBSD', |
|
|
|
'XASH_POSIX', |
|
|
|
'XASH_POSIX', |
|
|
|
|
|
|
|
'XASH_PPC', |
|
|
|
'XASH_RISCV', |
|
|
|
'XASH_RISCV', |
|
|
|
'XASH_RISCV_DOUBLEFP', |
|
|
|
'XASH_RISCV_DOUBLEFP', |
|
|
|
'XASH_RISCV_SINGLEFP', |
|
|
|
'XASH_RISCV_SINGLEFP', |
|
|
@ -126,7 +127,7 @@ def configure(conf): |
|
|
|
buildarch += "4" |
|
|
|
buildarch += "4" |
|
|
|
else: |
|
|
|
else: |
|
|
|
raise conf.fatal('Unknown ARM') |
|
|
|
raise conf.fatal('Unknown ARM') |
|
|
|
|
|
|
|
|
|
|
|
if conf.env.XASH_ARM_HARDFP: |
|
|
|
if conf.env.XASH_ARM_HARDFP: |
|
|
|
buildarch += "hf" |
|
|
|
buildarch += "hf" |
|
|
|
else: |
|
|
|
else: |
|
|
@ -143,7 +144,7 @@ def configure(conf): |
|
|
|
buildarch += "64" |
|
|
|
buildarch += "64" |
|
|
|
else: |
|
|
|
else: |
|
|
|
buildarch += "32" |
|
|
|
buildarch += "32" |
|
|
|
|
|
|
|
|
|
|
|
if conf.env.XASH_RISCV_DOUBLEFP: |
|
|
|
if conf.env.XASH_RISCV_DOUBLEFP: |
|
|
|
buildarch += "d" |
|
|
|
buildarch += "d" |
|
|
|
elif conf.env.XASH_RISCV_SINGLEFP: |
|
|
|
elif conf.env.XASH_RISCV_SINGLEFP: |
|
|
@ -152,12 +153,18 @@ def configure(conf): |
|
|
|
buildarch = "javascript" |
|
|
|
buildarch = "javascript" |
|
|
|
elif conf.env.XASH_E2K: |
|
|
|
elif conf.env.XASH_E2K: |
|
|
|
buildarch = "e2k" |
|
|
|
buildarch = "e2k" |
|
|
|
|
|
|
|
elif conf.env.XASH_PPC: |
|
|
|
|
|
|
|
buildarch = "ppc" |
|
|
|
|
|
|
|
if conf.env.XASH_64BIT: |
|
|
|
|
|
|
|
buildarch += "64" |
|
|
|
|
|
|
|
if conf.env.XASH_LITTLE_ENDIAN: |
|
|
|
|
|
|
|
buildarch += "el" |
|
|
|
else: |
|
|
|
else: |
|
|
|
raise conf.fatal("Place your architecture name in build.h and library_naming.py!\n" |
|
|
|
raise conf.fatal("Place your architecture name in build.h and library_naming.py!\n" |
|
|
|
"If this is a mistake, try to fix conditions above and report a bug") |
|
|
|
"If this is a mistake, try to fix conditions above and report a bug") |
|
|
|
|
|
|
|
|
|
|
|
conf.env.revert() |
|
|
|
conf.env.revert() |
|
|
|
|
|
|
|
|
|
|
|
if buildos == 'android': |
|
|
|
if buildos == 'android': |
|
|
|
# force disable for Android, as Android ports aren't distributed in normal way and doesn't follow library naming |
|
|
|
# force disable for Android, as Android ports aren't distributed in normal way and doesn't follow library naming |
|
|
|
conf.env.POSTFIX = '' |
|
|
|
conf.env.POSTFIX = '' |
|
|
@ -167,5 +174,5 @@ def configure(conf): |
|
|
|
conf.env.POSTFIX = '_%s' % buildarch |
|
|
|
conf.env.POSTFIX = '_%s' % buildarch |
|
|
|
else: |
|
|
|
else: |
|
|
|
conf.env.POSTFIX = '' |
|
|
|
conf.env.POSTFIX = '' |
|
|
|
|
|
|
|
|
|
|
|
conf.end_msg(conf.env.POSTFIX) |
|
|
|
conf.end_msg(conf.env.POSTFIX) |
|
|
|