forked from Pizzabelly/EasyRP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
24 lines (19 loc) · 768 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
project('EasyRP', 'cpp',
version : '3.0',
default_options : ['warning_level=3', 'cpp_std=c++14', 'b_ndebug=if-release'])
compiler = meson.get_compiler('cpp')
if host_machine.system() == 'windows'
windows = import('windows')
win_resources = windows.compile_resources('EasyRP.rc')
discordrpc = compiler.find_library('discord-rpc', dirs: meson.source_root())
src = ['main.cpp', 'config.cpp', 'discord.cpp', win_resources]
else
discordrpc = compiler.find_library('libdiscord-rpc', dirs: meson.source_root())
src = ['main.cpp', 'config.cpp', 'discord.cpp']
endif
rpc_inc = include_directories('discord-rpc/include')
exe = executable('easyrp', src,
include_directories : rpc_inc,
dependencies : [discordrpc],
install : false)
test('basic', exe)