blob: c2e5fb633a8d54d32950c193a78c1725425dce79 [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',
Roman Stratiienko22fe9612023-01-17 21:22:29 +020014 'compositor/FlatteningController.cpp',
Roman Stratiienko38094812022-12-09 19:16:41 +020015 'backend/BackendManager.cpp',
16 'backend/Backend.cpp',
17 'backend/BackendClient.cpp',
Roman Stratiienko76892782023-01-16 17:15:53 +020018 'utils/fd.cpp',
Roman Stratiienko38094812022-12-09 19:16:41 +020019)
20
21deps = [
22 dependency('cutils'),
23 dependency('drm'),
24 dependency('hardware'),
25 dependency('hidlbase'),
26 dependency('log'),
27 dependency('sync'),
28 dependency('ui'),
29 dependency('utils'),
30]
31
32common_cpp_flags = [
33 '-DUSE_IMAPPER4_METADATA_API',
34]
35
36hwc2_cpp_flags = [
37 '-DHWC2_INCLUDE_STRINGIFICATION',
38 '-DHWC2_USE_CPP11',
39]
40
41subdir('drm')
42subdir('bufferinfo')
43
44drmhwc_common = static_library(
45 'drm_hwcomposer_common',
46 src_common,
47# TODO remove hwc2 flags from common code (backends needs rework)
48 cpp_args : common_cpp_flags + hwc2_cpp_flags,
49 dependencies : deps,
50)
51
52subdir('hwc2_device')