-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
29 lines (25 loc) · 946 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
27
28
29
project('esthrower', 'cpp', default_options : ['cpp_std=c++17'], version: '0.1.0')
gtkdep = dependency('gtkmm-3.0')
curldep = dependency('libcurl')
archivedep = dependency('libarchive')
inc_dir = include_directories('include')
#Check the platform and add a install_dir for the executable appropriate for the platform
if host_machine.system() == 'windows'
install_dir = 'C:/Program Files/ESThrower'
elif host_machine.system() == 'linux'
install_dir = '/usr/bin'
else #Generic UNIX
install_dir = '/usr/bin'
endif
sources = [
'src/downloader.cpp',
'src/functions.cpp',
'src/plugin_instance.cpp',
'src/changelog_widget.cpp',
'src/main_window.cpp',
'src/instance_widget.cpp',
'src/secondary_dialogs.cpp',
'src/dialogs.cpp',
'src/main.cpp'
]
executable('esthrower', sources, include_directories: inc_dir, dependencies : [gtkdep, curldep, archivedep], install : true, install_dir : install_dir)