File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ UNAME=MINGW32
55DESTDIR=./dist_win32
66
77HID_CFLAGS=" -I $HIDHOME /hidapi"
8- HID_LDLIBS=" -L $HIDHOME /windows/.libs/ -lhidapi"
8+ HID_LDLIBS=" -L $HIDHOME /windows/.libs/ -lhidapi sdl.lib "
99TARGETS=all
1010MAKEFILE=Makefile
1111
@@ -14,6 +14,10 @@ if [ $? -ne 0 ]; then
1414 exit 1
1515fi
1616
17+ # Hack to let this project link without requiring libsdl. Without
18+ # this linking will fail due to a missing symbol (SDL_PumpEvents)
19+ i686-w64-mingw32-dlltool -d sdl.def -l sdl.lib
20+
1721make -f $MAKEFILE CROSS_COMPILE=i686-w64-mingw32- UNAME=$UNAME HID_CFLAGS=" $HID_CFLAGS " HID_LDLIBS=" $HID_LDLIBS " $TARGETS V=1
1822if [ $? -ne 0 ]; then
1923 exit 1
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ UNAME=MINGW64
55DESTDIR=./dist_win64
66
77HID_CFLAGS=" -I $HIDHOME /hidapi"
8- HID_LDLIBS=" -L $HIDHOME /windows/.libs/ -lhidapi"
8+ HID_LDLIBS=" -L $HIDHOME /windows/.libs/ -lhidapi sdl.lib "
99TARGETS=all
1010MAKEFILE=Makefile
1111
@@ -14,6 +14,10 @@ if [ $? -ne 0 ]; then
1414 exit 1
1515fi
1616
17+ # Hack to let this project link without requiring libsdl. Without
18+ # this linking will fail due to a missing symbol (SDL_PumpEvents)
19+ x86_64-w64-mingw32-dlltool -d sdl.def -l sdl.lib
20+
1721make -f $MAKEFILE CROSS_COMPILE=x86_64-w64-mingw32- UNAME=$UNAME HID_CFLAGS=" $HID_CFLAGS " HID_LDLIBS=" $HID_LDLIBS " $TARGETS V=1
1822if [ $? -ne 0 ]; then
1923 exit 1
Original file line number Diff line number Diff line change 1+ LIBRARY SDL.dll
2+ EXPORTS
3+ SDL_PumpEvents
You can’t perform that action at this time.
0 commit comments