• 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_var.gni")
15import("//build/version.gni")
16
17deqp_common_cflags_cc = [
18  "-Wextra",
19  "-Wno-long-long",
20  "-Wno-sign-conversion",
21  "-std=c++11",
22  "-Wno-delete-non-virtual-dtor",
23  "-fwrapv",
24  "-fexceptions",
25  "-frtti",
26  "-mfloat-abi=softfp",
27  "-mfpu=neon-vfpv4",
28  "-Wno-header-hygiene",
29  "-Wno-unused-command-line-argument",
30  "-Wno-implicit-function-declaration",
31  "-Wno-null-pointer-subtraction",
32]
33
34deqp_common_cflags = [
35  "-Wextra",
36  "-Wno-long-long",
37  "-Wno-sign-conversion",
38  "-std=c99",
39  "-Wno-delete-non-virtual-dtor",
40  "-fwrapv",
41  "-fexceptions",
42  "-mfloat-abi=softfp",
43  "-mfpu=neon-vfpv4",
44  "-Wno-unused-command-line-argument",
45  "-Wno-implicit-function-declaration",
46  "-Wno-null-pointer-subtraction",
47]
48
49deqp_common_defines = [
50  "DEQP_SUPPORT_DRM=0",
51  "DEQP_TARGET_NAME=\"Default\"",
52  "DE_ASSERT_FAILURE_CALLBACK",
53  "DE_COMPILER=DE_COMPILER_CLANG",
54  "DE_DEBUG",
55  "DE_MINGW=0",
56  "DE_OS=DE_OS_UNIX",
57]
58
59if (target_cpu == "arm64") {
60  deqp_common_defines += [
61    "DE_PTR_SIZE=8",
62    "DE_CPU=DE_CPU_ARM_64",
63  ]
64} else {
65  deqp_common_defines += [
66    "DE_PTR_SIZE=4",
67    "DE_CPU=DE_CPU_ARM",
68  ]
69}
70
71deqp_common_include_dirs = [
72  "//third_party/vk-gl-cts/framework/opengl",
73  "//third_party/vk-gl-cts/framework/opengl/wrapper",
74  "//third_party/vk-gl-cts/framework/opengl/simplereference",
75  "//third_party/vk-gl-cts/framework/randomshaders",
76  "//third_party/vk-gl-cts/framework/common",
77  "//third_party/vk-gl-cts/framework/xexml",
78  "//third_party/vk-gl-cts/framework/qphelper",
79  "//third_party/vk-gl-cts/framework/egl",
80  "//third_party/vk-gl-cts/framework/egl/wrapper",
81  "//third_party/vk-gl-cts/framework/referencerenderer",
82  "//third_party/vk-gl-cts/framework/delibs/decpp",
83  "//third_party/vk-gl-cts/framework/delibs/debase",
84  "//third_party/vk-gl-cts/framework/delibs/deutil",
85  "//third_party/vk-gl-cts/framework/delibs/dethread",
86  "//third_party/vk-gl-cts/framework/delibs/depool",
87  "//third_party/vk-gl-cts/framework/delibs/deimage",
88  "//third_party/vk-gl-cts/framework/delibs/destream",
89]
90deqp_vk_common_include_dirs = deqp_common_include_dirs
91deqp_vk_common_include_dirs += [
92  "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan",
93  "//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan",
94  "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan",
95]
96