6060'XASH_X86' ,
6161'XASH_NSWITCH' ,
6262'XASH_PSVITA' ,
63+ 'XASH_WASI' ,
64+ 'XASH_SUNOS' ,
6365]
6466
6567def configure (conf ):
@@ -75,8 +77,12 @@ def configure(conf):
7577 # engine/common/build.c
7678 if conf .env .XASH_ANDROID :
7779 buildos = "android"
78- elif conf .env .XASH_WIN32 or conf .env .XASH_LINUX or conf .env .XASH_APPLE :
79- buildos = "" # no prefix for default OS
80+ elif conf .env .XASH_WIN32 :
81+ buildos = "win32"
82+ elif conf .env .XASH_LINUX :
83+ buildos = "linux"
84+ elif conf .env .XASH_APPLE :
85+ buildos = "apple"
8086 elif conf .env .XASH_FREEBSD :
8187 buildos = "freebsd"
8288 elif conf .env .XASH_NETBSD :
@@ -97,17 +103,18 @@ def configure(conf):
97103 buildos = "psvita"
98104 elif conf .env .XASH_IRIX :
99105 buildos = "irix"
106+ elif conf .env .XASH_WASI :
107+ buildos = "wasi"
108+ elif conf .env .XASH_SUNOS :
109+ buildos = "sunos"
100110 else :
101111 conf .fatal ("Place your operating system name in build.h and library_naming.py!\n "
102112 "If this is a mistake, try to fix conditions above and report a bug" )
103113
104114 if conf .env .XASH_AMD64 :
105115 buildarch = "amd64"
106116 elif conf .env .XASH_X86 :
107- if conf .env .XASH_WIN32 or conf .env .XASH_LINUX or conf .env .XASH_APPLE :
108- buildarch = ""
109- else :
110- buildarch = "i386"
117+ buildarch = "i386"
111118 elif conf .env .XASH_ARM and conf .env .XASH_64BIT :
112119 buildarch = "arm64"
113120 elif conf .env .XASH_ARM :
@@ -160,6 +167,14 @@ def configure(conf):
160167 raise conf .fatal ("Place your architecture name in build.h and library_naming.py!\n "
161168 "If this is a mistake, try to fix conditions above and report a bug" )
162169
170+ node = conf .bldnode .make_node ('true_postfix.txt' )
171+ node .write ('%s-%s' % (buildos , buildarch ))
172+
173+ if not conf .env .XASH_ANDROID and (conf .env .XASH_WIN32 or conf .env .XASH_LINUX or conf .env .XASH_APPLE ):
174+ buildos = ''
175+ if conf .env .XASH_X86 :
176+ buildarch = ''
177+
163178 conf .env .revert ()
164179
165180 if buildos == 'android' :
0 commit comments