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', |
| 14 | 'backend/BackendManager.cpp', |
| 15 | 'backend/Backend.cpp', |
| 16 | 'backend/BackendClient.cpp', |
Roman Stratiienko | 7689278 | 2023-01-16 17:15:53 +0200 | [diff] [blame^] | 17 | 'utils/fd.cpp', |
Roman Stratiienko | 3809481 | 2022-12-09 19:16:41 +0200 | [diff] [blame] | 18 | ) |
| 19 | |
| 20 | deps = [ |
| 21 | dependency('cutils'), |
| 22 | dependency('drm'), |
| 23 | dependency('hardware'), |
| 24 | dependency('hidlbase'), |
| 25 | dependency('log'), |
| 26 | dependency('sync'), |
| 27 | dependency('ui'), |
| 28 | dependency('utils'), |
| 29 | ] |
| 30 | |
| 31 | common_cpp_flags = [ |
| 32 | '-DUSE_IMAPPER4_METADATA_API', |
| 33 | ] |
| 34 | |
| 35 | hwc2_cpp_flags = [ |
| 36 | '-DHWC2_INCLUDE_STRINGIFICATION', |
| 37 | '-DHWC2_USE_CPP11', |
| 38 | ] |
| 39 | |
| 40 | subdir('drm') |
| 41 | subdir('bufferinfo') |
| 42 | |
| 43 | drmhwc_common = static_library( |
| 44 | 'drm_hwcomposer_common', |
| 45 | src_common, |
| 46 | # TODO remove hwc2 flags from common code (backends needs rework) |
| 47 | cpp_args : common_cpp_flags + hwc2_cpp_flags, |
| 48 | dependencies : deps, |
| 49 | ) |
| 50 | |
| 51 | subdir('hwc2_device') |