1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//third_party/vk-gl-cts/vk_gl_cts.gni") 16 17config("deqp_spirvtool_lint_config") { 18 cflags_cc = deqp_common_cflags_cc 19 cflags_cc += [ "-ftemplate-depth=1024" ] 20 defines = deqp_common_defines 21 defines += [ 22 "SPIRV_CHECK_CONTEXT", 23 "SPIRV_COLOR_TERMINAL", 24 "SPIRV_LINUX", 25 "SPIRV_TIMER_ENABLED", 26 ] 27} 28 29ohos_source_set("deqp_spirvtool_lint_source") { 30 sources = [ 31 "//third_party/spirv-tools/source/lint/divergence_analysis.cpp", 32 "//third_party/spirv-tools/source/lint/lint_divergent_derivatives.cpp", 33 "//third_party/spirv-tools/source/lint/linter.cpp", 34 ] 35 36 include_dirs = deqp_common_include_dirs 37 include_dirs += [ 38 "//third_party/spirv-tools", 39 "//third_party/vk-gl-cts/build/external/spirv-tools/spirv-tools", 40 "//third_party/spirv-headers/include", 41 "//third_party/spirv-headers/include/spirv/unified1", 42 "//third_party/spirv-tools/include", 43 ] 44 45 configs = [ ":deqp_spirvtool_lint_config" ] 46} 47 48ohos_static_library("libdeqp_spirvtools-lint") { 49 deps = [ 50 ":deqp_spirvtool_lint_source", 51 "//third_party/spirv-tools:libdeqp_spirvtools", 52 "//third_party/spirv-tools/source/opt:libdeqp_spirvtools-opt", 53 ] 54 part_name = "graphic_2d" 55 subsystem_name = "graphic" 56} 57