er2cord/meson.build

54 lines
1.1 KiB
Meson

project('org.er2.cord', ['vala', 'c'], version: '0.1.0')
datadir = get_option('prefix') / get_option('datadir')
name = 'er2cord'
conf = configuration_data()
conf.set_quoted('ID', 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(
name,
source,
dependencies: deps,
install: true
)