1*bbecb9d1SAndroid Build Coastguard Worker############################################################################# 2*bbecb9d1SAndroid Build Coastguard Worker# 3*bbecb9d1SAndroid Build Coastguard Worker# Copyright (C) 2019 Collabora Ltd 4*bbecb9d1SAndroid Build Coastguard Worker# 5*bbecb9d1SAndroid Build Coastguard Worker# Permission is hereby granted, free of charge, to any person obtaining a 6*bbecb9d1SAndroid Build Coastguard Worker# copy of this software and associated documentation files (the "Software"), 7*bbecb9d1SAndroid Build Coastguard Worker# to deal in the Software without restriction, including without limitation 8*bbecb9d1SAndroid Build Coastguard Worker# the rights to use, copy, modify, merge, publish, distribute, sublicense, 9*bbecb9d1SAndroid Build Coastguard Worker# and/or sell copies of the Software, and to permit persons to whom the 10*bbecb9d1SAndroid Build Coastguard Worker# Software is furnished to do so, subject to the following conditions: 11*bbecb9d1SAndroid Build Coastguard Worker# 12*bbecb9d1SAndroid Build Coastguard Worker# The above copyright notice and this permission notice shall be included 13*bbecb9d1SAndroid Build Coastguard Worker# in all copies or substantial portions of the Software. 14*bbecb9d1SAndroid Build Coastguard Worker# 15*bbecb9d1SAndroid Build Coastguard Worker# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16*bbecb9d1SAndroid Build Coastguard Worker# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17*bbecb9d1SAndroid Build Coastguard Worker# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18*bbecb9d1SAndroid Build Coastguard Worker# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 19*bbecb9d1SAndroid Build Coastguard Worker# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20*bbecb9d1SAndroid Build Coastguard Worker# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21*bbecb9d1SAndroid Build Coastguard Worker# OTHER DEALINGS IN THE SOFTWARE. 22*bbecb9d1SAndroid Build Coastguard Worker# 23*bbecb9d1SAndroid Build Coastguard Worker 24*bbecb9d1SAndroid Build Coastguard Workerassert(cc.has_argument('-fsanitize=fuzzer'), 25*bbecb9d1SAndroid Build Coastguard Worker 'Fuzzer enabled but compiler does not support "-fsanitize=fuzzer"') 26*bbecb9d1SAndroid Build Coastguard Worker 27*bbecb9d1SAndroid Build Coastguard Workervirgl_fuzzer = executable( 28*bbecb9d1SAndroid Build Coastguard Worker 'virgl_fuzzer', 29*bbecb9d1SAndroid Build Coastguard Worker 'virgl_fuzzer.c', 30*bbecb9d1SAndroid Build Coastguard Worker c_args : [ '-fsanitize=fuzzer' ], 31*bbecb9d1SAndroid Build Coastguard Worker link_args : [ '-fsanitize=fuzzer' ], 32*bbecb9d1SAndroid Build Coastguard Worker dependencies : [libvirglrenderer_dep, gallium_dep, epoxy_dep] 33*bbecb9d1SAndroid Build Coastguard Worker) 34*bbecb9d1SAndroid Build Coastguard Worker 35*bbecb9d1SAndroid Build Coastguard Workerif with_drm 36*bbecb9d1SAndroid Build Coastguard Worker virgl_drm_fuzzer = executable( 37*bbecb9d1SAndroid Build Coastguard Worker 'virgl_drm_fuzzer', 38*bbecb9d1SAndroid Build Coastguard Worker 'virgl_drm_fuzzer.c', 39*bbecb9d1SAndroid Build Coastguard Worker c_args : [ '-fsanitize=fuzzer' ], 40*bbecb9d1SAndroid Build Coastguard Worker link_args : [ '-fsanitize=fuzzer' ], 41*bbecb9d1SAndroid Build Coastguard Worker dependencies : [libvirglrenderer_dep] 42*bbecb9d1SAndroid Build Coastguard Worker ) 43*bbecb9d1SAndroid Build Coastguard Workerendif 44