-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
49 lines (40 loc) · 1.6 KB
/
meson.build
File metadata and controls
49 lines (40 loc) · 1.6 KB
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
##### project
project('eddy', 'c',
version : '0.0.1',
license : 'GPLv2',
default_options: [ 'buildtype=plain', 'c_std=gnu99' ],
meson_version : '>= 0.40.0')
base_url = 'https://github.com/Deepspeed/eddy'
##### convenience variables for later
proj = meson.project_name()
ver = meson.project_version()
##### dependencies
efl_version = '>= 1.20.0'
deps = dependency('elementary', version: efl_version)
eeze_dep = dependency('eeze', required: true)
##### dir locations
dir_prefix = get_option('prefix')
dir_bin = join_paths(dir_prefix, get_option('bindir'))
dir_lib = join_paths(dir_prefix, get_option('libdir'))
dir_data = join_paths(dir_prefix, get_option('datadir'))
dir_locale = join_paths(dir_prefix, get_option('localedir'))
install_data([ 'AUTHORS',
'LICENSE'
],
install_dir: join_paths(dir_data, 'eddy'))
##### config.h
cfg = configuration_data()
cfg.set_quoted('PACKAGE' , proj)
cfg.set_quoted('PACKAGE_NAME' , proj)
cfg.set_quoted('PACKAGE_VERSION' , ver)
cfg.set_quoted('PACKAGE_STRING' , proj + ' ' + ver)
cfg.set_quoted('LOCALE_DIR' , join_paths([dir_prefix, 'share/locale']))
cfg.set_quoted('PACKAGE_URL' , base_url + proj)
cfg.set_quoted('PACKAGE_BIN_DIR' , dir_bin)
cfg.set_quoted('PACKAGE_LIB_DIR' , dir_lib)
cfg.set_quoted('PACKAGE_DATA_DIR' , join_paths(dir_data, proj))
cfg.set_quoted('LOCALEDIR' , dir_locale)
subdir('po')
configure_file(output: 'config.h', configuration: cfg)
##### subdirs
subdir('src')