You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vmaf/0002-Unbundle-pugixml.patch

40 lines
1.1 KiB

5 years ago
--- a/libvmaf/src/meson.build
+++ b/libvmaf/src/meson.build
4 years ago
@@ -187,6 +187,7 @@ ptools_sources = [
5 years ago
]
6 years ago
5 years ago
thread_lib = dependency('threads')
+pugixml_lib = dependency('pugixml')
math_lib = cc.find_library('m', required : false)
6 years ago
5 years ago
libptools = shared_library(
4 years ago
@@ -241,7 +242,6 @@ libvmaf_feature_static_lib = static_libr
5 years ago
)
6 years ago
5 years ago
vmaf_sources = [
- third_party_dir + 'pugixml/pugixml.cpp',
src_dir + 'mem.c',
src_dir + 'combo.c',
src_dir + 'cpu_info.c',
4 years ago
@@ -257,7 +257,7 @@ libvmaf = both_libraries(
5 years ago
include_directories : vmaf_include,
c_args : vmaf_cflags_common,
cpp_args : vmaf_cflags_common,
4 years ago
- dependencies : [thread_lib, stdatomic_dependency],
+ dependencies : [thread_lib, pugixml_lib, stdatomic_dependency],
5 years ago
objects : [
4 years ago
platform_specific_cpu_objects,
5 years ago
libptools.extract_all_objects(),
--- a/libvmaf/src/vmaf.cpp
+++ b/libvmaf/src/vmaf.cpp
@@ -28,7 +28,7 @@
#include "vmaf.h"
#include "combo.h"
-#include "third_party/pugixml/pugixml.hpp"
+#include <pugixml.hpp>
#include "timer.h"
#include "jsonprint.h"
#include "debug.h"
6 years ago