mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Migrate LodePNG to submodule
We are no longer copy-pasting LodePNG source files directly. As we can't rename lodepng.cpp to lodepng.c in the submodule itself, we need to make a wrapper file, lodepng_wrapper.c, that #includes lodepng.cpp, but gets compiled as C.
This commit is contained in:
@@ -185,7 +185,7 @@ if(APPLE)
|
||||
# Are you noticing a pattern with this Apple crap yet?
|
||||
set(PFS_SRC ${PFS_SRC} ../third_party/physfs/physfs_platform_apple.m)
|
||||
endif()
|
||||
set(PNG_SRC ../third_party/lodepng/lodepng.c)
|
||||
set(PNG_SRC src/lodepng_wrapper.c)
|
||||
|
||||
if(NOT OFFICIAL_BUILD)
|
||||
# Add interim commit hash and its date to the build
|
||||
|
||||
2
desktop_version/src/lodepng_wrapper.c
Normal file
2
desktop_version/src/lodepng_wrapper.c
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Workaround for being unable to rename lodepng.cpp to lodepng.c */
|
||||
#include "../../third_party/lodepng/lodepng.cpp"
|
||||
Reference in New Issue
Block a user