Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 1 | project( |
| 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 | |
| 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', |
Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 19 | ) |
| 20 | |
| 21 | deps = [ |
| 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 | |
| 32 | common_cpp_flags = [ |
| 33 | '-DUSE_IMAPPER4_METADATA_API', |
| 34 | ] |
| 35 | |
| 36 | hwc2_cpp_flags = [ |
| 37 | '-DHWC2_INCLUDE_STRINGIFICATION', |
| 38 | '-DHWC2_USE_CPP11', |
| 39 | ] |
| 40 | |
| 41 | subdir('drm') |
| 42 | subdir('bufferinfo') |
| 43 | |
| 44 | drmhwc_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 | |
| 52 | subdir('hwc2_device') |