xref: /aosp_15_r20/external/drm_hwcomposer/hwc2_device/meson.build (revision 0a9764fe0a15e71ebbeb85e87e10990c23aab47f)
1src_hwc2_device = files(
2    'hwc2_device.cpp',
3    'DrmHwcTwo.cpp',
4    'HwcDisplayConfigs.cpp',
5    'HwcDisplay.cpp',
6    'HwcLayer.cpp',
7)
8
9drmhwc_hwc2_common = static_library(
10    'drm_hwc2',
11    src_hwc2_device,
12# TODO remove hwc2 flags from common code (backends needs rework)
13    cpp_args : common_cpp_flags + hwc2_cpp_flags,
14    dependencies : deps,
15    link_with: drmhwc_common,
16    include_directories: inc_include,
17)
18
19shared_library(
20    'hwcomposer.drm',
21    name_prefix : '',
22    cpp_args : common_cpp_flags + hwc2_cpp_flags,
23    dependencies : deps,
24    install : true,
25    link_whole: [drmhwc_common, drmhwc_hwc2_common],
26    install_dir : get_option('libdir') / 'hw',
27    include_directories: inc_include,
28)