-
Notifications
You must be signed in to change notification settings - Fork 7
/
meson.build
54 lines (44 loc) · 1.24 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
project ('com.github.dcharles525.caroline', 'vala', 'c')
pkgconfig = import('pkgconfig')
deps = [
dependency('glib-2.0'),
dependency('gtk+-3.0'),
dependency('gobject-2.0'),
dependency('gee-0.8')
]
api='0.3'
lib_sources = files(
'src/Caroline.vala',
'src/types/Bar.vala',
'src/types/LineSmooth.vala',
'src/types/Line.vala',
'src/types/Pie.vala',
'src/types/Scatter.vala'
)
lib = shared_library(
'caroline-'+api, lib_sources,
dependencies: deps,
install: true
)
headerfilename = meson.current_build_dir () + '/caroline-' + api + '.h'
run_command('touch', headerfilename)
install_headers(headerfilename,subdir: 'caroline-' + api)
vapifilename = meson.current_build_dir() + '/caroline-' + api + '.vapi'
run_command('touch', vapifilename)
install_data(
sources: vapifilename,
install_dir: get_option('datadir') + '/vala/vapi'
)
install_data(
sources: [meson.current_source_dir() + '/caroline-' + api + '.deps'],
install_dir: get_option('datadir') + '/vala/vapi'
)
pkgconfig.generate(
libraries: [lib],
subdirs: 'caroline-0.3',
version: api,
name: 'caroline',
filebase: 'caroline-' + api,
requires: ['glib-2.0', 'gobject-2.0', 'gtk+-3.0', 'gee-0.8'],
description: 'A simple Cairo Chart Library for GTK and Vala'
)