1bf215546Sopenharmony_ci# Copyright © 2021 Collabora, Ltd. 2bf215546Sopenharmony_ci# Copyright © 2021 Google, Inc 3bf215546Sopenharmony_ci# 4bf215546Sopenharmony_ci# SPDX-License-Identifier: MIT 5bf215546Sopenharmony_ci 6bf215546Sopenharmony_cipps_freedreno_lib = static_library( 7bf215546Sopenharmony_ci 'freedreno-gpu', 8bf215546Sopenharmony_ci sources: [ 9bf215546Sopenharmony_ci 'fd_pps_driver.cc', 10bf215546Sopenharmony_ci 'fd_pps_driver.h', 11bf215546Sopenharmony_ci freedreno_xml_header_files, 12bf215546Sopenharmony_ci ], 13bf215546Sopenharmony_ci include_directories: [ 14bf215546Sopenharmony_ci inc_tool, 15bf215546Sopenharmony_ci inc_src, 16bf215546Sopenharmony_ci inc_freedreno, 17bf215546Sopenharmony_ci inc_include, 18bf215546Sopenharmony_ci ], 19bf215546Sopenharmony_ci dependencies: [ 20bf215546Sopenharmony_ci dep_libdrm, 21bf215546Sopenharmony_ci dep_perfetto, 22bf215546Sopenharmony_ci dep_valgrind, 23bf215546Sopenharmony_ci ], 24bf215546Sopenharmony_ci override_options: ['cpp_std=c++17'] 25bf215546Sopenharmony_ci) 26bf215546Sopenharmony_ci 27bf215546Sopenharmony_cipps_freedreno_dep = declare_dependency( 28bf215546Sopenharmony_ci link_with: [ 29bf215546Sopenharmony_ci pps_freedreno_lib, 30bf215546Sopenharmony_ci libfreedreno_common, 31bf215546Sopenharmony_ci libfreedreno_drm, 32bf215546Sopenharmony_ci libfreedreno_perfcntrs, 33bf215546Sopenharmony_ci ], 34bf215546Sopenharmony_ci dependencies: [ 35bf215546Sopenharmony_ci idep_mesautil, 36bf215546Sopenharmony_ci ], 37bf215546Sopenharmony_ci include_directories: [ 38bf215546Sopenharmony_ci inc_tool, 39bf215546Sopenharmony_ci inc_src, 40bf215546Sopenharmony_ci ], 41bf215546Sopenharmony_ci compile_args: [ 42bf215546Sopenharmony_ci '-DPPS_FREEDRENO', 43bf215546Sopenharmony_ci ], 44bf215546Sopenharmony_ci) 45bf215546Sopenharmony_ci 46bf215546Sopenharmony_cipps_datasources += pps_freedreno_dep 47bf215546Sopenharmony_cipps_includes += [ 48bf215546Sopenharmony_ci inc_include, 49bf215546Sopenharmony_ci inc_freedreno, 50bf215546Sopenharmony_ci] 51