1# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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 14# deqp framwork delib decpp build 15 16import("//build/ohos.gni") 17import("//third_party/vk-gl-cts/vk_gl_cts.gni") 18 19config("deqp_delib_decpp_config") { 20 cflags_cc = deqp_common_cflags_cc 21 22 defines = deqp_common_defines 23 defines += [ 24 "_XOPEN_SOURCE=600" 25 ] 26} 27 28ohos_source_set("deqp_delib_decpp_source") { 29 sources = [ 30 "//third_party/vk-gl-cts/framework/delibs/decpp/deCommandLine.cpp", 31 "//third_party/vk-gl-cts/framework/delibs/decpp/deSemaphore.cpp", 32 "//third_party/vk-gl-cts/framework/delibs/decpp/deThreadLocal.cpp", 33 "//third_party/vk-gl-cts/framework/delibs/decpp/deDefs.cpp", 34 "//third_party/vk-gl-cts/framework/delibs/decpp/deSha1.cpp", 35 "//third_party/vk-gl-cts/framework/delibs/decpp/deThreadSafeRingBuffer.cpp", 36 "//third_party/vk-gl-cts/framework/delibs/decpp/deDirectoryIterator.cpp", 37 "//third_party/vk-gl-cts/framework/delibs/decpp/deSharedPtr.cpp", 38 "//third_party/vk-gl-cts/framework/delibs/decpp/deUniquePtr.cpp", 39 "//third_party/vk-gl-cts/framework/delibs/decpp/deDynamicLibrary.cpp", 40 "//third_party/vk-gl-cts/framework/delibs/decpp/dePoolArray.cpp", 41 "//third_party/vk-gl-cts/framework/delibs/decpp/deSocket.cpp", 42 "//third_party/vk-gl-cts/framework/delibs/decpp/deAppendList.cpp", 43 "//third_party/vk-gl-cts/framework/delibs/decpp/deFilePath.cpp", 44 "//third_party/vk-gl-cts/framework/delibs/decpp/dePoolString.cpp", 45 "//third_party/vk-gl-cts/framework/delibs/decpp/deSpinBarrier.cpp", 46 "//third_party/vk-gl-cts/framework/delibs/decpp/deArrayBuffer.cpp", 47 "//third_party/vk-gl-cts/framework/delibs/decpp/deMemPool.cpp", 48 "//third_party/vk-gl-cts/framework/delibs/decpp/deProcess.cpp", 49 "//third_party/vk-gl-cts/framework/delibs/decpp/deSTLUtil.cpp", 50 "//third_party/vk-gl-cts/framework/delibs/decpp/deArrayUtil.cpp", 51 "//third_party/vk-gl-cts/framework/delibs/decpp/deMeta.cpp", 52 "//third_party/vk-gl-cts/framework/delibs/decpp/deRandom.cpp", 53 "//third_party/vk-gl-cts/framework/delibs/decpp/deStringUtil.cpp", 54 "//third_party/vk-gl-cts/framework/delibs/decpp/deBlockBuffer.cpp", 55 "//third_party/vk-gl-cts/framework/delibs/decpp/deMutex.cpp", 56 "//third_party/vk-gl-cts/framework/delibs/decpp/deRingBuffer.cpp", 57 "//third_party/vk-gl-cts/framework/delibs/decpp/deThread.cpp", 58 ] 59 60 include_dirs = deqp_common_include_dirs 61 62 deps = [ 63 "//third_party/vk-gl-cts/framework/delibs/debase:libdeqp_debase", 64 "//third_party/vk-gl-cts/framework/delibs/dethread:libdeqp_dethread", 65 "//third_party/vk-gl-cts/framework/delibs/deutil:libdeqp_deutil", 66 "//third_party/vk-gl-cts/framework/delibs/depool:libdeqp_depool", 67 ] 68 69 configs = [ ":deqp_delib_decpp_config" ] 70} 71 72ohos_static_library("libdeqp_decpp") { 73 deps = [ ":deqp_delib_decpp_source" ] 74 part_name = "graphic_standard" 75 subsystem_name = "graphic" 76} 77 78