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++17", 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 "-Wno-error=ignored-pragmas", 33] 34 35deqp_common_cflags = [ 36 "-Wextra", 37 "-Wno-long-long", 38 "-Wno-sign-conversion", 39 "-std=c99", 40 "-Wno-delete-non-virtual-dtor", 41 "-fwrapv", 42 "-fexceptions", 43 "-mfloat-abi=softfp", 44 "-mfpu=neon-vfpv4", 45 "-Wno-unused-command-line-argument", 46 "-Wno-implicit-function-declaration", 47 "-Wno-null-pointer-subtraction", 48] 49 50deqp_common_defines = [ 51 "CTS_USES_VULKAN", 52 "DEQP_SUPPORT_DRM=0", 53 "DEQP_TARGET_NAME=\"Default\"", 54 "DE_ASSERT_FAILURE_CALLBACK", 55 "DE_COMPILER=DE_COMPILER_CLANG", 56 "DE_DEBUG", 57 "DE_MINGW=0", 58 "DE_OS=DE_OS_UNIX", 59] 60 61if (target_cpu == "arm64") { 62 deqp_common_defines += [ 63 "DE_PTR_SIZE=8", 64 "DE_CPU=DE_CPU_ARM_64", 65 ] 66} else { 67 deqp_common_defines += [ 68 "DE_PTR_SIZE=4", 69 "DE_CPU=DE_CPU_ARM", 70 ] 71} 72 73deqp_common_include_dirs = [ 74 "//third_party/vk-gl-cts/framework/opengl", 75 "//third_party/vk-gl-cts/framework/opengl/wrapper", 76 "//third_party/vk-gl-cts/framework/opengl/simplereference", 77 "//third_party/vk-gl-cts/framework/randomshaders", 78 "//third_party/vk-gl-cts/framework/common", 79 "//third_party/vk-gl-cts/framework/xexml", 80 "//third_party/vk-gl-cts/framework/qphelper", 81 "//third_party/vk-gl-cts/framework/egl", 82 "//third_party/vk-gl-cts/framework/egl/wrapper", 83 "//third_party/vk-gl-cts/framework/referencerenderer", 84 "//third_party/vk-gl-cts/framework/delibs/decpp", 85 "//third_party/vk-gl-cts/framework/delibs/debase", 86 "//third_party/vk-gl-cts/framework/delibs/deutil", 87 "//third_party/vk-gl-cts/framework/delibs/dethread", 88 "//third_party/vk-gl-cts/framework/delibs/depool", 89 "//third_party/vk-gl-cts/framework/delibs/deimage", 90 "//third_party/vk-gl-cts/framework/delibs/destream", 91] 92deqp_vk_common_include_dirs = deqp_common_include_dirs 93deqp_vk_common_include_dirs += [ 94 "//third_party/vk-gl-cts/external/ESExtractor/src/lib", 95 "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan", 96 97 # "//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan", 98 "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan/generated/vulkan", 99 "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan", 100] 101