aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: 1fdac9aa499ecc05d7de9e21f538e6eaa1466246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
project('html_search', ['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)