libvips/libvips/Makefile.am
Benjamin Gilbert c1d04d0437 Fix .gir file dependencies
Ensure introspect is built before g-ir-scanner tries to run it.  Fixes
build failures with highly parallel builds:

    Traceback (most recent call last):
      File "/usr/bin/g-ir-scanner", line 55, in <module>
        sys.exit(scanner_main(sys.argv))
      File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 526, in scanner_main
        shlibs = create_binary(transformer, options, args)
      File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 410, in create_binary
        gdump_parser.parse()
      File "/usr/lib64/gobject-introspection/giscanner/gdumpparser.py", line 110, in parse
        tree = self._execute_binary_get_tree()
      File "/usr/lib64/gobject-introspection/giscanner/gdumpparser.py", line 167, in _execute_binary_get_tree
        subprocess.check_call(args, stdout=sys.stdout, stderr=sys.stderr)
      File "/usr/lib64/python2.7/subprocess.py", line 535, in check_call
        retcode = call(*popenargs, **kwargs)
      File "/usr/lib64/python2.7/subprocess.py", line 522, in call
        return Popen(*popenargs, **kwargs).wait()
      File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__
        errread, errwrite)
      File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory
2015-05-18 02:44:34 -04:00

118 lines
2.6 KiB
Makefile

OPTIONAL_COMPILE_DIR =
OPTIONAL_DIST_DIR =
OPTIONAL_LIB =
if ENABLE_DEPRECATED
OPTIONAL_COMPILE_DIR += deprecated
OPTIONAL_LIB += deprecated/libdeprecated.la
else
OPTIONAL_DIST_DIR += deprecated
endif
SUBDIRS = \
include \
foreign \
arithmetic \
resample \
colour \
conversion \
convolution \
$(OPTIONAL_COMPILE_DIR) \
freqfilt \
histogram \
draw \
iofuncs \
morphology \
mosaicing \
create \
video \
.
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
# 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) \
foreign/libforeign.la \
freqfilt/libfreqfilt.la \
histogram/libhistogram.la \
draw/libdraw.la \
iofuncs/libiofuncs.la \
morphology/libmorphology.la \
mosaicing/libmosaicing.la \
create/libcreate.la \
video/libvideo.la \
@VIPS_LIBS@
libvips_la_LDFLAGS = \
-no-undefined \
-version-info @LIBRARY_CURRENT@:@LIBRARY_REVISION@:@LIBRARY_AGE@
EXTRA_DIST = \
$(OPTIONAL_DIST_DIR)
CLEANFILES =
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
if HAVE_INTROSPECTION
AM_CPPFLAGS = \
-I${top_srcdir}/libvips/include \
@VIPS_CFLAGS@ \
@VIPS_INCLUDES@ \
@INTROSPECTION_CFLAGS@
AM_LDFLAGS = \
@INTROSPECTION_LIBS@ \
@LDFLAGS@
LDADD = @INTROSPECTION_LIBS@ @VIPS_CFLAGS@ libvips.la @VIPS_LIBS@
noinst_PROGRAMS = \
introspect
introspect_SOURCES = \
introspect.c
# 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
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)
INTROSPECTION_GIRS += Vips-8.0.gir
# don't use --warn-all --verbose
# we have an unusual markup with optional args and we don't want to see all
# those warnings
Vips_8_0_gir_SCANNERFLAGS = \
--program=./introspect \
--identifier-prefix=Vips \
--identifier-prefix=vips \
--symbol-prefix=vips
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)
endif