xref: /aosp_15_r20/external/drm_hwcomposer/hwc3/meson.build (revision 0a9764fe0a15e71ebbeb85e87e10990c23aab47f)
1*0a9764feSAndroid Build Coastguard Worker
2*0a9764feSAndroid Build Coastguard Workersrc_hwc3 = files(
3*0a9764feSAndroid Build Coastguard Worker    'ComposerClient.cpp',
4*0a9764feSAndroid Build Coastguard Worker    'Composer.cpp',
5*0a9764feSAndroid Build Coastguard Worker    'DrmHwcThree.cpp',
6*0a9764feSAndroid Build Coastguard Worker    'service.cpp',
7*0a9764feSAndroid Build Coastguard Worker    'ComposerResources.cpp',
8*0a9764feSAndroid Build Coastguard Worker    'Utils.cpp',
9*0a9764feSAndroid Build Coastguard Worker)
10*0a9764feSAndroid Build Coastguard Worker
11*0a9764feSAndroid Build Coastguard Workerexecutable(
12*0a9764feSAndroid Build Coastguard Worker    'android.hardware.composer.hwc3-service.drm',
13*0a9764feSAndroid Build Coastguard Worker    src_hwc3,
14*0a9764feSAndroid Build Coastguard Worker    cpp_args : common_cpp_flags + hwc2_cpp_flags,
15*0a9764feSAndroid Build Coastguard Worker    dependencies : deps,
16*0a9764feSAndroid Build Coastguard Worker    install : true,
17*0a9764feSAndroid Build Coastguard Worker    link_whole: [drmhwc_common, drmhwc_hwc2_common],
18*0a9764feSAndroid Build Coastguard Worker    install_dir : get_option('bindir') / 'hw',
19*0a9764feSAndroid Build Coastguard Worker    include_directories: inc_include,
20*0a9764feSAndroid Build Coastguard Worker)
21*0a9764feSAndroid Build Coastguard Worker
22*0a9764feSAndroid Build Coastguard Workerconfigure_file(
23*0a9764feSAndroid Build Coastguard Worker  input: 'hwc3-drm.rc',
24*0a9764feSAndroid Build Coastguard Worker  output: '@PLAINNAME@',
25*0a9764feSAndroid Build Coastguard Worker  copy: true,
26*0a9764feSAndroid Build Coastguard Worker  install_dir: get_option('sysconfdir') / 'init',
27*0a9764feSAndroid Build Coastguard Worker)
28*0a9764feSAndroid Build Coastguard Worker
29*0a9764feSAndroid Build Coastguard Workerconfigure_file(
30*0a9764feSAndroid Build Coastguard Worker  input: 'hwc3-drm.xml',
31*0a9764feSAndroid Build Coastguard Worker  output: '@PLAINNAME@',
32*0a9764feSAndroid Build Coastguard Worker  copy: true,
33*0a9764feSAndroid Build Coastguard Worker  install_dir: get_option('sysconfdir') / 'vintf' / 'manifest',
34*0a9764feSAndroid Build Coastguard Worker)
35