er2cord/meson.build
2021-11-07 20:14:25 +03:00

52 lines
1.1 KiB
Meson

project('org.er2.cord', ['vala', 'c'], version: '1.0')
datadir = get_option('prefix') / get_option('datadir')
conf = configuration_data()
conf.set_quoted('ID', 'org.er2.cord') # meson.project_name())
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('DATADIR', get_option('prefix') / get_option('datadir'))
conf.set_quoted('GNOMELOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
configure_file(output: 'config.h', configuration: conf)
add_project_arguments(
'-include', 'config.h',
language: 'c'
)
source = files(
'src/main.vala',
'src/Launcher.vala',
'src/api/Message.vala',
'src/api/User.vala',
'src/screens/Main.vala',
'src/screens/Settings.vala',
'src/screens/NewServer.vala',
'src/tools/Config.vala',
'src/tools/CConfig.vapi',
'src/widgets/Avatar.vala',
'src/widgets/Chat.vala',
'src/widgets/Message.vala',
'src/widgets/Scroller.vala',
)
deps = [
dependency('gtk4')
]
subdir('data')
subdir('po')
executable(
'er2cord',
source,
dependencies: deps,
install: true
)