• 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_link_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_link_source") {
30  sources = [ "//third_party/spirv-tools/source/link/linker.cpp" ]
31
32  include_dirs = deqp_common_include_dirs
33  include_dirs += [
34    "//third_party/spirv-tools",
35    "//third_party/vk-gl-cts/build/external/spirv-tools/spirv-tools",
36    "//third_party/spirv-headers/include",
37    "//third_party/spirv-headers/include/spirv/unified1",
38    "//third_party/spirv-tools/include",
39  ]
40
41  configs = [ ":deqp_spirvtool_link_config" ]
42}
43
44ohos_static_library("libdeqp_spirvtools-link") {
45  deps = [
46    ":deqp_spirvtool_link_source",
47    "//third_party/spirv-tools:libdeqp_spirvtools",
48    "//third_party/spirv-tools/source/opt:libdeqp_spirvtools-opt",
49  ]
50  part_name = "graphic_2d"
51  subsystem_name = "graphic"
52}
53