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