blob: 4328a1e0f6b8a8da53975c662a0b3da47890d4ba [file] [log] [blame]
Roman Stratiienko38094812022-12-09 19:16:41 +02001project(
2 'drm_hwcomposer',
3 ['c', 'cpp'],
4 version : '2',
5 license : 'APACHE-2.0',
6 meson_version : '>= 0.56',
7 default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'cpp_rtti=false']
8)
9
10inc_include = [include_directories('.')]
11
12src_common = files(
13 'compositor/DrmKmsPlan.cpp',
14 'backend/BackendManager.cpp',
15 'backend/Backend.cpp',
16 'backend/BackendClient.cpp',
Roman Stratiienko76892782023-01-16 17:15:53 +020017 'utils/fd.cpp',
Roman Stratiienko38094812022-12-09 19:16:41 +020018)
19
20deps = [
21 dependency('cutils'),
22 dependency('drm'),
23 dependency('hardware'),
24 dependency('hidlbase'),
25 dependency('log'),
26 dependency('sync'),
27 dependency('ui'),
28 dependency('utils'),
29]
30
31common_cpp_flags = [
32 '-DUSE_IMAPPER4_METADATA_API',
33]
34
35hwc2_cpp_flags = [
36 '-DHWC2_INCLUDE_STRINGIFICATION',
37 '-DHWC2_USE_CPP11',
38]
39
40subdir('drm')
41subdir('bufferinfo')
42
43drmhwc_common = static_library(
44 'drm_hwcomposer_common',
45 src_common,
46# TODO remove hwc2 flags from common code (backends needs rework)
47 cpp_args : common_cpp_flags + hwc2_cpp_flags,
48 dependencies : deps,
49)
50
51subdir('hwc2_device')