-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
56 lines (48 loc) · 2.32 KB
/
meson.build
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#********************************************************************+
# Copyright 2016-2018 Daniel 'grindhold' Brendle
#
# This file is part of libhttpseverywhere.
#
# libhttpseverywhere is free software: you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later
# version.
#
# libhttpseverywhere is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with libhttpseverywhere.
# If not, see http://www.gnu.org/licenses/.
#*********************************************************************
project('httpseverywhere', 'vala', 'c', meson_version : '>=0.39.1', license: 'LGPL')
pkgconfig = import('pkgconfig')
api = '0.8'
# This isn't libtool. To keep things simple, we can use the same version
# number for the soname as our actual version. But it requires that we
# generally follow libtool semantics: bump the first version whenever
# breaking ABI, bump the second version whenever adding new API, bump
# the third version for every release.
libhttpseverywhere_version = '0.8.3'
glib = dependency('glib-2.0')
gobject = dependency('gobject-2.0')
json_glib = dependency('json-glib-1.0')
soup = dependency('libsoup-2.4')
gio = dependency('gio-2.0')
gee = dependency('gee-0.8')
archive = dependency('libarchive')
subdir('src')
subdir('test')
pkgconfig.generate(libraries : httpseverywhere_lib,
version : libhttpseverywhere_version,
name : 'libhttpseverywhere',
filebase : meson.current_build_dir()+'/httpseverywhere-'+api,
requires : 'glib-2.0 gobject-2.0 gio-2.0 json-glib-1.0 libsoup-2.4 gee-0.8 libarchive',
subdirs: 'httpseverywhere-'+api,
description : 'A library to rewrite HTTP URLs to HTTPS URLs.',
install: true)
install_data('data/default.rulesets', install_dir: get_option('datadir') + '/libhttpseverywhere')
install_data('httpseverywhere-'+api+'.deps', install_dir: get_option('datadir') + '/vala/vapi')