1997-11-24 14:05:25 -08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
2012-11-12 15:45:45 -08:00
|
|
|
if PLATFORM_OSX
|
|
|
|
|
xobjective_c = "-xobjective-c"
|
2018-04-08 00:59:49 -07:00
|
|
|
xobjective_cxx = "-xobjective-c++"
|
|
|
|
|
xnone = "-xnone"
|
2012-11-12 15:45:45 -08:00
|
|
|
framework_cocoa = -framework Cocoa
|
|
|
|
|
endif
|
|
|
|
|
|
2011-09-29 18:25:24 -07:00
|
|
|
if OS_WIN32
|
|
|
|
|
mwindows = -mwindows
|
|
|
|
|
WINSOCK_LIBS = -lws2_32
|
|
|
|
|
else
|
|
|
|
|
libm = -lm
|
|
|
|
|
endif
|
|
|
|
|
|
2004-01-21 19:51:46 -08:00
|
|
|
libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
|
|
|
|
|
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
|
|
|
|
|
libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
|
|
|
|
|
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
|
|
|
|
|
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
|
2005-02-04 13:55:06 -08:00
|
|
|
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
|
2011-09-29 18:25:24 -07:00
|
|
|
libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la $(libm)
|
2004-01-21 19:51:46 -08:00
|
|
|
|
2011-09-22 07:42:37 -07:00
|
|
|
libtinyscheme=tinyscheme/libtinyscheme.a $(libm)
|
2006-10-15 18:08:54 -07:00
|
|
|
libftx=ftx/libftx.a
|
|
|
|
|
|
2010-08-31 23:24:45 -07:00
|
|
|
if HAVE_WINDRES
|
|
|
|
|
include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
|
|
|
|
|
script_fu_RC = script-fu.rc.o
|
|
|
|
|
endif
|
|
|
|
|
|
2018-04-08 00:59:49 -07:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
|
$(GTK_CFLAGS) \
|
|
|
|
|
$(GEGL_CFLAGS) \
|
|
|
|
|
-I$(includedir) \
|
2012-11-12 15:45:45 -08:00
|
|
|
-DSTANDALONE=0 \
|
|
|
|
|
-DUSE_INTERFACE=1 \
|
2018-04-08 00:59:49 -07:00
|
|
|
-DUSE_STRLWR=0
|
|
|
|
|
|
|
|
|
|
AM_CFLAGS = \
|
2018-04-07 13:39:13 -07:00
|
|
|
$(xobjective_c)
|
2012-11-12 15:45:45 -08:00
|
|
|
|
2018-04-08 00:59:49 -07:00
|
|
|
AM_CXXFLAGS = \
|
|
|
|
|
$(xobjective_cxx)
|
2006-10-15 18:08:54 -07:00
|
|
|
|
2012-11-12 15:45:45 -08:00
|
|
|
AM_LDFLAGS = \
|
2018-04-08 00:59:49 -07:00
|
|
|
$(mwindows) \
|
|
|
|
|
$(framework_cocoa) \
|
|
|
|
|
$(xnone)
|
2003-07-27 15:43:11 -07:00
|
|
|
|
2008-09-10 16:10:15 -07:00
|
|
|
SUBDIRS = tinyscheme ftx scripts
|
2006-10-15 18:08:54 -07:00
|
|
|
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2018-05-11 15:28:05 -07:00
|
|
|
libexecdir = $(gimpplugindir)/plug-ins/script-fu
|
1997-11-24 14:05:25 -08:00
|
|
|
|
1999-06-24 18:29:23 -07:00
|
|
|
libexec_PROGRAMS = script-fu
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2002-06-07 16:00:46 -07:00
|
|
|
script_fu_SOURCES = \
|
2008-09-20 02:58:30 -07:00
|
|
|
script-fu-types.h \
|
|
|
|
|
script-fu-enums.h \
|
|
|
|
|
\
|
2004-01-03 14:41:09 -08:00
|
|
|
script-fu.c \
|
|
|
|
|
script-fu-console.c \
|
|
|
|
|
script-fu-console.h \
|
2008-08-21 07:48:29 -07:00
|
|
|
script-fu-eval.c \
|
|
|
|
|
script-fu-eval.h \
|
2004-08-31 10:54:46 -07:00
|
|
|
script-fu-interface.c \
|
|
|
|
|
script-fu-interface.h \
|
2004-01-03 14:41:09 -08:00
|
|
|
script-fu-text-console.h \
|
|
|
|
|
script-fu-text-console.c \
|
|
|
|
|
script-fu-intl.h \
|
2008-09-10 16:10:15 -07:00
|
|
|
script-fu-regex.c \
|
|
|
|
|
script-fu-regex.h \
|
2008-09-17 14:39:44 -07:00
|
|
|
script-fu-script.c \
|
|
|
|
|
script-fu-script.h \
|
2004-01-03 14:41:09 -08:00
|
|
|
script-fu-scripts.c \
|
|
|
|
|
script-fu-scripts.h \
|
|
|
|
|
script-fu-server.c \
|
|
|
|
|
script-fu-server.h \
|
2008-09-20 02:58:30 -07:00
|
|
|
script-fu-utils.c \
|
|
|
|
|
script-fu-utils.h \
|
2006-10-15 18:08:54 -07:00
|
|
|
scheme-wrapper.c \
|
|
|
|
|
scheme-wrapper.h
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2002-06-07 16:00:46 -07:00
|
|
|
LDADD = \
|
2004-09-29 17:33:34 -07:00
|
|
|
$(libgimpui) \
|
|
|
|
|
$(libgimpwidgets) \
|
2005-02-04 14:31:58 -08:00
|
|
|
$(libgimpconfig) \
|
2005-02-23 14:01:58 -08:00
|
|
|
$(libgimpmath) \
|
2004-09-29 17:33:34 -07:00
|
|
|
$(libgimp) \
|
|
|
|
|
$(libgimpcolor) \
|
|
|
|
|
$(libgimpbase) \
|
2006-10-15 18:08:54 -07:00
|
|
|
$(libtinyscheme) \
|
|
|
|
|
$(libftx) \
|
2004-09-29 17:33:34 -07:00
|
|
|
$(GTK_LIBS) \
|
|
|
|
|
$(SOCKET_LIBS) \
|
|
|
|
|
$(WINSOCK_LIBS) \
|
|
|
|
|
$(RT_LIBS) \
|
2010-08-31 23:24:45 -07:00
|
|
|
$(INTLLIBS) \
|
|
|
|
|
$(script_fu_RC)
|
2011-05-04 15:58:08 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# Perform static analysis on all *.scm files and look for usage of
|
|
|
|
|
# deprecated pdb procedures
|
|
|
|
|
check-for-deprecated-procedures-in-script-fu:
|
|
|
|
|
@echo "Looking for deprecated procedures in *.scm files"
|
|
|
|
|
@scm_files=`find $(top_srcdir)/plug-ins/script-fu -name "*.scm"`; \
|
|
|
|
|
deprecated_procs=`$(top_builddir)/app/gimp-$(GIMP_APP_VERSION)$(EXEEXT) --dump-pdb-procedures-deprecated`; \
|
|
|
|
|
for scm_file in $$scm_files; do \
|
|
|
|
|
for proc in $$deprecated_procs; do \
|
2017-12-30 04:09:14 -08:00
|
|
|
if grep -Eq "^([^;]*[[:blank:](])?$$proc([[:blank:])]|$$)" $$scm_file; then \
|
2011-05-04 15:58:08 -07:00
|
|
|
echo "$${scm_file} uses deprecated procedure '$${proc}'"; \
|
|
|
|
|
fi \
|
|
|
|
|
done \
|
|
|
|
|
done
|