-
Notifications
You must be signed in to change notification settings - Fork 3
/
meson.build
52 lines (44 loc) · 1.11 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
46
47
48
49
50
51
52
project(
'drm_hwcomposer',
['c', 'cpp'],
version : '2',
license : 'APACHE-2.0',
meson_version : '>= 0.56',
default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'cpp_rtti=false']
)
inc_include = [include_directories('.')]
src_common = files(
'compositor/DrmKmsPlan.cpp',
'compositor/FlatteningController.cpp',
'backend/BackendManager.cpp',
'backend/Backend.cpp',
'backend/BackendClient.cpp',
'utils/fd.cpp',
)
deps = [
dependency('cutils'),
dependency('drm'),
dependency('hardware'),
dependency('hidlbase'),
dependency('log'),
dependency('sync'),
dependency('ui'),
dependency('utils'),
]
common_cpp_flags = [
'-DUSE_IMAPPER4_METADATA_API',
]
hwc2_cpp_flags = [
'-DHWC2_INCLUDE_STRINGIFICATION',
'-DHWC2_USE_CPP11',
]
subdir('drm')
subdir('bufferinfo')
drmhwc_common = static_library(
'drm_hwcomposer_common',
src_common,
# TODO remove hwc2 flags from common code (backends needs rework)
cpp_args : common_cpp_flags + hwc2_cpp_flags,
dependencies : deps,
)
subdir('hwc2_device')