From ae4605812359844f2579a42ae9027f6249f2caee Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 12 Feb 2008 12:46:39 +0000 Subject: [PATCH] Moved FLI core routines from third_party/gfli to src/file/fli --- makefile.gcc | 10 +--------- makefile.lst | 15 +-------------- {third_party/gfli => src/file/fli}/README | 0 third_party/gfli/gfli.c => src/file/fli/fli.c | 10 ++-------- third_party/gfli/gfli.h => src/file/fli/fli.h | 0 src/file/fli_format.c | 4 +--- src/file/gif_format.c | 2 +- 7 files changed, 6 insertions(+), 35 deletions(-) rename {third_party/gfli => src/file/fli}/README (100%) rename third_party/gfli/gfli.c => src/file/fli/fli.c (98%) rename third_party/gfli/gfli.h => src/file/fli/fli.h (100%) diff --git a/makefile.gcc b/makefile.gcc index 487b91ef3..1b2ec6b62 100644 --- a/makefile.gcc +++ b/makefile.gcc @@ -10,7 +10,6 @@ CFLAGS += -Wall -I. -Isrc -Ithird_party \ -I$(LIBFREETYPE_DIR)/include \ -I$(LIBLUA_DIR)/include \ -I$(LIBJPEG_DIR) \ - -I$(LIBGFLI_DIR) \ -I$(LIBPNG_DIR) \ -I$(ZLIB_DIR) \ -Wno-deprecated-declarations \ @@ -60,10 +59,6 @@ $(LIBGD_LIB): $(LIBGD_OBJS) -rm -f $@ ar rs $@ $^ -$(LIBGFLI_LIB): $(LIBGFLI_OBJS) - -rm -f $@ - ar rs $@ $^ - $(LIBJPEG_LIB): $(LIBJPEG_OBJS) -rm -f $@ ar rs $@ $^ @@ -91,6 +86,7 @@ VPATH = src \ src/dialogs \ src/effect \ src/file \ + src/file/fli \ src/file/gif \ src/intl \ src/jinete \ @@ -119,7 +115,6 @@ VPATH = src \ $(LIBFREETYPE_DIR)/src/type1 \ $(LIBFREETYPE_DIR)/src/winfonts \ $(LIBGD_DIR) \ - $(LIBGFLI_DIR) \ $(LIBJPEG_DIR) \ $(LIBLUA_DIR)/src \ $(LIBLUA_DIR)/src/lib \ @@ -146,9 +141,6 @@ $(OBJ_DIR)/freetype.%$(OBJ): %.c $(OBJ_DIR)/gd.%$(OBJ): %.c $(CC) $(CFLAGS) -DNONDLL -DHAVE_CONFIG_H -o $@ -c $< -$(OBJ_DIR)/gfli.%$(OBJ): %.c - $(CC) $(CFLAGS) -o $@ -c $< - $(OBJ_DIR)/jpeg.%$(OBJ): %.c $(CC) $(CFLAGS) -o $@ -c $< diff --git a/makefile.lst b/makefile.lst index 1a4b711a5..a8607d67b 100644 --- a/makefile.lst +++ b/makefile.lst @@ -105,6 +105,7 @@ COMMON_SOURCES = \ src/file/ase_format.c \ src/file/bmp_format.c \ src/file/file.c \ + src/file/fli/fli.c \ src/file/fli_format.c \ src/file/gif/format.c \ src/file/gif/lzw.c \ @@ -352,18 +353,6 @@ LIBGD_OBJS = $(addprefix $(OBJ_DIR)/gd., \ $(addsuffix $(OBJ), \ $(notdir $(basename $(LIBGD_SOURCES))))) -###################################################################### -# GFli - -LIBGFLI_LIB = $(OBJ_DIR)/libgfli$(LIB) -LIBGFLI_DIR = third_party/gfli -LIBGFLI_SOURCES = \ - $(LIBGFLI_DIR)/gfli.c - -LIBGFLI_OBJS = $(addprefix $(OBJ_DIR)/gfli., \ - $(addsuffix $(OBJ), \ - $(notdir $(basename $(LIBGFLI_SOURCES))))) - ###################################################################### # Lua @@ -510,7 +499,6 @@ ALL_OBJS = \ $(ASE_OBJS) \ $(LIBLUA_OBJS) \ $(LIBFREETYPE_OBJS) \ - $(LIBGFLI_OBJS) \ $(LIBART_OBJS) \ $(LIBPNG_OBJS) \ $(ZLIB_OBJS) @@ -518,7 +506,6 @@ ALL_OBJS = \ THIRD_PARTY_LIBS = \ $(LIBART_LIB) \ $(LIBFREETYPE_LIB) \ - $(LIBGFLI_LIB) \ $(LIBJPEG_LIB) \ $(LIBLUA_LIB) \ $(LIBPNG_LIB) \ diff --git a/third_party/gfli/README b/src/file/fli/README similarity index 100% rename from third_party/gfli/README rename to src/file/fli/README diff --git a/third_party/gfli/gfli.c b/src/file/fli/fli.c similarity index 98% rename from third_party/gfli/gfli.c rename to src/file/fli/fli.c index ee1f7fc7c..5fec506de 100644 --- a/third_party/gfli/gfli.c +++ b/src/file/fli/fli.c @@ -17,14 +17,8 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ - -/* - * This code can be used to read and write FLI movies. It is currently - * only used for the GIMP fli plug-in, but it can be used for other - * programs, too. - */ -/* Modified by David A. Capello to use with ASE. +/* Modified by David A. Capello to use with ASE (2001-2008). See ../README.txt for more information */ @@ -32,7 +26,7 @@ #include #include -#include "gfli.h" +#include "fli.h" /* * To avoid endian-problems I wrote these functions: diff --git a/third_party/gfli/gfli.h b/src/file/fli/fli.h similarity index 100% rename from third_party/gfli/gfli.h rename to src/file/fli/fli.h diff --git a/src/file/fli_format.c b/src/file/fli_format.c index 90d50ca13..fcfca351f 100644 --- a/src/file/fli_format.c +++ b/src/file/fli_format.c @@ -22,12 +22,10 @@ #include #include "file/file.h" +#include "file/fli/fli.h" #include "modules/palette.h" #include "raster/raster.h" -/* GFLI header file */ -#include "gfli.h" - static bool load_FLI(FileOp *fop); static bool save_FLI(FileOp *fop); diff --git a/src/file/gif_format.c b/src/file/gif_format.c index 57d5396f7..de8f33906 100644 --- a/src/file/gif_format.c +++ b/src/file/gif_format.c @@ -30,11 +30,11 @@ #include "jinete/jbase.h" #include "file/file.h" +#include "file/gif/format.h" #include "modules/palette.h" #include "raster/raster.h" #include "util/autocrop.h" -#include "gif/format.h" #include #include