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