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 += [ "_XOPEN_SOURCE=600" ] 24} 25 26ohos_source_set("deqp_delib_decpp_source") { 27 sources = [ 28 "//third_party/vk-gl-cts/framework/delibs/decpp/deAppendList.cpp", 29 "//third_party/vk-gl-cts/framework/delibs/decpp/deArrayBuffer.cpp", 30 "//third_party/vk-gl-cts/framework/delibs/decpp/deArrayUtil.cpp", 31 "//third_party/vk-gl-cts/framework/delibs/decpp/deBlockBuffer.cpp", 32 "//third_party/vk-gl-cts/framework/delibs/decpp/deCommandLine.cpp", 33 "//third_party/vk-gl-cts/framework/delibs/decpp/deDefs.cpp", 34 "//third_party/vk-gl-cts/framework/delibs/decpp/deDirectoryIterator.cpp", 35 "//third_party/vk-gl-cts/framework/delibs/decpp/deDynamicLibrary.cpp", 36 "//third_party/vk-gl-cts/framework/delibs/decpp/deFilePath.cpp", 37 "//third_party/vk-gl-cts/framework/delibs/decpp/deMemPool.cpp", 38 "//third_party/vk-gl-cts/framework/delibs/decpp/deMeta.cpp", 39 "//third_party/vk-gl-cts/framework/delibs/decpp/deMutex.cpp", 40 "//third_party/vk-gl-cts/framework/delibs/decpp/dePoolArray.cpp", 41 "//third_party/vk-gl-cts/framework/delibs/decpp/dePoolString.cpp", 42 "//third_party/vk-gl-cts/framework/delibs/decpp/deProcess.cpp", 43 "//third_party/vk-gl-cts/framework/delibs/decpp/deRandom.cpp", 44 "//third_party/vk-gl-cts/framework/delibs/decpp/deRingBuffer.cpp", 45 "//third_party/vk-gl-cts/framework/delibs/decpp/deSTLUtil.cpp", 46 "//third_party/vk-gl-cts/framework/delibs/decpp/deSemaphore.cpp", 47 "//third_party/vk-gl-cts/framework/delibs/decpp/deSha1.cpp", 48 "//third_party/vk-gl-cts/framework/delibs/decpp/deSharedPtr.cpp", 49 "//third_party/vk-gl-cts/framework/delibs/decpp/deSocket.cpp", 50 "//third_party/vk-gl-cts/framework/delibs/decpp/deSpinBarrier.cpp", 51 "//third_party/vk-gl-cts/framework/delibs/decpp/deStringUtil.cpp", 52 "//third_party/vk-gl-cts/framework/delibs/decpp/deThread.cpp", 53 "//third_party/vk-gl-cts/framework/delibs/decpp/deThreadLocal.cpp", 54 "//third_party/vk-gl-cts/framework/delibs/decpp/deThreadSafeRingBuffer.cpp", 55 "//third_party/vk-gl-cts/framework/delibs/decpp/deUniquePtr.cpp", 56 ] 57 58 include_dirs = deqp_common_include_dirs 59 60 deps = [ 61 "//third_party/vk-gl-cts/framework/delibs/debase:libdeqp_debase", 62 "//third_party/vk-gl-cts/framework/delibs/depool:libdeqp_depool", 63 "//third_party/vk-gl-cts/framework/delibs/dethread:libdeqp_dethread", 64 "//third_party/vk-gl-cts/framework/delibs/deutil:libdeqp_deutil", 65 ] 66 part_name = "acts" 67 subsystem_name = "xts" 68 configs = [ ":deqp_delib_decpp_config" ] 69} 70 71ohos_static_library("libdeqp_decpp") { 72 deps = [ ":deqp_delib_decpp_source" ] 73 part_name = "graphic_2d" 74 subsystem_name = "graphic" 75} 76