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