| 1 |
# Copyright © 2017 Dylan Baker |
| 2 |
# SPDX-License-Identifier: MIT |
| 3 |
|
| 4 |
libradeonwinsys_deps = [idep_mesautil, dep_libdrm] |
| 5 |
libradeonwinsys_c_args = [] |
| 6 |
amd_common_libs = [] |
| 7 |
|
| 8 |
if with_gallium_radeonsi |
| 9 |
libradeonwinsys_deps += [idep_amd_generated_headers] |
| 10 |
libradeonwinsys_c_args = ['-DHAVE_GALLIUM_RADEONSI'] |
| 11 |
amd_common_libs += [libamd_common] |
| 12 |
endif |
| 13 |
|
| 14 |
libradeonwinsys = static_library( |
| 15 |
'radeonwinsys', |
| 16 |
files('radeon_drm_bo.c', |
| 17 |
'radeon_drm_bo.h', |
| 18 |
'radeon_drm_cs.c', |
| 19 |
'radeon_drm_cs.h', |
| 20 |
'radeon_drm_surface.c', |
| 21 |
'radeon_drm_winsys.c', |
| 22 |
'radeon_drm_winsys.h', |
| 23 |
'radeon_surface.c', |
| 24 |
'radeon_surface.h'), |
| 25 |
include_directories : [inc_src, inc_include, inc_gallium, inc_gallium_aux], |
| 26 |
gnu_symbol_visibility : 'hidden', |
| 27 |
link_with : amd_common_libs, |
| 28 |
c_args : libradeonwinsys_c_args, |
| 29 |
dependencies : libradeonwinsys_deps, |
| 30 |
) |