|
Packit |
631bab |
# Copyright © 2017-2018 Intel Corporation
|
|
Packit |
631bab |
|
|
Packit |
631bab |
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
Packit |
631bab |
# of this software and associated documentation files (the "Software"), to deal
|
|
Packit |
631bab |
# in the Software without restriction, including without limitation the rights
|
|
Packit |
631bab |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
Packit |
631bab |
# copies of the Software, and to permit persons to whom the Software is
|
|
Packit |
631bab |
# furnished to do so, subject to the following conditions:
|
|
Packit |
631bab |
|
|
Packit |
631bab |
# The above copyright notice and this permission notice shall be included in
|
|
Packit |
631bab |
# all copies or substantial portions of the Software.
|
|
Packit |
631bab |
|
|
Packit |
631bab |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
Packit |
631bab |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
Packit |
631bab |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
Packit |
631bab |
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
Packit |
631bab |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
Packit |
631bab |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
Packit |
631bab |
# SOFTWARE.
|
|
Packit |
631bab |
|
|
Packit |
631bab |
libdrm_exynos = shared_library(
|
|
Packit |
631bab |
'drm_exynos',
|
|
Packit |
631bab |
[files('exynos_drm.c', 'exynos_fimg2d.c'), config_file],
|
|
Packit |
631bab |
c_args : libdrm_c_args,
|
|
Packit |
631bab |
include_directories : [inc_root, inc_drm],
|
|
Packit |
631bab |
link_with : libdrm,
|
|
Packit |
631bab |
dependencies : [dep_pthread_stubs],
|
|
Packit |
631bab |
version : '1.0.0',
|
|
Packit |
631bab |
install : true,
|
|
Packit |
631bab |
)
|
|
Packit |
631bab |
|
|
Packit |
631bab |
install_headers('exynos_drmif.h', subdir : 'libdrm')
|
|
Packit |
631bab |
install_headers('exynos_drm.h', 'exynos_fimg2d.h', subdir : 'exynos')
|
|
Packit |
631bab |
|
|
Packit |
631bab |
ext_libdrm_exynos = declare_dependency(
|
|
Packit |
631bab |
link_with : [libdrm, libdrm_exynos],
|
|
Packit |
631bab |
include_directories : [inc_drm, include_directories('.')],
|
|
Packit |
631bab |
)
|
|
Packit |
631bab |
|
|
Packit |
631bab |
pkg.generate(
|
|
Packit |
631bab |
name : 'libdrm_exynos',
|
|
Packit |
631bab |
libraries : libdrm_exynos,
|
|
Packit |
631bab |
subdirs : ['.', 'libdrm', 'exynos'],
|
|
Packit |
631bab |
version : '0.7',
|
|
Packit |
631bab |
requires_private : 'libdrm',
|
|
Packit |
631bab |
description : 'Userspace interface to exynos kernel DRM services',
|
|
Packit |
631bab |
)
|
|
Packit |
631bab |
|
|
Packit |
631bab |
test(
|
|
Packit Service |
856e4e |
'exynos-symbols-check',
|
|
Packit Service |
856e4e |
symbols_check,
|
|
Packit Service |
856e4e |
args : [
|
|
Packit Service |
856e4e |
'--lib', libdrm_exynos,
|
|
Packit Service |
856e4e |
'--symbols-file', files('exynos-symbols.txt'),
|
|
Packit Service |
856e4e |
'--nm', prog_nm.path(),
|
|
Packit Service |
856e4e |
],
|
|
Packit |
631bab |
)
|