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) ...@@ -61,7 +61,7 @@ property_boolean (cpn_3_keep, _("Keep component 3"), FALSE)
#else #else
#define GEGL_OP_POINT_FILTER #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" #include "gegl-op.h"
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#else #else
#define GEGL_OP_AREA_FILTER #define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "antialias.c" #define GEGL_OP_C_SOURCE antialias.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -40,7 +40,7 @@ property_color (background_color, _("Background color"), "none") ...@@ -40,7 +40,7 @@ property_color (background_color, _("Background color"), "none")
#else #else
#define GEGL_OP_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -41,7 +41,7 @@ property_int (s_sigma, _("Blur radius"), 8) ...@@ -41,7 +41,7 @@ property_int (s_sigma, _("Blur radius"), 8)
#else #else
#define GEGL_OP_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -36,7 +36,7 @@ property_double (edge_preservation, _("Edge preservation"), 8.0) ...@@ -36,7 +36,7 @@ property_double (edge_preservation, _("Edge preservation"), 8.0)
#else #else
#define GEGL_OP_AREA_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -31,7 +31,7 @@ property_int (radius, _("Radius"), 4) ...@@ -31,7 +31,7 @@ property_int (radius, _("Radius"), 4)
#else #else
#define GEGL_OP_AREA_FILTER #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 "gegl-op.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -51,7 +51,7 @@ property_double (brightness, _("Brightness"), 0.0) ...@@ -51,7 +51,7 @@ property_double (brightness, _("Brightness"), 0.0)
/* We specify the file we're in, this is needed to make the code /* We specify the file we're in, this is needed to make the code
* generation for the properties work. * 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 /* Including gegl-op.h creates most of the GObject boiler plate
* needed, creating a GeglOp instance structure a GeglOpClass * needed, creating a GeglOp instance structure a GeglOpClass
......
...@@ -30,7 +30,7 @@ property_pointer (format, _("babl format"), ...@@ -30,7 +30,7 @@ property_pointer (format, _("babl format"),
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "buffer-sink.c" #define GEGL_OP_C_SOURCE buffer-sink.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -28,7 +28,7 @@ property_object(buffer, _("Input buffer"), GEGL_TYPE_BUFFER) ...@@ -28,7 +28,7 @@ property_object(buffer, _("Input buffer"), GEGL_TYPE_BUFFER)
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "buffer-source.c" #define GEGL_OP_C_SOURCE buffer-source.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -87,7 +87,7 @@ property_double (ambient, _("Ambient lighting factor"), 0.0) ...@@ -87,7 +87,7 @@ property_double (ambient, _("Ambient lighting factor"), 0.0)
#else #else
#define GEGL_OP_COMPOSER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -51,7 +51,7 @@ property_double (rgamma, _("Radial Gamma"), 0.0, 8.0, 2.0, ...@@ -51,7 +51,7 @@ property_double (rgamma, _("Radial Gamma"), 0.0, 8.0, 2.0,
#else #else
#define GEGL_OP_AREA_FILTER #define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "c2g.c" #define GEGL_OP_C_SOURCE c2g.c
#include "gegl-op.h" #include "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -31,7 +31,7 @@ property_double (pct_black, _("Percent black"), 0.2) ...@@ -31,7 +31,7 @@ property_double (pct_black, _("Percent black"), 0.2)
#else #else
#define GEGL_OP_AREA_FILTER #define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "cartoon.c" #define GEGL_OP_C_SOURCE cartoon.c
#include "gegl-op.h" #include "gegl-op.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -73,7 +73,7 @@ property_double (bb_gain, _("Blue in Blue channel"), 1.0) ...@@ -73,7 +73,7 @@ property_double (bb_gain, _("Blue in Blue channel"), 1.0)
#else #else
#define GEGL_OP_POINT_FILTER #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" #include "gegl-op.h"
......
...@@ -64,7 +64,7 @@ property_format (format, _("Babl Format"), NULL) ...@@ -64,7 +64,7 @@ property_format (format, _("Babl Format"), NULL)
#else #else
#define GEGL_OP_POINT_RENDER #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-op.h"
#include <gegl-buffer-cl-iterator.h> #include <gegl-buffer-cl-iterator.h>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "color-enhance.c" #define GEGL_OP_C_SOURCE color-enhance.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -50,7 +50,7 @@ property_double (blue_threshold, _("Blue Threshold"), 0.0) ...@@ -50,7 +50,7 @@ property_double (blue_threshold, _("Blue Threshold"), 0.0)
#else #else
#define GEGL_OP_POINT_FILTER #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" #include "gegl-op.h"
......
...@@ -57,7 +57,7 @@ property_seed (seed, _("Random seed"), rand) ...@@ -57,7 +57,7 @@ property_seed (seed, _("Random seed"), rand)
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "color-reduction.c" #define GEGL_OP_C_SOURCE color-reduction.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -88,7 +88,7 @@ property_double (saturation, _("Saturation"), 0.0) ...@@ -88,7 +88,7 @@ property_double (saturation, _("Saturation"), 0.0)
#else #else
#define GEGL_OP_POINT_FILTER #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" #include "gegl-op.h"
......
...@@ -39,7 +39,7 @@ property_double (intended_temperature, _("Intended temperature"), 6500) ...@@ -39,7 +39,7 @@ property_double (intended_temperature, _("Intended temperature"), 6500)
#else #else
#define GEGL_OP_POINT_FILTER #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" #include "gegl-op.h"
......
...@@ -31,7 +31,7 @@ property_color (color, _("Color"), "white") ...@@ -31,7 +31,7 @@ property_color (color, _("Color"), "white")
#else #else
#define GEGL_OP_POINT_FILTER #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 "gegl-op.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -31,7 +31,7 @@ property_format (format, _("Babl Format"), 666) ...@@ -31,7 +31,7 @@ property_format (format, _("Babl Format"), 666)
#else #else
#define GEGL_OP_POINT_RENDER #define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "color.c" #define GEGL_OP_C_SOURCE color.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -32,7 +32,7 @@ property_curve (curve, _("Curve"), NULL) ...@@ -32,7 +32,7 @@ property_curve (curve, _("Curve"), NULL)
#else #else
#define GEGL_OP_POINT_FILTER #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" #include "gegl-op.h"
......
...@@ -69,7 +69,7 @@ property_enum (border, _("Border"), ...@@ -69,7 +69,7 @@ property_enum (border, _("Border"),
#else #else
#define GEGL_OP_AREA_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -28,7 +28,7 @@ property_object (buffer, _("Buffer"), GEGL_TYPE_BUFFER) ...@@ -28,7 +28,7 @@ property_object (buffer, _("Buffer"), GEGL_TYPE_BUFFER)
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "copy-buffer.c" #define GEGL_OP_C_SOURCE copy-buffer.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -44,7 +44,7 @@ property_seed (seed, _("Random seed"), rand) ...@@ -44,7 +44,7 @@ property_seed (seed, _("Random seed"), rand)
#else #else
#define GEGL_OP_AREA_FILTER #define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "cubism.c" #define GEGL_OP_C_SOURCE cubism.c
#include "gegl-op.h" #include "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -49,7 +49,7 @@ property_int (size, _("Block size"), 1) ...@@ -49,7 +49,7 @@ property_int (size, _("Block size"), 1)
#else #else
#define GEGL_OP_AREA_FILTER #define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "deinterlace.c" #define GEGL_OP_C_SOURCE deinterlace.c
#include "gegl-op.h" #include "gegl-op.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -34,7 +34,7 @@ property_double (radius2, _("Radius 2"), 2.0) ...@@ -34,7 +34,7 @@ property_double (radius2, _("Radius 2"), 2.0)
#else #else
#define GEGL_OP_META #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" #include "gegl-op.h"
......
...@@ -94,7 +94,7 @@ property_int (height, _("Height"), 200) ...@@ -94,7 +94,7 @@ property_int (height, _("Height"), 200)
#else #else
#define GEGL_OP_POINT_RENDER #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" #include "gegl-op.h"
......
...@@ -24,7 +24,7 @@ property_string (window_title, _("Window title"), "window_title") ...@@ -24,7 +24,7 @@ property_string (window_title, _("Window title"), "window_title")
description(_("Title to be given to output window")) description(_("Title to be given to output window"))
#else #else
#define GEGL_OP_C_FILE "display.c" #define GEGL_OP_C_SOURCE display.c
#include "gegl-plugin.h" #include "gegl-plugin.h"
......
...@@ -55,7 +55,7 @@ property_boolean (normalize, _("normalize"), TRUE) ...@@ -55,7 +55,7 @@ property_boolean (normalize, _("normalize"), TRUE)
#else #else
#define GEGL_OP_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -52,7 +52,7 @@ property_double (opacity, _("Opacity"), 0.5) ...@@ -52,7 +52,7 @@ property_double (opacity, _("Opacity"), 0.5)
#else #else
#define GEGL_OP_META #define GEGL_OP_META
#define GEGL_OP_C_FILE "dropshadow.c" #define GEGL_OP_C_SOURCE dropshadow.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#else #else
#define GEGL_OP_AREA_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -34,7 +34,7 @@ property_boolean (keep_sign, _("Keep Sign"), TRUE) ...@@ -34,7 +34,7 @@ property_boolean (keep_sign, _("Keep Sign"), TRUE)
#else #else
#define GEGL_OP_AREA_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -48,7 +48,7 @@ property_int (depth, _("Depth"), 20) ...@@ -48,7 +48,7 @@ property_int (depth, _("Depth"), 20)
#else #else
#define GEGL_OP_AREA_FILTER #define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "emboss.c" #define GEGL_OP_C_SOURCE emboss.c
#include "gegl-op.h" #include "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -39,7 +39,7 @@ property_boolean (limit, _("Limit line width"), FALSE) ...@@ -39,7 +39,7 @@ property_boolean (limit, _("Limit line width"), FALSE)
#else #else
#define GEGL_OP_AREA_FILTER #define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "engrave.c" #define GEGL_OP_C_SOURCE engrave.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -51,7 +51,7 @@ typedef struct ...@@ -51,7 +51,7 @@ typedef struct
} GeglOpClass; } GeglOpClass;
#define GEGL_OP_C_FILE "exp-combine.c" #define GEGL_OP_C_SOURCE exp-combine.c
#include "gegl-op.h" #include "gegl-op.h"
GEGL_DEFINE_DYNAMIC_OPERATION(GEGL_TYPE_OPERATION_FILTER) GEGL_DEFINE_DYNAMIC_OPERATION(GEGL_TYPE_OPERATION_FILTER)
......
...@@ -37,7 +37,7 @@ property_double (gamma, _("Gamma correction"), 1.0) ...@@ -37,7 +37,7 @@ property_double (gamma, _("Gamma correction"), 1.0)
#else #else
#define GEGL_OP_POINT_FILTER #define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "exposure.c" #define GEGL_OP_C_SOURCE exposure.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -50,7 +50,7 @@ property_double (noise, _("Noise"), 0.0) ...@@ -50,7 +50,7 @@ property_double (noise, _("Noise"), 0.0)
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "fattal02.c" #define GEGL_OP_C_SOURCE fattal02.c
#include "gegl-op.h" #include "gegl-op.h"
#include "gegl-debug.h" #include "gegl-debug.h"
......
...@@ -117,7 +117,7 @@ property_boolean (useloglog, _("Loglog smoothing"), FALSE) ...@@ -117,7 +117,7 @@ property_boolean (useloglog, _("Loglog smoothing"), FALSE)
#else #else
#define GEGL_OP_POINT_RENDER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -68,7 +68,7 @@ property_enum (abyss_policy, _("Abyss policy"), ...@@ -68,7 +68,7 @@ property_enum (abyss_policy, _("Abyss policy"),
#else #else
#define GEGL_OP_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -57,7 +57,7 @@ property_enum (filter, _("Filter"), ...@@ -57,7 +57,7 @@ property_enum (filter, _("Filter"),
#else #else
#define GEGL_OP_AREA_FILTER #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 "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -27,7 +27,7 @@ property_file_path (path, _("File"), "/tmp/gegl-buffer.gegl") ...@@ -27,7 +27,7 @@ property_file_path (path, _("File"), "/tmp/gegl-buffer.gegl")
#else #else
#define GEGL_OP_SOURCE #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" #include "gegl-op.h"
......
...@@ -27,7 +27,7 @@ property_file_path (path, _("File"), "/tmp/gegl-buffer.gegl") ...@@ -27,7 +27,7 @@ property_file_path (path, _("File"), "/tmp/gegl-buffer.gegl")
#else #else
#define GEGL_OP_SINK #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" #include "gegl-op.h"
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#else #else
#define GEGL_OP_POINT_FILTER #define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "grey.c" #define GEGL_OP_C_SOURCE grey.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -68,7 +68,7 @@ property_color (line_color, _("Color"), "black") ...@@ -68,7 +68,7 @@ property_color (line_color, _("Color"), "black")
#else #else
#define GEGL_OP_POINT_RENDER #define GEGL_OP_POINT_RENDER
#define GEGL_OP_C_FILE "grid.c" #define GEGL_OP_C_SOURCE grid.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -35,7 +35,7 @@ property_double (contrast, _("Contrast"), 1.0) ...@@ -35,7 +35,7 @@ property_double (contrast, _("Contrast"), 1.0)
#else #else
#define GEGL_OP_META #define GEGL_OP_META
#define GEGL_OP_C_FILE "high-pass.c" #define GEGL_OP_C_SOURCE high-pass.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -42,7 +42,7 @@ property_enum (illusion_type, _("Illusion type"), ...@@ -42,7 +42,7 @@ property_enum (illusion_type, _("Illusion type"),
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "illusion.c" #define GEGL_OP_C_SOURCE illusion.c
#include "gegl-op.h" #include "gegl-op.h"
#include <math.h> #include <math.h>
......
...@@ -39,7 +39,7 @@ property_double (avg_diff_total, _("Average difference (total)"), 0.0) ...@@ -39,7 +39,7 @@ property_double (avg_diff_total, _("Average difference (total)"), 0.0)
#else #else
#define GEGL_OP_COMPOSER #define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "image-compare.c" #define GEGL_OP_C_SOURCE image-compare.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -28,7 +28,7 @@ property_object(node, _("Node"), GEGL_TYPE_NODE) ...@@ -28,7 +28,7 @@ property_object(node, _("Node"), GEGL_TYPE_NODE)
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "introspect.c" #define GEGL_OP_C_SOURCE introspect.c
#include "gegl-op.h" #include "gegl-op.h"
#include "gegl-types-internal.h" #include "gegl-types-internal.h"
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#else #else
#define GEGL_OP_POINT_FILTER #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" #include "gegl-op.h"