Page MenuHomePhabricator (Chris)

No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/util/sdl/image/CMakeLists.txt b/util/sdl/image/CMakeLists.txt
new file mode 100644
index 00000000..0ce45ca9
--- /dev/null
+++ b/util/sdl/image/CMakeLists.txt
@@ -0,0 +1,48 @@
+# -------------------------------------------------------
+# SDL Image cmake build script for paintown.
+# Written by: juvinious
+# -------------------------------------------------------
+
+# -------------------------------------------------------
+# MSVC FLAGS
+# -------------------------------------------------------
+if(NOT MSVC)
+ set(CFLAGS "-W -O2 -Wwrite-strings -Wstrict-prototypes -Wall -funroll-loops -Wmissing-declarations -fomit-frame-pointer -Wno-missing-declarations")
+else(NOT MSVC)
+ set(CFLAGS "-O2")
+endif(NOT MSVC)
+
+remove_definitions(${CXXFLAGS})
+add_definitions(${CFLAGS} -DLOAD_PNG)
+
+# -------------------------------------------------------
+# Source directories containing all the necessary .cpp files
+# -------------------------------------------------------
+set(SRC
+IMG.c
+IMG_jpg.c
+IMG_pnm.c
+IMG_xpm.c
+IMG_ImageIO.c
+IMG_lbm.c
+IMG_tga.c
+IMG_xv.c
+IMG_bmp.c
+IMG_pcx.c
+IMG_tif.c
+IMG_xxx.c
+IMG_gif.c
+IMG_png.c
+IMG_xcf.c
+showimage.c)
+
+# -------------------------------------------------------
+# Include directory
+# -------------------------------------------------------
+include_directories(include ./)
+
+# -------------------------------------------------------
+# module
+# -------------------------------------------------------
+add_library (image_module ${SRC})
+

File Metadata

Mime Type
text/x-diff
Expires
Thu, Jun 11, 12:53 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69120
Default Alt Text
(1 KB)

Event Timeline