-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
45 lines (37 loc) · 1.07 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
project('chunithm-touch', 'c', version: '0.4.0', default_options: ['warning_level=2'])
add_project_arguments(
'-DCOBJMACROS',
'-DDIRECTINPUT_VERSION=0x0800',
'-DWIN32_LEAN_AND_MEAN',
'-D_WIN32_WINNT=_WIN32_WINNT_WIN8',
'-DMINGW_HAS_SECURE_API=1',
language: 'c',
)
if meson.get_compiler('c').get_id() != 'msvc'
add_project_arguments(
'-ffunction-sections',
'-fdata-sections',
language: 'c',
)
add_project_link_arguments(
'-Wl,--exclude-all-symbols',
'-Wl,--gc-sections',
'-static-libgcc',
language: 'c',
)
endif
cc = meson.get_compiler('c')
inc = include_directories('.')
leap_inc = include_directories('3rdparty/LeapSDK/include')
arch = 'x86'
if host_machine.cpu_family() == 'x86_64'
arch = 'x64'
endif
leap_lib_path = meson.source_root() + '/3rdparty/LeapSDK/lib/' + arch
leap_lib = cc.find_library('LeapC', dirs: leap_lib_path)
d2d1_lib = cc.find_library('d2d1')
capnhook = subproject('capnhook')
subdir('leapio')
subdir('leap-configurator')
subdir('chuniio')
subdir('create-touch-window')