1*61046927SAndroid Build Coastguard Worker# Copyright © 2019 Intel Corporation 2*61046927SAndroid Build Coastguard Worker 3*61046927SAndroid Build Coastguard Worker# Permission is hereby granted, free of charge, to any person obtaining a copy 4*61046927SAndroid Build Coastguard Worker# of this software and associated documentation files (the "Software"), to deal 5*61046927SAndroid Build Coastguard Worker# in the Software without restriction, including without limitation the rights 6*61046927SAndroid Build Coastguard Worker# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7*61046927SAndroid Build Coastguard Worker# copies of the Software, and to permit persons to whom the Software is 8*61046927SAndroid Build Coastguard Worker# furnished to do so, subject to the following conditions: 9*61046927SAndroid Build Coastguard Worker 10*61046927SAndroid Build Coastguard Worker# The above copyright notice and this permission notice shall be included in 11*61046927SAndroid Build Coastguard Worker# all copies or substantial portions of the Software. 12*61046927SAndroid Build Coastguard Worker 13*61046927SAndroid Build Coastguard Worker# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14*61046927SAndroid Build Coastguard Worker# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15*61046927SAndroid Build Coastguard Worker# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16*61046927SAndroid Build Coastguard Worker# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17*61046927SAndroid Build Coastguard Worker# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18*61046927SAndroid Build Coastguard Worker# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19*61046927SAndroid Build Coastguard Worker# SOFTWARE. 20*61046927SAndroid Build Coastguard Worker 21*61046927SAndroid Build Coastguard Workervklayer_files = files( 22*61046927SAndroid Build Coastguard Worker 'screenshot.cpp', 23*61046927SAndroid Build Coastguard Worker 'screenshot_params.c', 24*61046927SAndroid Build Coastguard Worker) 25*61046927SAndroid Build Coastguard Worker 26*61046927SAndroid Build Coastguard Workervklayer_mesa_screenshot = shared_library( 27*61046927SAndroid Build Coastguard Worker 'VkLayer_MESA_screenshot', 28*61046927SAndroid Build Coastguard Worker vklayer_files, sha1_h, 29*61046927SAndroid Build Coastguard Worker c_args : [no_override_init_args], 30*61046927SAndroid Build Coastguard Worker gnu_symbol_visibility : 'hidden', 31*61046927SAndroid Build Coastguard Worker dependencies : [idep_vulkan_util, idep_mesautil, vulkan_wsi_deps, dep_dl, dependency('libpng')], 32*61046927SAndroid Build Coastguard Worker include_directories : [inc_include, inc_src], 33*61046927SAndroid Build Coastguard Worker link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']), 34*61046927SAndroid Build Coastguard Worker install : true 35*61046927SAndroid Build Coastguard Worker) 36*61046927SAndroid Build Coastguard Worker 37*61046927SAndroid Build Coastguard Workerinstall_data( 38*61046927SAndroid Build Coastguard Worker files('VkLayer_MESA_screenshot.json'), 39*61046927SAndroid Build Coastguard Worker install_dir : join_paths(get_option('datadir'), 'vulkan', 'explicit_layer.d'), 40*61046927SAndroid Build Coastguard Worker install_tag : 'runtime', 41*61046927SAndroid Build Coastguard Worker) 42*61046927SAndroid Build Coastguard Worker 43*61046927SAndroid Build Coastguard Workerinstall_data( 44*61046927SAndroid Build Coastguard Worker 'mesa-screenshot-control.py', 45*61046927SAndroid Build Coastguard Worker install_dir : get_option('bindir'), 46*61046927SAndroid Build Coastguard Worker install_mode : 'r-xr-xr-x', 47*61046927SAndroid Build Coastguard Worker) 48