Skip to content

Commit 2afe56a

Browse files
committed
fix
1 parent efe7e94 commit 2afe56a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

tools/ports/sdl2_gfx.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ def create():
2828

2929
shutil.rmtree(dest_path, ignore_errors=True)
3030
shutil.copytree(source_path, dest_path)
31-
32-
for header in ['SDL2_framerate.h', 'SDL2_gfxPrimitives_font.h', 'SDL2_gfxPrimitives.h', 'SDL2_imageFilter.h', 'SDL2_rotozoom.h']:
33-
shutil.copyfile(os.path.join(ports.get_dir(), 'sdl2_gfx', 'sdl2_gfx-' + TAG, header), os.path.join(ports.get_build_dir(), 'sdl2', 'include', 'SDL2', header))
34-
3531
final = os.path.join(dest_path, libname)
3632
ports.build_port(dest_path, final, [dest_path], exclude_dirs=['test'])
33+
34+
ports.install_headers(source_path, target='SDL2')
3735
return final
3836

3937
return [shared.Cache.get(libname, create)]

tools/system_libs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,18 +1509,18 @@ def install_header_dir(src_dir, target=None):
15091509
target = os.path.basename(src_dir)
15101510
dest = os.path.join(Ports.get_include_dir(), target)
15111511
shared.try_delete(dest)
1512-
print('installing headers: ' + dest)
1512+
logger.debug('installing headers: ' + dest)
15131513
shutil.copytree(src_dir, dest)
15141514

15151515
@staticmethod
15161516
def install_headers(src_dir, pattern="*.h", target=None):
1517-
print("install_headers")
1517+
logger.debug("install_headers")
15181518
dest = Ports.get_include_dir()
15191519
if target:
15201520
dest = os.path.join(dest, target)
15211521
shared.safe_ensure_dirs(dest)
15221522
for f in glob.glob(os.path.join(src_dir, pattern)):
1523-
print(os.path.join(dest, os.path.basename(f)))
1523+
logger.debug(os.path.join(dest, os.path.basename(f)))
15241524
shutil.copyfile(f, os.path.join(dest, os.path.basename(f)))
15251525

15261526
@staticmethod

0 commit comments

Comments
 (0)