Skip to content

Commit fc3c2d2

Browse files
committed
Fix #35, really ;-)
1 parent 3aeb71b commit fc3c2d2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

sdk/warp3d.sdk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Warp3D_Devel/Include/clib/Warp3D_protos.h
99
Warp3D_Devel/Include/fd/Warp3D.fd = Warp3D_lib.fd
1010
Warp3D_Devel/Include/Warp3D/Warp3D.h
1111
fd2sfd : Warp3D_Devel/Include/fd/Warp3D.fd Warp3D_Devel/Include/clib/Warp3D_protos.h
12-
sfdc : Warp3D.sfd
13-
stubs : Warp3D.sfd
12+
sfdc : Warp3D_lib.sfd
13+
stubs : Warp3D_lib.sfd

toolchain-m68k

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,17 @@ def process_sdk(sdk, dirname, files):
471471

472472
if kind == 'fd2sfd':
473473
fd, protos = f[1:]
474-
sfd = path.splitext(path.basename(fd))[0] + '.sfd'
474+
sfd = path.splitext(path.basename(fd))[0]
475+
if not fd.endswith('_lib'):
476+
sfd = sfd + '_lib.sfd'
477+
else:
478+
sfd = sfd + '.sfd'
475479
info('fd2sfd: "%s" "%s" -> "%s"', fd, protos, sfd)
476480
execute('fd2sfd', '-o', sfd, fd, protos)
477481
copy(sfd, path.join('{target}/os-lib/sfd', sfd))
478482
elif kind == 'sfdc':
479483
source = f[1]
480-
basename = re.sub(r'(_lib)?.sfd$', r'', path.basename(source))
484+
basename = re.sub(r'_lib.sfd$', r'', path.basename(source))
481485

482486
proto = path.join('{target}/os-include/proto', basename + '.h')
483487
inline = path.join('{target}/os-include/inline', basename + '.h')
@@ -494,7 +498,7 @@ def process_sdk(sdk, dirname, files):
494498
'--output=' + lvo, source)
495499
elif kind == 'stubs':
496500
filename = f[1]
497-
c_file = re.sub(r'(_lib)?\.sfd$', r'.c', path.basename(filename))
501+
c_file = re.sub(r'_lib\.sfd$', r'.c', path.basename(filename))
498502

499503
info('stubs: "%s" -> "%s"', filename, c_file)
500504
execute('sfdc', '--quiet', '--target=m68k-amigaos', '--mode=autoopen',

0 commit comments

Comments
 (0)