aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-03-04 23:01:36 +0100
committerdec05eba <dec05eba@protonmail.com>2025-03-04 23:01:36 +0100
commit3b19c28f73fe8063cffa095f26df023e1d28cb79 (patch)
tree9f59bdd3284dc1a628ccda3f93d6dc86cfb6d400
parent053259c5e9b869f2e5b3aaacbe9fabaaaf55c135 (diff)
Convert into a meson project
m---------depends/html-parser0
-rw-r--r--meson.build25
2 files changed, 25 insertions, 0 deletions
diff --git a/depends/html-parser b/depends/html-parser
-Subproject 5ea469de363ab319f1cf0707c56bf3165287795
+Subproject 3cf44ec7fba308a4b33b0486545b33e334bed74
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..99d0314
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,25 @@
+project('html_parser', ['c'], subproject_dir : 'depends')
+
+src = [
+ 'src/HtmlSearch.c',
+ 'src/NodeSearch.c',
+ 'src/XpathParser.c',
+ 'src/XpathTokenizer.c',
+]
+
+public_headers = include_directories('include')
+
+html_parser_proj = subproject('html-parser')
+html_parser_dep = html_parser_proj.get_variable('html_parser_dep')
+
+deps = [html_parser_dep]
+
+project_target = static_library(
+ meson.project_name(),
+ src,
+ install : false,
+ include_directories : public_headers,
+ dependencies : deps,
+)
+project_dep = declare_dependency(include_directories : public_headers, link_with : project_target, dependencies : deps)
+set_variable(meson.project_name() + '_dep', project_dep) \ No newline at end of file