Commit e913a989 authored by Jon Nordby's avatar Jon Nordby

operations/external: Include source of op as metadata

sed -i -e 's/^.*\"\(.*\.c\)\".*$/#define GEGL_OP_C_SOURCE \1/' operations/external/*.c
parent 04bdf79f
...@@ -31,8 +31,7 @@ property_int (frame, _("Frame number"), 0) ...@@ -31,8 +31,7 @@ property_int (frame, _("Frame number"), 0)
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_C_SOURCE ff-load.c
#define GEGL_OP_C_FILE "ff-load.c"
#include "gegl-op.h" #include "gegl-op.h"
#include <errno.h> #include <errno.h>
......
...@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "") ...@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "")
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "jp2-load.c" #define GEGL_OP_C_SOURCE jp2-load.c
#include "gegl-op.h" #include "gegl-op.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -29,7 +29,7 @@ property_uri (uri, _("URI"), "") ...@@ -29,7 +29,7 @@ property_uri (uri, _("URI"), "")
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "jpg-load.c" #define GEGL_OP_C_SOURCE jpg-load.c
#include "gegl-op.h" #include "gegl-op.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -43,7 +43,7 @@ property_boolean (grayscale, _("Grayscale"), FALSE) ...@@ -43,7 +43,7 @@ property_boolean (grayscale, _("Grayscale"), FALSE)
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "jpg-save.c" #define GEGL_OP_C_SOURCE jpg-save.c
#include "gegl-op.h" #include "gegl-op.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -50,7 +50,7 @@ property_boolean (black_point_compensation, _("Black point compensation"), ...@@ -50,7 +50,7 @@ property_boolean (black_point_compensation, _("Black point compensation"),
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "lcms-from-profile.c" #define GEGL_OP_C_SOURCE lcms-from-profile.c
#include "gegl-op.h" #include "gegl-op.h"
#include <lcms2.h> #include <lcms2.h>
......
...@@ -49,7 +49,7 @@ property_int (active_levels, _("Active levels"), 2) ...@@ -49,7 +49,7 @@ property_int (active_levels, _("Active levels"), 2)
#else #else
#define GEGL_OP_COMPOSER #define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "matting-levin.c" #define GEGL_OP_C_SOURCE matting-levin.c
#include "gegl-op.h" #include "gegl-op.h"
#include "gegl-debug.h" #include "gegl-debug.h"
......
...@@ -34,7 +34,7 @@ property_file_path (path, _("File"), "") ...@@ -34,7 +34,7 @@ property_file_path (path, _("File"), "")
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "npy-save.c" #define GEGL_OP_C_SOURCE npy-save.c
#include "gegl-op.h" #include "gegl-op.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -41,7 +41,7 @@ typedef struct ...@@ -41,7 +41,7 @@ typedef struct
GeglOperationSourceClass parent_class; GeglOperationSourceClass parent_class;
} GeglOpClass; } GeglOpClass;
#define GEGL_OP_C_FILE "openraw.c" #define GEGL_OP_C_SOURCE openraw.c
#include "gegl-op.h" #include "gegl-op.h"
GEGL_DEFINE_DYNAMIC_OPERATION(GEGL_TYPE_OPERATION_SOURCE) GEGL_DEFINE_DYNAMIC_OPERATION(GEGL_TYPE_OPERATION_SOURCE)
......
...@@ -57,7 +57,7 @@ property_path (d, _("Vector"), NULL) ...@@ -57,7 +57,7 @@ property_path (d, _("Vector"), NULL)
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "path.c" #define GEGL_OP_C_SOURCE path.c
#include "gegl-plugin.h" #include "gegl-plugin.h"
#include "gegl-path.h" #include "gegl-path.h"
......
...@@ -27,7 +27,7 @@ property_pointer (pixbuf, _("Pixbuf"), _("GdkPixbuf to use")) ...@@ -27,7 +27,7 @@ property_pointer (pixbuf, _("Pixbuf"), _("GdkPixbuf to use"))
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "pixbuf.c" #define GEGL_OP_C_SOURCE pixbuf.c
#include "gegl-op.h" #include "gegl-op.h"
#include <gdk-pixbuf/gdk-pixbuf.h> #include <gdk-pixbuf/gdk-pixbuf.h>
......
...@@ -32,7 +32,7 @@ property_uri (uri, _("URI"), "") ...@@ -32,7 +32,7 @@ property_uri (uri, _("URI"), "")
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "png-load.c" #define GEGL_OP_C_SOURCE png-load.c
#include "gegl-op.h" #include "gegl-op.h"
#include <png.h> #include <png.h>
......
...@@ -35,7 +35,7 @@ property_int (bitdepth, _("Bitdepth"), 16) ...@@ -35,7 +35,7 @@ property_int (bitdepth, _("Bitdepth"), 16)
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "png-save.c" #define GEGL_OP_C_SOURCE png-save.c
#include "gegl-op.h" #include "gegl-op.h"
#include <png.h> #include <png.h>
......
...@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "") ...@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "")
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "ppm-load.c" #define GEGL_OP_C_SOURCE ppm-load.c
#define MAX_CHARS_IN_ROW 500 #define MAX_CHARS_IN_ROW 500
#define CHANNEL_COUNT 3 #define CHANNEL_COUNT 3
......
...@@ -33,7 +33,7 @@ property_int (bitdepth, _("Bitdepth"), 16) ...@@ -33,7 +33,7 @@ property_int (bitdepth, _("Bitdepth"), 16)
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "ppm-save.c" #define GEGL_OP_C_SOURCE ppm-save.c
#define CHANNEL_COUNT 3 #define CHANNEL_COUNT 3
......
...@@ -29,7 +29,7 @@ property_file_path (path, _("File"), "") ...@@ -29,7 +29,7 @@ property_file_path (path, _("File"), "")
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "rgbe-load.c" #define GEGL_OP_C_SOURCE rgbe-load.c
#include "gegl-op.h" #include "gegl-op.h"
......
...@@ -29,7 +29,7 @@ property_file_path (path, _("File"), "") ...@@ -29,7 +29,7 @@ property_file_path (path, _("File"), "")
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "rgbe-save.c" #define GEGL_OP_C_SOURCE rgbe-save.c
#include "gegl-op.h" #include "gegl-op.h"
#include "rgbe/rgbe.h" #include "rgbe/rgbe.h"
......
...@@ -31,7 +31,7 @@ property_pointer (pixbuf, _("Pixbuf location"), ...@@ -31,7 +31,7 @@ property_pointer (pixbuf, _("Pixbuf location"),
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "save-pixbuf.c" #define GEGL_OP_C_SOURCE save-pixbuf.c
#include "gegl-op.h" #include "gegl-op.h"
#include <gdk-pixbuf/gdk-pixbuf.h> #include <gdk-pixbuf/gdk-pixbuf.h>
......
...@@ -29,7 +29,7 @@ property_string (icon_title, _("Icon title"), "icon_title") ...@@ -29,7 +29,7 @@ property_string (icon_title, _("Icon title"), "icon_title")
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "sdl-display.c" #define GEGL_OP_C_SOURCE sdl-display.c
#include "gegl-op.h" #include "gegl-op.h"
#include <SDL.h> #include <SDL.h>
......
...@@ -34,7 +34,7 @@ property_int (height, _("Height"), -1) ...@@ -34,7 +34,7 @@ property_int (height, _("Height"), -1)
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "svg-load.c" #define GEGL_OP_C_SOURCE svg-load.c
#include "gegl-op.h" #include "gegl-op.h"
#include <cairo.h> #include <cairo.h>
......
...@@ -80,7 +80,7 @@ typedef struct ...@@ -80,7 +80,7 @@ typedef struct
GeglOperationSourceClass parent_class; GeglOperationSourceClass parent_class;
} GeglOpClass; } GeglOpClass;
#define GEGL_OP_C_FILE "text.c" #define GEGL_OP_C_SOURCE text.c
#include "gegl-op.h" #include "gegl-op.h"
GEGL_DEFINE_DYNAMIC_OPERATION (GEGL_TYPE_OPERATION_SOURCE) GEGL_DEFINE_DYNAMIC_OPERATION (GEGL_TYPE_OPERATION_SOURCE)
......
...@@ -41,12 +41,12 @@ property_int (fps, _("FPS"), 0) ...@@ -41,12 +41,12 @@ property_int (fps, _("FPS"), 0)
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "v4l.c" #define GEGL_OP_C_SOURCE v4l.c
#include "gegl-op.h" #include "gegl-op.h"
#include "v4lutils/v4lutils.h" #include "v4lutils/v4lutils.h"
#include "v4lutils/v4lutils.c" #define GEGL_OP_C_SOURCE v4lutils/v4lutils.c
typedef struct typedef struct
{ {
......
...@@ -43,7 +43,7 @@ property_path (d, _("Vector"), NULL) ...@@ -43,7 +43,7 @@ property_path (d, _("Vector"), NULL)
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "vector-fill.c" #define GEGL_OP_C_SOURCE vector-fill.c
#include "gegl-plugin.h" #include "gegl-plugin.h"
......
...@@ -44,7 +44,7 @@ property_path (d, _("Vector"), NULL) ...@@ -44,7 +44,7 @@ property_path (d, _("Vector"), NULL)
#else #else
#define GEGL_OP_FILTER #define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "vector-stroke.c" #define GEGL_OP_C_SOURCE vector-stroke.c
#include "gegl-plugin.h" #include "gegl-plugin.h"
......
...@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "") ...@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "")
#else #else
#define GEGL_OP_SOURCE #define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "webp-load.c" #define GEGL_OP_C_SOURCE webp-load.c
#include "gegl-op.h" #include "gegl-op.h"
#include <webp/decode.h> #include <webp/decode.h>
......
...@@ -31,7 +31,7 @@ property_int (quality, _("Quality"), 90) ...@@ -31,7 +31,7 @@ property_int (quality, _("Quality"), 90)
#else #else
#define GEGL_OP_SINK #define GEGL_OP_SINK
#define GEGL_OP_C_FILE "webp-save.c" #define GEGL_OP_C_SOURCE webp-save.c
#include "gegl-op.h" #include "gegl-op.h"
#include <webp/encode.h> #include <webp/encode.h>
......
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