Commit 44c58ff8 authored by Barak Itkin's avatar Barak Itkin
Browse files

Expose the seamless cloning API

parent 4a45593d
......@@ -1157,6 +1157,7 @@ AC_CONFIG_FILES(
gegl-gegl_api_version.pc:gegl.pc.in
gegl/gegl-gegl_api_version.deps:gegl/gegl.deps.in
gegl/Gegl-gegl_api_version.metadata:gegl/Gegl.metadata.in
operations/common/seamless-clone/gegl-sc-gegl_api_version.pc:operations/common/seamless-clone/gegl-sc.pc.in
)
AC_OUTPUT
......
......@@ -5,3 +5,4 @@
/*.la
/*.lo
/*.so
/gegl-sc-*.pc
include $(top_srcdir)/operations/Makefile-common.am
AM_LDFLAGS += $(op_libs) $(P2TC_LIBS)
AM_CFLAGS += $(op_cflags) $(P2TC_CFLAGS)
AM_LDFLAGS += $(P2TC_LIBS)
AM_CFLAGS += $(P2TC_CFLAGS)
sc_common_files = \
##################################################################
# A shared library for direct access to the seamless cloning API #
##################################################################
GEGL_SC_publicdir = $(includedir)/gegl-$(GEGL_API_VERSION)/sc
GEGL_SC_public_HEADERS = \
sc-common.h \
sc-context.c \
sc-context.h \
sc-context-private.h \
sc-outline.c \
sc-outline.h \
sc-sample.c \
sc-sample.h
noinst_LTLIBRARIES = libsc.la
libsc_la_SOURCES = $(sc_common_files)
GEGL_SC_SOURCES = \
$(GEGL_SC_public_HEADERS) \
sc-context-private.h \
sc-context.c \
sc-outline.c \
sc-sample.c
libgegl_sc_@GEGL_API_VERSION@_la_SOURCES = $(GEGL_SC_public_HEADERS) $(GEGL_SC_SOURCES)
lib_LTLIBRARIES = libgegl-sc-@GEGL_API_VERSION@.la
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gegl-sc-$(GEGL_API_VERSION).pc
###############################
# Seamless cloning operations #
###############################
seamless_clone_la_SOURCES = seamless-clone.c $(sc_common_files)
AM_LDFLAGS += $(op_libs)
AM_CFLAGS += $(op_cflags)
# A simple seamless cloning operation
seamless_clone_la_SOURCES = seamless-clone.c
seamless_clone_la_LIBS = libgegl-sc-@GEGL_API_VERSION@.la
# A composing operation for using the seamless cloning
seamless_clone_compose_la_SOURCES = seamless-clone-compose.c
# Install both the operations in the op dir
#
# TODO: Currently we define this variable manually since it's defined
# in the operations automake file, but there it comes together with
# other definitions that we don't want...
opdir = $(libdir)/gegl-@GEGL_API_VERSION@
op_LTLIBRARIES = seamless-clone.la seamless-clone-compose.la
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/sc
Name: GEGL Seamless Cloning
Description: Seamless Cloning Library Based on GEGL
Version: @GEGL_REAL_VERSION@
Requires: @GLIB_PACKAGES@ babl poly2tri-c @PACKAGE_NAME@
Libs: -L${libdir} -l@PACKAGE_NAME@-sc-@GEGL_API_VERSION@
Cflags: -I${includedir}/@PACKAGE_NAME@-@GEGL_API_VERSION@/sc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment