libvips/libvips/Makefile.am

128 lines
2.8 KiB
Makefile
Raw Normal View History

OPTIONAL_COMPILE_DIR =
OPTIONAL_DIST_DIR =
OPTIONAL_LIB =
if ENABLE_DEPRECATED
OPTIONAL_COMPILE_DIR += deprecated
OPTIONAL_LIB += deprecated/libdeprecated.la
2009-08-16 17:00:08 +02:00
else
OPTIONAL_DIST_DIR += deprecated
2009-08-16 17:00:08 +02:00
endif
if ENABLE_NSGIF
OPTIONAL_LIB += foreign/libnsgif/libnsgif.la
endif
2009-08-16 17:00:08 +02:00
SUBDIRS = \
include \
2011-12-02 19:21:55 +01:00
foreign \
2009-08-16 17:00:08 +02:00
arithmetic \
resample \
colour \
conversion \
convolution \
$(OPTIONAL_COMPILE_DIR) \
2014-01-03 18:19:45 +01:00
freqfilt \
2013-07-01 14:45:36 +02:00
histogram \
2014-02-03 15:51:43 +01:00
draw \
2009-08-16 17:00:08 +02:00
iofuncs \
morphology \
mosaicing \
create
2009-08-16 17:00:08 +02:00
lib_LTLIBRARIES = libvips.la
# empty means default to C linking
libvips_la_SOURCES =
# make sure we link the top-level with c++
nodist_EXTRA_libvips_la_SOURCES = resample/dummy2.cc
2009-08-16 17:00:08 +02:00
# DLLs need dependant libs there too ... put @VIPS_LIBS@ at the end
libvips_la_LIBADD = \
resample/libresample.la \
arithmetic/libarithmetic.la \
colour/libcolour.la \
conversion/libconversion.la \
convolution/libconvolution.la \
$(OPTIONAL_LIB) \
2011-11-29 12:43:08 +01:00
foreign/libforeign.la \
2014-01-03 18:19:45 +01:00
freqfilt/libfreqfilt.la \
2013-07-01 14:45:36 +02:00
histogram/libhistogram.la \
2014-02-03 15:51:43 +01:00
draw/libdraw.la \
2009-08-16 17:00:08 +02:00
iofuncs/libiofuncs.la \
morphology/libmorphology.la \
mosaicing/libmosaicing.la \
create/libcreate.la \
2009-08-16 17:00:08 +02:00
@VIPS_LIBS@
libvips_la_LDFLAGS = \
-no-undefined \
-version-info @LIBRARY_CURRENT@:@LIBRARY_REVISION@:@LIBRARY_AGE@
EXTRA_DIST = \
$(OPTIONAL_DIST_DIR)
2011-06-20 19:00:01 +02:00
CLEANFILES =
install-exec-hook:
echo '/* This file is autogenerated, do not edit. */' > soname.h && \
. ./libvips.la && \
echo "#define VIPS_SONAME \"$$dlname\"" >> soname.h && \
cp soname.h $(DESTDIR)$(pkgincludedir) && \
rm soname.h
2011-06-20 19:00:01 +02:00
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
if HAVE_INTROSPECTION
2014-12-19 18:07:21 +01:00
AM_CPPFLAGS = \
-I${top_srcdir}/libvips/include \
@VIPS_CFLAGS@ \
@VIPS_INCLUDES@ \
@INTROSPECTION_CFLAGS@
2014-12-19 18:07:21 +01:00
AM_LDFLAGS = \
@INTROSPECTION_LIBS@ \
2014-12-19 18:07:21 +01:00
@LDFLAGS@
LDADD = @INTROSPECTION_LIBS@ @VIPS_CFLAGS@ libvips.la @VIPS_LIBS@
2014-12-19 18:07:21 +01:00
noinst_PROGRAMS = \
introspect$(EXEEXT)
2014-12-19 18:07:21 +01:00
introspect_SOURCES = \
introspect.c
2011-06-20 19:00:01 +02:00
# we can't get the _SOURCES lists from the subdirs directly, we get passed it
# by configure instead
introspection_sources = @vips_introspection_sources@
# we make the vips8 API
Vips-8.0.gir: introspect$(EXEEXT)
2011-06-20 19:00:01 +02:00
Vips_8_0_gir_INCLUDES = GObject-2.0
Vips_8_0_gir_CFLAGS = $(INCLUDES) -I${top_srcdir}/libvips/include
Vips_8_0_gir_LIBS = libvips.la
Vips_8_0_gir_FILES = $(introspection_sources)
2012-01-11 16:00:37 +01:00
INTROSPECTION_GIRS += Vips-8.0.gir
2017-08-08 11:51:14 +02:00
# don't use
# --warn-all --verbose
2016-07-19 11:57:21 +02:00
# too annoying
2011-06-21 15:41:38 +02:00
Vips_8_0_gir_SCANNERFLAGS = \
--program=./introspect$(EXEEXT) \
2016-07-19 11:57:21 +02:00
--identifier-prefix=Vips \
--identifier-prefix=vips \
2017-08-08 11:51:14 +02:00
--symbol-prefix=vips \
--c-include=vips/vips.h
2011-06-20 19:00:01 +02:00
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
2021-01-02 16:49:32 +01:00
2011-06-20 19:00:01 +02:00
endif