File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,8 @@ def build(bld):
4343
4444 if bld .env .DEST_OS == 'win32' :
4545 libs += ['USER32' ]
46-
47- install_path = bld .env .LIBDIR
4846
49- # Copy SDL2 dependency
50- if bld .env .DEST_OS == 'win32' :
51- bld (
52- rule = (('cp' if 'MSYSTEM' in os .environ or sys .platform != 'win32' else 'copy' )+ ' ${SRC} ${TGT}' ),
53- source = '../lib/win32/' + bld .env .DEST_CPU + '/SDL2.dll' ,
54- target = 'SDL2.dll' ,
55- install_path = install_path ,
56- )
47+ install_path = bld .env .LIBDIR
5748
5849 bld .shlib (
5950 source = source ,
Original file line number Diff line number Diff line change @@ -591,6 +591,11 @@ def configure(conf):
591591def build (bld ):
592592 os .environ ["CCACHE_DIR" ] = os .path .abspath ('.ccache/' + bld .env .COMPILER_CC + '/' + bld .env .DEST_OS + '/' + bld .env .DEST_CPU )
593593
594+ if bld .env .DEST_OS in ['win32' , 'android' ]:
595+ sdl_name = 'SDL2.dll' if bld .env .DEST_OS == 'win32' else 'libSDL2.so'
596+ sdl_path = os .path .join ('lib' , bld .env .DEST_OS , bld .env .DEST_CPU , sdl_name )
597+ bld .install_files ('${PREFIX}/' , [sdl_path ])
598+
594599 if bld .env .DEST_OS == 'win32' :
595600 projects ['game' ] += ['utils/bzip2' ]
596601 projects ['dedicated' ] += ['utils/bzip2' ]
You can’t perform that action at this time.
0 commit comments