sdljava(win x64 java11 x64)

Javaで動くSDL (v1) バインディング

etc/build/windows/VisualC/Makefile
# Location of the Visual C++ tools (32 bit assumed)
SWIG          = C:\SWIG\swig.exe
TOOLS         = 
TARGET        = sdljava.dll
CC            = $(TOOLS)cl.exe
LINK          = $(TOOLS)link.exe
INCLUDE32     = -I$(TOOLS)\include
MACHINE       = X64

# C Library needed to build a DLL
DLLIBC        = msvcrt.lib libcmt.lib libvcruntime.lib libucrt.lib

# Windows libraries that are apparently needed
WINLIB        = kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib

# Libraries common to all DLLs
LIBS          = $(DLLIBC) $(WINLIB) 

# Linker options
LOPT      = -debug:full -debugtype:cv /MACHINE:$(MACHINE) /RELEASE /NOLOGO /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\lib\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64" /LIBPATH:"C:\Users\takahiro\Downloads\SDL-1.2.15\lib\x64" /LIBPATH:"C:\Users\takahiro\Downloads\SDL_image-1.2.12\lib\x64" /LIBPATH:"C:\Users\takahiro\Downloads\SDL_ttf-2.0.11\lib\x64" -dll \
#             -entry:_DllMainCRTStartup@12

# C compiler flags

CFLAGS        = /Z7 /Od /c /nologo -IC:\Users\takahiro\Downloads\SDL-1.2.15\include -IC:\Users\takahiro\Downloads\SDL_image-1.2.12\include -IC:\Users\takahiro\Downloads\SDL_ttf-2.0.11\include
JAVA_INCLUDE  = -I"C:\Program Files\AdoptOpenJDK\jdk-11.0.5.10-hotspot\include" -I"C:\Program Files\AdoptOpenJDK\jdk-11.0.5.10-hotspot\include\win32"
sdljava-0.9.1\testsrc\sdljava\image>java -classpath lib\sdljava.jar sdljava.image.SDLImageTestURL http://1.gravatar.com/avatar/4d7d76bd647b1b1c321cb671a195ff5b?s=148&d=mm&r=g

Leave a comment

Your email address will not be published. Required fields are marked *