Commit Graph

59 Commits

Author SHA1 Message Date
John Cupitt def025da3e reorganise loadable modules
- heifload operation now defined in heifload.c, etc.
- C API wrappers moved to foreign.c
2021-05-17 09:45:27 +01:00
John Cupitt e00ca4e6b7 make jxlload/save a loadable module 2021-05-10 16:45:28 +01:00
John Cupitt 6198fb2d0d fix build on windows
only include source files in make dist for libnsgif and module/

we were just including the whole directory, which stopped the derived
files (eg. the .la archives) from being rebuilt on other platforms
2021-04-30 17:27:15 +01:00
Kleis Auke Wolthuizen 34c0f31643 Build a dynamically loadable module for *magick
By default, a dynamically loadable module is built for *magick (i.e.
`--with-magick=module`) when:
* ImageMagick or GraphicsMagick is found;
* GModule is supported (`gmodule_supported` pkg-config variable).

This can be overridden on the command line with:
* `--without-magick` - to disable *magick usage;
* `--with-magick[=yes]` - to restore the previous behavior;
* `--disable-modules` - to disable the build of dynamic modules.
2021-04-22 12:28:37 +02:00
Kleis Auke Wolthuizen 0c0b68b4b9 Build a dynamically loadable module for poppler
By default, a dynamically loadable module is built for poppler (i.e.
`--with-poppler=module`) when:
* poppler is found;
* GModule is supported (`gmodule_supported` pkg-config variable).

This can be overridden on the command line with:
* `--without-poppler` - to disable poppler usage;
* `--with-poppler[=yes]` - to restore the previous behavior;
* `--disable-modules` - to disable the build of dynamic modules.
2021-04-22 12:28:37 +02:00
Kleis Auke Wolthuizen 2b1daff256 Build a dynamically loadable module for libheif
By default, a dynamically loadable module is built for libheif (i.e.
`--with-heif=module`) when:
* libheif is found;
* GModule is supported (`gmodule_supported` pkg-config variable).

This can be overridden on the command line with:
* `--without-heif` - to disable libheif usage;
* `--with-heif[=yes]` - to restore the previous behavior;
* `--disable-modules` - to disable the build of dynamic modules.
2021-04-22 12:28:37 +02:00
Kleis Auke Wolthuizen 6fd38df95a Build a dynamically loadable module for OpenSlide
By default, a dynamically loadable module is built for OpenSlide (i.e.
`--with-openslide=module`) when:
* OpenSlide is found;
* GModule is supported (`gmodule_supported` pkg-config variable).

This can be overridden on the command line with:
* `--without-openslide` - to disable OpenSlide usage;
* `--with-openslide[=yes]` - to restore the previous behavior;
* `--disable-modules` - to disable the build of dynamic modules.
2021-04-22 12:28:37 +02:00
Kleis Auke Wolthuizen a63d37fc9b Initial support for dynamic loadable modules with GModule 2021-04-22 12:28:37 +02:00
John Cupitt b995a6d244 move the nsgif source into the tree
and remove the old giflib loader
2021-02-28 12:20:05 +00:00
John Cupitt df3b80fa40 add vipssave_target() 2021-01-02 15:49:32 +00:00
John Cupitt 5540fa97f4 small cleanups for disable deprecated
- move matrixinvert to mosaicing, fix a leak
- add note to changelog
- small fixes

see https://github.com/libvips/libvips/pull/1593
2020-06-28 12:14:13 +01:00
Kleis Auke Wolthuizen 8a5dc95fb6 Convert the morphology directory to vips8 2020-06-18 14:29:42 +02:00
Lars Kanis 3341bbd762 Fix dependency to introspect program on Windows MINGW 2019-10-27 18:07:13 +01:00
John Cupitt b085908558 remove vips7 stuff from API
You must now include vips7 support explicitly with

	#include <vips/vips7compat.h>

in your code just after including `vips.h`.

The old vips7 names, such as `Rect`, were starting to cause problems
with other packages like opencv.
2018-05-16 15:08:21 +01:00
Alistair Thomas 4db3983a43 Add C header to GIR file 2017-08-08 10:51:14 +01:00
John Cupitt ba129fceb3 better win32 compatibility
try to fold the patches @tumagonx maintains into libvips master, see:

https://github.com/tumagonx/pygi-mingw-patches/blob/master/vips-8.4.x.patch

still missing the bindtextdomain() patch though
2017-05-11 17:08:10 +01:00
John Cupitt 53f374434d fix build on centos7
see https://github.com/jcupitt/libvips/issues/601
2017-02-19 10:20:37 +00:00
John Cupitt 8bbba73d73 try to fix soname.h again
now make in install-exec-hook so we are certain libvips.la has been built
2017-01-06 19:37:36 +00:00
John Cupitt 4ca1132087 improve reliability with high -j
another sleep to give libvips.la time to be fully written
2017-01-04 19:00:50 +00:00
John Cupitt eef4f035a1 try to fix make with -j
in all-hook, wait for libvips.la to appear
2017-01-04 17:04:38 +00:00
John Cupitt 3e80828805 try to fix travis 2017-01-04 16:31:34 +00:00
John Cupitt 0dd51c43ac don't rebuild everything all the time
oops, soname.h was being rewritten all the time, triggering a full
rebuild every time
2017-01-04 15:51:59 +00:00
John Cupitt c31f4ec2d7 add VIPS_SONAME etc.
helps check ABI and php-vips-ext lock the right library
2016-12-31 17:58:33 +00:00
John Cupitt dac671439c kind-of working 2016-07-19 10:57:21 +01:00
John Cupitt 23d9bad581 doc improvements 2016-07-13 09:24:41 +01:00
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
John Cupitt 346a9e70c0 remove --disable-cxx flag
it was getting too hard to support :( automake now generates libtool
lines before configure runs, so it can't know we don't want a C++ link

see https://github.com/jcupitt/libvips/issues/231
2015-02-07 10:37:13 +00:00
John Cupitt da007b22e6 fix up introspect program
and test with --disable-introspection
2014-12-20 10:28:30 +00:00
John Cupitt e5b55a9398 try more intro stuff 2014-12-19 17:07:21 +00:00
John Cupitt 9ae19ed727 quieter gobject-introspection scan
and make sure gtk-doc.make isn't a symlink
2014-12-04 17:43:41 +00:00
John Cupitt 927b2d7954 remove cimg and gmic
move this to a plugin, it's too big for the core library
2014-10-08 17:51:07 +01:00
John Cupitt 6f8b5c6745 bring the rest of the API into python 2014-09-05 23:18:16 +01:00
John Cupitt 32a8fe117e start working on --disable-deprecated
need to move im_conv() etc to classes to finish this
2014-07-25 18:06:52 +01:00
John Cupitt ad5b6be8f6 hackey hack 2014-02-03 14:51:43 +00:00
John Cupitt 9f150e3063 rename freq_filt package as freqfilt 2014-01-03 17:19:45 +00:00
John Cupitt 8259da2b9c getting ready to rewrite hist stuff 2013-07-01 13:45:36 +01:00
John Cupitt 4436e370c7 make a "create" package
the old "other" package, plus move some of conversion in there
2013-06-13 10:12:22 +01:00
John Cupitt b43f38997d small fixes 2012-01-11 15:00:37 +00:00
John Cupitt 0983b50905 Merge remote-tracking branch 'origin/gobject-introspection' into goi-merge
Conflicts:
	TODO
	libvips/arithmetic/im_recomb.c
	libvips/arithmetic/im_stats.c
	libvips/deprecated/im_measure.c
	libvips/include/vips/header.h
	libvips/include/vips/image.h
	libvips/include/vips/object.h
	libvips/iofuncs/header.c
	libvips/iofuncs/image.c
	libvips/iofuncs/object.c
2011-12-24 17:36:55 +00:00
John Cupitt 14734596a1 move VipsFormat to deprecated 2011-12-20 15:29:33 +00:00
John Cupitt 47fdd3ae6d new tiff writer builds 2011-12-02 18:21:55 +00:00
John Cupitt 56fb2126b8 rename VipsFile as VipsForeign 2011-11-29 11:43:08 +00:00
John Cupitt 9cb602baa1 more new format stuff to VipsFile 2011-11-23 17:38:19 +00:00
John Cupitt 2f7de7f8d0 redone ifthenelse/blend as classes
relational/ can now go, woo
2011-11-15 21:49:49 +00:00
John Cupitt 5b133145a7 move im_shift*( to a class, remove bool package 2011-11-12 17:18:13 +00:00
John Cupitt 8fe50220d5 move mask/ to deprecated, add VipsRound 2011-11-10 13:53:58 +00:00
John Cupitt db9118369a found a type
the makefile references dummy2.cxx, the file is dummy2.cc ...
mysterious! I wonder if this could help with the c++ linking issues?
2011-09-29 17:38:05 +01:00
John Cupitt 0b39b4d9c8 better compiling without c++
closer to a painless no-c++ build, though not quite there yet
2011-08-16 15:37:50 +01:00
John Cupitt 11eb90cdb3 itest for C++ compiler
automatically disable C++ support if no compiler found
2011-08-16 13:26:57 +01:00
John Cupitt 271a6717a3 more introspection fiddling 2011-06-21 22:37:53 +01:00