• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/linter.cpp",
33  ]
34
35  include_dirs = deqp_common_include_dirs
36  include_dirs += [
37    "//third_party/spirv-tools",
38    "//third_party/vk-gl-cts/build/external/spirv-tools/spirv-tools",
39    "//third_party/spirv-headers/include",
40    "//third_party/spirv-tools/include",
41  ]
42
43  configs = [ ":deqp_spirvtool_lint_config" ]
44}
45
46ohos_static_library("libdeqp_spirvtools-lint") {
47  deps = [
48    ":deqp_spirvtool_lint_source",
49    "//third_party/spirv-tools:libdeqp_spirvtools",
50    "//third_party/spirv-tools/source/opt:libdeqp_spirvtools-opt",
51  ]
52  part_name = "graphic_standard"
53  subsystem_name = "graphic"
54}
55