Browse Source

Disable unused stb_image features

master
C. J. Howard 1 year ago
parent
commit
f018a3d9c5
3 changed files with 6 additions and 2 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +1
    -1
      modules/antkeeper-source
  3. +4
    -0
      modules/stb/stb_image.c

+ 1
- 1
CMakeLists.txt View File

@ -49,7 +49,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3")
elseif(MSVC) elseif(MSVC)
set(CMAKE_CXX_FLAGS "/MP /W3 /MT /GR- /GS- /D_WIN32_WINNT=0x0501 /DWINVER=0x0501")
set(CMAKE_CXX_FLAGS "/MP /W3 /MT /GR- /GS- /EHsc /D_WIN32_WINNT=0x0501 /DWINVER=0x0501")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS}") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} /O2") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} /O2")
endif() endif()

+ 1
- 1
modules/antkeeper-source

@ -1 +1 @@
Subproject commit 1747b85607446287c7a20f3ced05b3aae28d6adb
Subproject commit a37f7c0f5fe2c441bd2e1b26d19bcda3ace05988

+ 4
- 0
modules/stb/stb_image.c View File

@ -3,8 +3,12 @@
#define STBI_NO_BMP #define STBI_NO_BMP
#define STBI_NO_PSD #define STBI_NO_PSD
#define STBI_NO_GIF #define STBI_NO_GIF
#define STBI_NO_HDR
#define STBI_NO_PIC #define STBI_NO_PIC
#define STBI_NO_PNM #define STBI_NO_PNM
#define STBI_NO_FAILURE_STRINGS
#define STBI_NO_LINEAR
#define STBI_NO_STDIO
#if defined(NDEBUG) #if defined(NDEBUG)
#define STBI_ASSERT(x) #define STBI_ASSERT(x)

Loading…
Cancel
Save