This formatter is in very bad shape and is generally not useful.
It has been deprecated since 1.0... and I bet noone uses it.
#include <libxml/xmlwriter.h>
#include "ges-internal.h"
+#include <ges/ges-pitivi-formatter.h>
#include <ges/ges.h>
/* The Pitivi etree formatter is 0.1 we set GES one to 0.2 */
#include "ges/gstframepositioner.h"
#include "ges-internal.h"
+#ifndef DISABLE_XPTV
+#include <ges/ges-pitivi-formatter.h>
+#endif
+
#define GES_GNONLIN_VERSION_NEEDED_MAJOR 1
#define GES_GNONLIN_VERSION_NEEDED_MINOR 2
#define GES_GNONLIN_VERSION_NEEDED_MICRO 0
g_type_class_ref (GES_TYPE_GROUP);
/* register formatter types with the system */
+#ifndef DISABLE_XPTV
g_type_class_ref (GES_TYPE_PITIVI_FORMATTER);
+#endif
g_type_class_ref (GES_TYPE_COMMAND_LINE_FORMATTER);
g_type_class_ref (GES_TYPE_XML_FORMATTER);
g_type_class_unref (g_type_class_peek (GES_TYPE_GROUP));
/* register formatter types with the system */
+#ifndef DISABLE_XPTV
g_type_class_unref (g_type_class_peek (GES_TYPE_PITIVI_FORMATTER));
+#endif
+
g_type_class_unref (g_type_class_peek (GES_TYPE_COMMAND_LINE_FORMATTER));
g_type_class_unref (g_type_class_peek (GES_TYPE_XML_FORMATTER));
#include <ges/ges-effect-asset.h>
#include <ges/ges-effect.h>
#include <ges/ges-formatter.h>
-#include <ges/ges-pitivi-formatter.h>
#include <ges/ges-command-line-formatter.h>
#include <ges/ges-utils.h>
#include <ges/ges-meta-container.h>
'ges-effect.c',
'ges-screenshot.c',
'ges-formatter.c',
- 'ges-pitivi-formatter.c',
'ges-asset.c',
'ges-uri-asset.c',
'ges-clip-asset.c',
'ges-text-overlay.h',
'ges-screenshot.h',
'ges-formatter.h',
- 'ges-pitivi-formatter.h',
'ges-asset.h',
'ges-uri-asset.h',
'ges-clip-asset.h',
'ges-group.h'
]
+if libxml_dep.found()
+ ges_sources += ['ges-pitivi-formatter.c']
+ ges_headers += ['ges-pitivi-formatter.h']
+endif
version_data = configuration_data()
version_data.set('GES_VERSION_MAJOR', gst_version_major)
fallback : ['gst-devtools', 'validate_dep'])
gio_dep = dependency('gio-2.0', fallback: ['glib', 'libgio_dep'])
-libxml_dep = dependency('libxml-2.0', fallback: ['libxml2', 'xml2lib_dep'])
+libxml_dep = dependency('libxml-2.0', required: get_option('xptv'))
+cdata.set('DISABLE_XPTV', not libxml_dep.found())
# TODO Properly port to Gtk 3
# gtk_dep = dependency('gtk+-3.0', required : false)
description : 'Build and enable unit tests')
option('pygi-overrides-dir', type : 'string', value : '',
description: 'Path to pygobject overrides directory')
+option('xptv', type : 'feature', value : 'auto',
+ description : 'Build the deprecated xptv formater')
\ No newline at end of file