Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 1 | project( |
| 2 | 'drm_hwcomposer', |
| 3 | ['c', 'cpp'], |
Dennis Tsiang | 33f0ece | 2023-11-29 12:45:04 +0000 | [diff] [blame] | 4 | version : '3', |
Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 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 | |
| 10 | inc_include = [include_directories('.')] |
| 11 | |
| 12 | src_common = files( |
| 13 | 'compositor/DrmKmsPlan.cpp', |
Roman Stratiienko | 22fe961 | 2023-01-17 21:22:29 +0200 | [diff] [blame] | 14 | 'compositor/FlatteningController.cpp', |
Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 15 | 'backend/BackendManager.cpp', |
| 16 | 'backend/Backend.cpp', |
| 17 | 'backend/BackendClient.cpp', |
Roman Stratiienko | 7689278 | 2023-01-16 17:15:53 +0200 | [diff] [blame] | 18 | 'utils/fd.cpp', |
Tim Van Patten | 16933c3 | 2024-11-08 16:41:39 -0700 | [diff] [blame^] | 19 | 'utils/properties.cpp', |
Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 20 | ) |
| 21 | |
Dennis Tsiang | 33f0ece | 2023-11-29 12:45:04 +0000 | [diff] [blame] | 22 | srcs_hwc2_device = [ |
| 23 | 'hwc2_device/hwc2_device.cpp', |
| 24 | 'hwc2_device/DrmHwcTwo.cpp', |
| 25 | 'hwc2_device/HwcDisplayConfigs.cpp', |
| 26 | 'hwc2_device/HwcDisplay.cpp', |
| 27 | 'hwc2_device/HwcLayer.cpp', |
| 28 | ] |
| 29 | |
Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 30 | deps = [ |
| 31 | dependency('cutils'), |
| 32 | dependency('drm'), |
| 33 | dependency('hardware'), |
| 34 | dependency('hidlbase'), |
| 35 | dependency('log'), |
| 36 | dependency('sync'), |
| 37 | dependency('ui'), |
| 38 | dependency('utils'), |
Drew Davenport | 5951b11 | 2024-08-05 09:44:27 -0600 | [diff] [blame] | 39 | dependency('aidlcommonsupport'), |
| 40 | dependency('android.hardware.graphics.composer@2.1-resources'), |
| 41 | dependency('android.hardware.graphics.composer@2.2-resources'), |
Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 42 | ] |
| 43 | |
| 44 | common_cpp_flags = [ |
| 45 | '-DUSE_IMAPPER4_METADATA_API', |
| 46 | ] |
| 47 | |
| 48 | hwc2_cpp_flags = [ |
| 49 | '-DHWC2_INCLUDE_STRINGIFICATION', |
| 50 | '-DHWC2_USE_CPP11', |
| 51 | ] |
| 52 | |
| 53 | subdir('drm') |
| 54 | subdir('bufferinfo') |
| 55 | |
| 56 | drmhwc_common = static_library( |
| 57 | 'drm_hwcomposer_common', |
| 58 | src_common, |
| 59 | # TODO remove hwc2 flags from common code (backends needs rework) |
| 60 | cpp_args : common_cpp_flags + hwc2_cpp_flags, |
| 61 | dependencies : deps, |
| 62 | ) |
| 63 | |
| 64 | subdir('hwc2_device') |
Dennis Tsiang | 33f0ece | 2023-11-29 12:45:04 +0000 | [diff] [blame] | 65 | subdir('hwc3') |