blob: aea40c4813f8b2fc103c672f87d4d66a8a4812ab (
plain)
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
30
31
32
33
|
project('guul', 'c', version : '0.1')
cc = meson.get_compiler('c')
dependencies = [
dependency('glib-2.0')
]
args = []
if host_machine.system() == 'windows'
args += '-DGUUL_PLATFORM_WINDOWS'
dependencies += cc.find_library('rpcrt4')
elif host_machine.system() == 'darwin'
args += '-DGUUL_PLATFORM_OSX'
else
if not cc.has_function('uuid_to_string')
dependencies += dependency('uuid')
args += '-DGUUL_PLATFORM_GENERIC'
else
args += '-DGUUL_PLATFORM_BSD'
endif
endif
guul_lib = static_library(
'guul',
sources : 'guul.c',
c_args : args,
dependencies : dependencies
)
guul = declare_dependency (
link_with : guul_lib,
include_directories: include_directories('.')
)
|