Skip to content

Commit

Permalink
Add dxml dependency for rpmmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Nov 17, 2023
1 parent 2bd0dc2 commit 6a18788
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions contrib/subprojects/dxml.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[wrap-git]
directory = dxml
url = https://github.com/ximion/dxml.git
revision = master
depth = 1
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ lmdb_dep = dependency('lmdb', version : '>= 0.9.22')
archive_dep = dependency('libarchive', version : '>= 3.2')
curl_dep = dependency('libcurl')

dxml_dep = dependency('', required: false)
if get_option('rpmmd')
dxml_dep = dependency('dxml', fallback: ['dxml', 'dxml_dep'])
endif

#
# Build interfaces from GIR
#
Expand Down
2 changes: 1 addition & 1 deletion src/asgen/backends/rpmmd/rpmpkgindex.d
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import std.array : appender, empty;
import std.string : format;
import std.algorithm : canFind, endsWith;
import std.conv : to;
import std.xml;
import dxml.parser : parseXML;
static import std.file;

import asgen.logging;
Expand Down
6 changes: 4 additions & 2 deletions src/asgen/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ asgen_exe = executable('appstream-generator',
ascompose_dep,
lmdb_dep,
archive_dep,
curl_dep],
curl_dep,
dxml_dep],
link_with: [girbind_lib],
d_import_dirs: [data_import_dirs],
install: true
Expand All @@ -107,7 +108,8 @@ asgen_test_exe = executable('asgen_test',
ascompose_dep,
lmdb_dep,
archive_dep,
curl_dep],
curl_dep,
dxml_dep],
link_with: [girbind_lib],
d_import_dirs: [data_import_dirs],
d_unittest: true
Expand Down

0 comments on commit 6a18788

Please sign in to comment.