Commit 5079168e authored by Jon Nordby's avatar Jon Nordby

operations/common: Include source as metadata

sed -i -e 's/^.*\"\(.*\.c\)\".*$/#define GEGL_OP_C_SOURCE \1/' operations/common/*.c
parent e913a989
......@@ -61,7 +61,7 @@ property_boolean (cpn_3_keep, _("Keep component 3"), FALSE)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "alien-map.c"
#define GEGL_OP_C_SOURCE alien-map.c
#include "gegl-op.h"
......
......@@ -40,7 +40,7 @@
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "antialias.c"
#define GEGL_OP_C_SOURCE antialias.c
#include "gegl-op.h"
......
......@@ -40,7 +40,7 @@ property_color (background_color, _("Background color"), "none")
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "apply-lens.c"
#define GEGL_OP_C_SOURCE apply-lens.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -41,7 +41,7 @@ property_int (s_sigma, _("Blur radius"), 8)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "bilateral-filter-fast.c"
#define GEGL_OP_C_SOURCE bilateral-filter-fast.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -36,7 +36,7 @@ property_double (edge_preservation, _("Edge preservation"), 8.0)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "bilateral-filter.c"
#define GEGL_OP_C_SOURCE bilateral-filter.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -31,7 +31,7 @@ property_int (radius, _("Radius"), 4)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "box-blur.c"
#define GEGL_OP_C_SOURCE box-blur.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -51,7 +51,7 @@ property_double (brightness, _("Brightness"), 0.0)
/* We specify the file we're in, this is needed to make the code
* generation for the properties work.
*/
#define GEGL_OP_C_FILE "brightness-contrast.c"
#define GEGL_OP_C_SOURCE brightness-contrast.c
/* Including gegl-op.h creates most of the GObject boiler plate
* needed, creating a GeglOp instance structure a GeglOpClass
......
......@@ -30,7 +30,7 @@ property_pointer (format, _("babl format"),
#else
#define GEGL_OP_SINK
#define GEGL_OP_C_FILE "buffer-sink.c"
#define GEGL_OP_C_SOURCE buffer-sink.c
#include "gegl-op.h"
......
......@@ -28,7 +28,7 @@ property_object(buffer, _("Input buffer"), GEGL_TYPE_BUFFER)
#else
#define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "buffer-source.c"
#define GEGL_OP_C_SOURCE buffer-source.c
#include "gegl-op.h"
......
......@@ -87,7 +87,7 @@ property_double (ambient, _("Ambient lighting factor"), 0.0)
#else
#define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "bump-map.c"
#define GEGL_OP_C_SOURCE bump-map.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -51,7 +51,7 @@ property_double (rgamma, _("Radial Gamma"), 0.0, 8.0, 2.0,
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "c2g.c"
#define GEGL_OP_C_SOURCE c2g.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -31,7 +31,7 @@ property_double (pct_black, _("Percent black"), 0.2)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "cartoon.c"
#define GEGL_OP_C_SOURCE cartoon.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -73,7 +73,7 @@ property_double (bb_gain, _("Blue in Blue channel"), 1.0)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "channel-mixer.c"
#define GEGL_OP_C_SOURCE channel-mixer.c
#include "gegl-op.h"
......
......@@ -64,7 +64,7 @@ property_format (format, _("Babl Format"), NULL)
#else
#define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "checkerboard.c"
#define GEGL_OP_C_SOURCE checkerboard.c
#include "gegl-op.h"
#include <gegl-buffer-cl-iterator.h>
......
......@@ -29,7 +29,7 @@
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "color-enhance.c"
#define GEGL_OP_C_SOURCE color-enhance.c
#include "gegl-op.h"
......
......@@ -50,7 +50,7 @@ property_double (blue_threshold, _("Blue Threshold"), 0.0)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "color-exchange.c"
#define GEGL_OP_C_SOURCE color-exchange.c
#include "gegl-op.h"
......
......@@ -57,7 +57,7 @@ property_seed (seed, _("Random seed"), rand)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "color-reduction.c"
#define GEGL_OP_C_SOURCE color-reduction.c
#include "gegl-op.h"
......
......@@ -88,7 +88,7 @@ property_double (saturation, _("Saturation"), 0.0)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "color-rotate.c"
#define GEGL_OP_C_SOURCE color-rotate.c
#include "gegl-op.h"
......
......@@ -39,7 +39,7 @@ property_double (intended_temperature, _("Intended temperature"), 6500)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "color-temperature.c"
#define GEGL_OP_C_SOURCE color-temperature.c
#include "gegl-op.h"
......
......@@ -31,7 +31,7 @@ property_color (color, _("Color"), "white")
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "color-to-alpha.c"
#define GEGL_OP_C_SOURCE color-to-alpha.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -31,7 +31,7 @@ property_format (format, _("Babl Format"), 666)
#else
#define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "color.c"
#define GEGL_OP_C_SOURCE color.c
#include "gegl-op.h"
......
......@@ -32,7 +32,7 @@ property_curve (curve, _("Curve"), NULL)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "contrast-curve.c"
#define GEGL_OP_C_SOURCE contrast-curve.c
#include "gegl-op.h"
......
......@@ -69,7 +69,7 @@ property_enum (border, _("Border"),
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "convolution-matrix.c"
#define GEGL_OP_C_SOURCE convolution-matrix.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -28,7 +28,7 @@ property_object (buffer, _("Buffer"), GEGL_TYPE_BUFFER)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "copy-buffer.c"
#define GEGL_OP_C_SOURCE copy-buffer.c
#include "gegl-op.h"
......
......@@ -44,7 +44,7 @@ property_seed (seed, _("Random seed"), rand)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "cubism.c"
#define GEGL_OP_C_SOURCE cubism.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -49,7 +49,7 @@ property_int (size, _("Block size"), 1)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "deinterlace.c"
#define GEGL_OP_C_SOURCE deinterlace.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -34,7 +34,7 @@ property_double (radius2, _("Radius 2"), 2.0)
#else
#define GEGL_OP_META
#define GEGL_OP_C_FILE "difference-of-gaussians.c"
#define GEGL_OP_C_SOURCE difference-of-gaussians.c
#include "gegl-op.h"
......
......@@ -94,7 +94,7 @@ property_int (height, _("Height"), 200)
#else
#define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "diffraction-patterns.c"
#define GEGL_OP_C_SOURCE diffraction-patterns.c
#include "gegl-op.h"
......
......@@ -24,7 +24,7 @@ property_string (window_title, _("Window title"), "window_title")
description(_("Title to be given to output window"))
#else
#define GEGL_OP_C_FILE "display.c"
#define GEGL_OP_C_SOURCE display.c
#include "gegl-plugin.h"
......
......@@ -55,7 +55,7 @@ property_boolean (normalize, _("normalize"), TRUE)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "distance-transform.c"
#define GEGL_OP_C_SOURCE distance-transform.c
#include "gegl-op.h"
#include <math.h>
#include <stdio.h>
......
......@@ -52,7 +52,7 @@ property_double (opacity, _("Opacity"), 0.5)
#else
#define GEGL_OP_META
#define GEGL_OP_C_FILE "dropshadow.c"
#define GEGL_OP_C_SOURCE dropshadow.c
#include "gegl-op.h"
......
......@@ -29,7 +29,7 @@
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "edge-laplace.c"
#define GEGL_OP_C_SOURCE edge-laplace.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -34,7 +34,7 @@ property_boolean (keep_sign, _("Keep Sign"), TRUE)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "edge-sobel.c"
#define GEGL_OP_C_SOURCE edge-sobel.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -48,7 +48,7 @@ property_int (depth, _("Depth"), 20)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "emboss.c"
#define GEGL_OP_C_SOURCE emboss.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -39,7 +39,7 @@ property_boolean (limit, _("Limit line width"), FALSE)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "engrave.c"
#define GEGL_OP_C_SOURCE engrave.c
#include "gegl-op.h"
......
......@@ -51,7 +51,7 @@ typedef struct
} GeglOpClass;
#define GEGL_OP_C_FILE "exp-combine.c"
#define GEGL_OP_C_SOURCE exp-combine.c
#include "gegl-op.h"
GEGL_DEFINE_DYNAMIC_OPERATION(GEGL_TYPE_OPERATION_FILTER)
......
......@@ -37,7 +37,7 @@ property_double (gamma, _("Gamma correction"), 1.0)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "exposure.c"
#define GEGL_OP_C_SOURCE exposure.c
#include "gegl-op.h"
......
......@@ -50,7 +50,7 @@ property_double (noise, _("Noise"), 0.0)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "fattal02.c"
#define GEGL_OP_C_SOURCE fattal02.c
#include "gegl-op.h"
#include "gegl-debug.h"
......
......@@ -117,7 +117,7 @@ property_boolean (useloglog, _("Loglog smoothing"), FALSE)
#else
#define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "fractal-explorer.c"
#define GEGL_OP_C_SOURCE fractal-explorer.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -68,7 +68,7 @@ property_enum (abyss_policy, _("Abyss policy"),
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "fractal-trace.c"
#define GEGL_OP_C_SOURCE fractal-trace.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -57,7 +57,7 @@ property_enum (filter, _("Filter"),
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "gaussian-blur.c"
#define GEGL_OP_C_SOURCE gaussian-blur.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -27,7 +27,7 @@ property_file_path (path, _("File"), "/tmp/gegl-buffer.gegl")
#else
#define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "gegl-buffer-load-op.c"
#define GEGL_OP_C_SOURCE gegl-buffer-load-op.c
#include "gegl-op.h"
......
......@@ -27,7 +27,7 @@ property_file_path (path, _("File"), "/tmp/gegl-buffer.gegl")
#else
#define GEGL_OP_SINK
#define GEGL_OP_C_FILE "gegl-buffer-save-op.c"
#define GEGL_OP_C_SOURCE gegl-buffer-save-op.c
#include "gegl-op.h"
......
......@@ -27,7 +27,7 @@
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "grey.c"
#define GEGL_OP_C_SOURCE grey.c
#include "gegl-op.h"
......
......@@ -68,7 +68,7 @@ property_color (line_color, _("Color"), "black")
#else
#define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "grid.c"
#define GEGL_OP_C_SOURCE grid.c
#include "gegl-op.h"
......
......@@ -35,7 +35,7 @@ property_double (contrast, _("Contrast"), 1.0)
#else
#define GEGL_OP_META
#define GEGL_OP_C_FILE "high-pass.c"
#define GEGL_OP_C_SOURCE high-pass.c
#include "gegl-op.h"
......
......@@ -42,7 +42,7 @@ property_enum (illusion_type, _("Illusion type"),
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "illusion.c"
#define GEGL_OP_C_SOURCE illusion.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -39,7 +39,7 @@ property_double (avg_diff_total, _("Average difference (total)"), 0.0)
#else
#define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "image-compare.c"
#define GEGL_OP_C_SOURCE image-compare.c
#include "gegl-op.h"
......
......@@ -28,7 +28,7 @@ property_object(node, _("Node"), GEGL_TYPE_NODE)
#else
#define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "introspect.c"
#define GEGL_OP_C_SOURCE introspect.c
#include "gegl-op.h"
#include "gegl-types-internal.h"
......
......@@ -27,7 +27,7 @@
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "invert-gamma.c"
#define GEGL_OP_C_SOURCE invert-gamma.c
#include "gegl-op.h"
......
......@@ -27,7 +27,7 @@
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "invert-linear.c"
#define GEGL_OP_C_SOURCE invert-linear.c
#include "gegl-op.h"
......
......@@ -82,7 +82,7 @@ typedef struct
GeglOperationMetaClass parent_class;
} GeglOpClass;
#define GEGL_OP_C_FILE "layer.c"
#define GEGL_OP_C_SOURCE layer.c
#include "gegl-op.h"
GEGL_DEFINE_DYNAMIC_OPERATION(GEGL_TYPE_OPERATION_META)
......
......@@ -59,7 +59,7 @@ property_color (background, _("Background color"), "white")
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "lens-distortion.c"
#define GEGL_OP_C_SOURCE lens-distortion.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -40,7 +40,7 @@ property_double (pos_y, _("Y position"), 0.5)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "lens-flare.c"
#define GEGL_OP_C_SOURCE lens-flare.c
#include "gegl-op.h"
......
......@@ -46,7 +46,7 @@ property_double (out_high, _("High output"), 1.0)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "levels.c"
#define GEGL_OP_C_SOURCE levels.c
#include "gegl-op.h"
......
......@@ -49,7 +49,7 @@ property_color (end_color, _("End Color"), "white")
#else
#define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "linear-gradient.c"
#define GEGL_OP_C_SOURCE linear-gradient.c
#include "gegl-op.h"
......
......@@ -29,7 +29,7 @@ property_uri (uri, _("URI"), "")
#else
#define GEGL_OP_C_FILE "load.c"
#define GEGL_OP_C_SOURCE load.c
#include "gegl-plugin.h"
......
......@@ -29,7 +29,7 @@ property_file_path (path, _("File"), "/tmp/gegl-logo.svg")
#else
#define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "magick-load.c"
#define GEGL_OP_C_SOURCE magick-load.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -43,7 +43,7 @@ property_double (detail, _("Detail"), 1.0)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "mantiuk06.c"
#define GEGL_OP_C_SOURCE mantiuk06.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -26,7 +26,7 @@ property_enum (sampler_type, _("Resampling method"),
#else
#define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "map-absolute.c"
#define GEGL_OP_C_SOURCE map-absolute.c
#include "config.h"
#include <glib/gi18n-lib.h>
......
......@@ -31,7 +31,7 @@ property_enum (sampler_type, _("Resampling method"),
#else
#define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "map-relative.c"
#define GEGL_OP_C_SOURCE map-relative.c
#include "config.h"
#include <glib/gi18n-lib.h>
......
......@@ -29,7 +29,7 @@ property_int (iterations, _("Iterations"), 10)
#else
#define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "matting-global.c"
#define GEGL_OP_C_SOURCE matting-global.c
#include "gegl-op.h"
#include "gegl-debug.h"
......
......@@ -29,7 +29,7 @@ property_double (dampness, _("Dampness"), 0.95)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "mblur.c"
#define GEGL_OP_C_SOURCE mblur.c
#include "gegl-op.h"
......
......@@ -88,7 +88,7 @@ property_boolean (warp, _("Wrap input"), TRUE)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "mirrors.c"
#define GEGL_OP_C_SOURCE mirrors.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -40,7 +40,7 @@ property_double (blue, _("Amount of blue"), 0.5)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "mono-mixer.c"
#define GEGL_OP_C_SOURCE mono-mixer.c
#include "gegl-op.h"
......
......@@ -90,7 +90,7 @@ property_seed (seed, _("Random seed"), rand)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "mosaic.c"
#define GEGL_OP_C_SOURCE mosaic.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -57,7 +57,7 @@ property_double (angle, _("Angle"), 5.0)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "motion-blur-circular.c"
#define GEGL_OP_C_SOURCE motion-blur-circular.c
#include "gegl-op.h"
......
......@@ -38,7 +38,7 @@ property_double (angle, _("Angle"), 0.0)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "motion-blur-linear.c"
#define GEGL_OP_C_SOURCE motion-blur-linear.c
#include "gegl-op.h"
......
......@@ -55,7 +55,7 @@ property_double (factor, _("Blurring factor"), 0.1)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "motion-blur-zoom.c"
#define GEGL_OP_C_SOURCE motion-blur-zoom.c
#include "gegl-op.h"
......
......@@ -58,7 +58,7 @@ property_seed (seed, _("Random seed"), rand)
#else
#define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "noise-cell.c"
#define GEGL_OP_C_SOURCE noise-cell.c
#include "gegl-op.h"
#include <gegl-buffer-cl-iterator.h>
......
......@@ -39,7 +39,7 @@ property_seed (seed, _("Random seed"), rand)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "noise-cie-lch.c"
#define GEGL_OP_C_SOURCE noise-cie-lch.c
#include "gegl-op.h"
#include "gegl.h"
......
......@@ -41,7 +41,7 @@ property_seed (seed, _("Random seed"), rand)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "noise-hsv.c"
#define GEGL_OP_C_SOURCE noise-hsv.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -39,7 +39,7 @@ property_seed (seed, _("Random seed"), rand)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "noise-hurl.c"
#define GEGL_OP_C_SOURCE noise-hurl.c
#include "gegl-op.h"