1# Copyright 2024 The ANGLE Project Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//gni/angle.gni") 6 7config("test_common_config") { 8 include_dirs = [ 9 "$angle_root/third_party/OpenCL-CTS/src/test_common", 10 "$angle_root/third_party/OpenCL-CTS/src/test_common/autotest", 11 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness", 12 "$angle_root/third_party/OpenCL-CTS/src/test_common/miniz", 13 "$angle_root/third_party/OpenCL-ICD-Loader/src/loader", 14 ] 15} 16 17source_set("test_common") { 18 cflags = [ 19 "-Wno-deprecated-declarations", 20 "-Wno-#warnings", 21 "-Wno-format", 22 "-Wno-vla-cxx-extension", 23 "-Wno-deprecated-volatile", 24 "-Wno-c++11-narrowing", 25 ] 26 27 defines = [ "CL_TARGET_OPENCL_VERSION=300" ] 28 29 sources = [ 30 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/ThreadPool.cpp", 31 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/conversions.cpp", 32 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/crc32.cpp", 33 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/deviceInfo.cpp", 34 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/errorHelpers.cpp", 35 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/featureHelpers.cpp", 36 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/genericThread.cpp", 37 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/imageHelpers.cpp", 38 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/kernelHelpers.cpp", 39 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/mingw_compat.c", 40 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/msvc9.c", 41 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/mt19937.cpp", 42 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/os_helpers.cpp", 43 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/parseParameters.cpp", 44 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/propertyHelpers.cpp", 45 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/rounding_mode.cpp", 46 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/testHarness.cpp", 47 "$angle_root/third_party/OpenCL-CTS/src/test_common/harness/typeWrappers.cpp", 48 "$angle_root/third_party/OpenCL-CTS/src/test_common/miniz/miniz.c", 49 ] 50 51 configs += [ ":test_common_config" ] 52 53 deps = [ 54 "$angle_root:cl_includes", 55 "$angle_root/third_party/OpenCL-ICD-Loader:opencl_icd_loader", 56 ] 57 58 configs -= [ "//build/config/compiler:chromium_code" ] 59 configs -= [ "//build/config/compiler:no_exceptions" ] 60} 61