From 94aafaef1591f2584d1caec1a059ae7a9da08a6c Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 25 Feb 2021 21:17:23 +0100 Subject: [PATCH] Fix Windows, Android build --- source/Irrlicht/Android/jni/Android.mk | 82 +------------------------- source/Irrlicht/CIrrDeviceWin32.cpp | 2 +- source/Irrlicht/Makefile | 2 +- 3 files changed, 3 insertions(+), 83 deletions(-) diff --git a/source/Irrlicht/Android/jni/Android.mk b/source/Irrlicht/Android/jni/Android.mk index 05a2d281..0ec3e9cb 100755 --- a/source/Irrlicht/Android/jni/Android.mk +++ b/source/Irrlicht/Android/jni/Android.mk @@ -22,15 +22,6 @@ LOCAL_SRC_FILES := \ Android/CAndroidAssetReader.cpp \ Android/CAndroidAssetFileArchive.cpp \ Android/CKeyEventWrapper.cpp \ - aesGladman/aescrypt.cpp \ - aesGladman/aeskey.cpp \ - aesGladman/aestab.cpp \ - aesGladman/fileenc.cpp \ - aesGladman/hmac.cpp \ - aesGladman/prng.cpp \ - aesGladman/pwd2key.cpp \ - aesGladman/sha1.cpp \ - aesGladman/sha2.cpp \ burning_shader_color.cpp \ C3DSMeshFileLoader.cpp \ CAnimatedMeshHalfLife.cpp \ @@ -260,78 +251,7 @@ LOCAL_SRC_FILES := \ IBurningShader.cpp \ Irrlicht.cpp \ irrXML.cpp \ - os.cpp \ - bzip2/blocksort.c \ - bzip2/bzcompress.c \ - bzip2/bzlib.c \ - bzip2/crctable.c \ - bzip2/decompress.c \ - bzip2/huffman.c \ - bzip2/randtable.c \ - jpeglib/jaricom.c \ - jpeglib/jcapimin.c \ - jpeglib/jcapistd.c \ - jpeglib/jcarith.c \ - jpeglib/jccoefct.c \ - jpeglib/jccolor.c \ - jpeglib/jcdctmgr.c \ - jpeglib/jchuff.c \ - jpeglib/jcinit.c \ - jpeglib/jcmainct.c \ - jpeglib/jcmarker.c \ - jpeglib/jcmaster.c \ - jpeglib/jcomapi.c \ - jpeglib/jcparam.c \ - jpeglib/jcprepct.c \ - jpeglib/jcsample.c \ - jpeglib/jctrans.c \ - jpeglib/jdapimin.c \ - jpeglib/jdapistd.c \ - jpeglib/jdarith.c \ - jpeglib/jdatadst.c \ - jpeglib/jdatasrc.c \ - jpeglib/jdcoefct.c \ - jpeglib/jdcolor.c \ - jpeglib/jddctmgr.c \ - jpeglib/jdhuff.c \ - jpeglib/jdinput.c \ - jpeglib/jdmainct.c \ - jpeglib/jdmarker.c \ - jpeglib/jdmaster.c \ - jpeglib/jdmerge.c \ - jpeglib/jdpostct.c \ - jpeglib/jdsample.c \ - jpeglib/jdtrans.c \ - jpeglib/jerror.c \ - jpeglib/jfdctflt.c \ - jpeglib/jfdctfst.c \ - jpeglib/jfdctint.c \ - jpeglib/jidctflt.c \ - jpeglib/jidctfst.c \ - jpeglib/jidctint.c \ - jpeglib/jmemmgr.c \ - jpeglib/jmemnobs.c \ - jpeglib/jquant1.c \ - jpeglib/jquant2.c \ - jpeglib/jutils.c \ - libpng/png.c \ - libpng/pngerror.c \ - libpng/pngget.c \ - libpng/pngmem.c \ - libpng/pngpread.c \ - libpng/pngread.c \ - libpng/pngrio.c \ - libpng/pngrtran.c \ - libpng/pngrutil.c \ - libpng/pngset.c \ - libpng/pngtrans.c \ - libpng/pngwio.c \ - libpng/pngwrite.c \ - libpng/pngwtran.c \ - libpng/pngwutil.c \ - lzma/LzmaDec.c \ -zlib/adler32.c zlib/crc32.c zlib/gzclose.c zlib/gzread.c zlib/infback.c zlib/inflate.c zlib/trees.c zlib/zutil.c\ -zlib/compress.c zlib/deflate.c zlib/gzlib.c zlib/gzwrite.c zlib/inffast.c zlib/inftrees.c zlib/uncompr.c + os.cpp LOCAL_STATIC_LIBRARIES := android_native_app_glue diff --git a/source/Irrlicht/CIrrDeviceWin32.cpp b/source/Irrlicht/CIrrDeviceWin32.cpp index f53a76db..cbea459e 100644 --- a/source/Irrlicht/CIrrDeviceWin32.cpp +++ b/source/Irrlicht/CIrrDeviceWin32.cpp @@ -1228,7 +1228,7 @@ void CIrrDeviceWin32::createDriver() os::Printer::log("OpenGL-ES2 driver was not compiled in.", ELL_ERROR); #endif break; - case EDT_WEBGL1: + case video::EDT_WEBGL1: os::Printer::log("WebGL1 driver not supported on Win32 device.", ELL_ERROR); break; case video::EDT_SOFTWARE: diff --git a/source/Irrlicht/Makefile b/source/Irrlicht/Makefile index 82851df5..8bca2180 100644 --- a/source/Irrlicht/Makefile +++ b/source/Irrlicht/Makefile @@ -93,7 +93,7 @@ else CFLAGS := -O3 endif -sharedlib sharedlib_osx sharedlib_win32: LDFLAGS += -lz -ljpeg -lpng -lbz2 +sharedlib sharedlib_osx sharedlib_win32: LDFLAGS += -lz -ljpeg -lpng sharedlib sharedlib_osx: CXXFLAGS += -fPIC sharedlib sharedlib_osx: CFLAGS += -fPIC