-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
26 lines (21 loc) · 971 Bytes
/
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
project('onedrivefs', 'cpp',
default_options : ['buildtype=release', 'b_pie=true', 'b_lto=true', 'cpp_std=c++11'])
add_project_arguments(['-fno-strict-aliasing',
'-fvisibility-inlines-hidden',
'-fvisibility=hidden',
'-ffunction-sections',
'-fdata-sections'], language : 'cpp')
libcurl_dep = dependency('libcurl', version : '>= 7.47')
jsoncpp_dep = dependency('jsoncpp', version : '>= 1.7')
fuse_dep = dependency('fuse', version : '>= 2.9')
src = ['src/appconfig.cpp',
'src/curl.cpp',
'src/fuse.cpp',
'src/graph.cpp',
'src/main.cpp',
'src/onedrive.cpp']
vflag = ['-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), 'src/version'),
'-Wl,-z,now,-z,noexecstack,-z,relro']
executable('onedrivefs', src,
dependencies : [libcurl_dep, jsoncpp_dep, fuse_dep],
link_args : vflag, install : true)