1# Copyright 2015 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 7angle_unittests_sources = [ 8 "../../util/test_utils_unittest.cpp", 9 "../../util/test_utils_unittest_helper.h", 10 "../common/BinaryStream_unittest.cpp", 11 "../common/CircularBuffer_unittest.cpp", 12 "../common/FastVector_unittest.cpp", 13 "../common/FixedQueue_unittest.cpp", 14 "../common/FixedVector_unittest.cpp", 15 "../common/Optional_unittest.cpp", 16 "../common/PoolAlloc_unittest.cpp", 17 "../common/SimpleMutex_unittest.cpp", 18 "../common/WorkerThread_unittest.cpp", 19 "../common/aligned_memory_unittest.cpp", 20 "../common/angleutils_unittest.cpp", 21 "../common/bitset_utils_unittest.cpp", 22 "../common/hash_utils_unittest.cpp", 23 "../common/mathutil_unittest.cpp", 24 "../common/matrix_utils_unittest.cpp", 25 "../common/string_utils_unittest.cpp", 26 "../common/system_utils_unittest.cpp", 27 "../common/utilities_unittest.cpp", 28 "../common/vector_utils_unittest.cpp", 29 "../compiler/translator/span_unittest.cpp", 30 "../feature_support_util/feature_support_util_unittest.cpp", 31 "../gpu_info_util/SystemInfo_unittest.cpp", 32 "../image_util/AstcDecompressorTestUtils.h", 33 "../image_util/AstcDecompressor_unittest.cpp", 34 "../image_util/LoadToNative_unittest.cpp", 35 "../libANGLE/BlendStateExt_unittest.cpp", 36 "../libANGLE/BlobCache_unittest.cpp", 37 "../libANGLE/Config_unittest.cpp", 38 "../libANGLE/ContextMutex_unittest.cpp", 39 "../libANGLE/Decompress_unittest.cpp", 40 "../libANGLE/Fence_unittest.cpp", 41 "../libANGLE/GlobalMutex_unittest.cpp", 42 "../libANGLE/HandleAllocator_unittest.cpp", 43 "../libANGLE/ImageIndexIterator_unittest.cpp", 44 "../libANGLE/Image_unittest.cpp", 45 "../libANGLE/Observer_unittest.cpp", 46 "../libANGLE/Program_unittest.cpp", 47 "../libANGLE/ResourceManager_unittest.cpp", 48 "../libANGLE/ResourceMap_unittest.cpp", 49 "../libANGLE/SizedMRUCache_unittest.cpp", 50 "../libANGLE/Surface_unittest.cpp", 51 "../libANGLE/TransformFeedback_unittest.cpp", 52 "../libANGLE/UnlockedTailCall_unittest.cpp", 53 "../libANGLE/VaryingPacking_unittest.cpp", 54 "../libANGLE/VertexArray_unittest.cpp", 55 "../libANGLE/renderer/BufferImpl_mock.h", 56 "../libANGLE/renderer/FramebufferImpl_mock.h", 57 "../libANGLE/renderer/ImageImpl_mock.h", 58 "../libANGLE/renderer/ProgramImpl_mock.h", 59 "../libANGLE/renderer/RenderbufferImpl_mock.h", 60 "../libANGLE/renderer/TextureImpl_mock.h", 61 "../libANGLE/renderer/TransformFeedbackImpl_mock.h", 62 "../libANGLE/renderer/serial_utils_unittest.cpp", 63 "angle_unittests_utils.h", 64 "preprocessor_tests/MockDiagnostics.h", 65 "preprocessor_tests/MockDirectiveHandler.h", 66 "preprocessor_tests/PreprocessorTest.cpp", 67 "preprocessor_tests/PreprocessorTest.h", 68 "preprocessor_tests/char_test.cpp", 69 "preprocessor_tests/comment_test.cpp", 70 "preprocessor_tests/define_test.cpp", 71 "preprocessor_tests/error_test.cpp", 72 "preprocessor_tests/extension_test.cpp", 73 "preprocessor_tests/identifier_test.cpp", 74 "preprocessor_tests/if_test.cpp", 75 "preprocessor_tests/input_test.cpp", 76 "preprocessor_tests/location_test.cpp", 77 "preprocessor_tests/number_test.cpp", 78 "preprocessor_tests/operator_test.cpp", 79 "preprocessor_tests/pragma_test.cpp", 80 "preprocessor_tests/space_test.cpp", 81 "preprocessor_tests/token_test.cpp", 82 "preprocessor_tests/version_test.cpp", 83 "test_expectations/GPUTestExpectationsParser_unittest.cpp", 84 "test_utils/ShaderExtensionTest.h", 85 "test_utils/angle_test_instantiate.h", 86 "test_utils/compiler_test.cpp", 87 "test_utils/compiler_test.h", 88] 89 90angle_unittests_compiler_tests_sources = [ 91 "compiler_tests/API_test.cpp", 92 "compiler_tests/APPLE_clip_distance_test.cpp", 93 "compiler_tests/ARB_texture_rectangle_test.cpp", 94 "compiler_tests/AppendixALimitations_test.cpp", 95 "compiler_tests/AtomicCounter_test.cpp", 96 "compiler_tests/BufferVariables_test.cpp", 97 "compiler_tests/CollectVariables_test.cpp", 98 "compiler_tests/ConstantFoldingNaN_test.cpp", 99 "compiler_tests/ConstantFoldingOverflow_test.cpp", 100 "compiler_tests/ConstantFolding_test.cpp", 101 "compiler_tests/ConstructCompiler_test.cpp", 102 "compiler_tests/EXT_YUV_target_test.cpp", 103 "compiler_tests/EXT_blend_func_extended_test.cpp", 104 "compiler_tests/EXT_clip_cull_distance_test.cpp", 105 "compiler_tests/EXT_frag_depth_test.cpp", 106 "compiler_tests/EXT_shader_framebuffer_fetch_test.cpp", 107 "compiler_tests/EXT_shader_texture_lod_test.cpp", 108 "compiler_tests/EXT_shadow_samplers_test.cpp", 109 "compiler_tests/EmulateGLBaseVertexBaseInstance_test.cpp", 110 "compiler_tests/EmulateGLDrawID_test.cpp", 111 "compiler_tests/EmulateGLFragColorBroadcast_test.cpp", 112 "compiler_tests/ExpressionLimit_test.cpp", 113 "compiler_tests/ExtensionDirective_test.cpp", 114 "compiler_tests/FloatLex_test.cpp", 115 "compiler_tests/FragDepth_test.cpp", 116 "compiler_tests/GLSLCompatibilityOutput_test.cpp", 117 "compiler_tests/GeometryShader_test.cpp", 118 "compiler_tests/GlFragDataNotModified_test.cpp", 119 "compiler_tests/ImmutableString_test.cpp", 120 "compiler_tests/InitOutputVariables_test.cpp", 121 "compiler_tests/InitializeUninitializedLocals_test.cpp", 122 "compiler_tests/IntermNode_test.cpp", 123 "compiler_tests/KHR_blend_equation_advanced_test.cpp", 124 "compiler_tests/NV_draw_buffers_test.cpp", 125 "compiler_tests/OES_sample_variables_test.cpp", 126 "compiler_tests/OES_standard_derivatives_test.cpp", 127 "compiler_tests/OES_texture_cube_map_array_test.cpp", 128 "compiler_tests/OVR_multiview2_test.cpp", 129 "compiler_tests/OVR_multiview_test.cpp", 130 "compiler_tests/Pack_Unpack_test.cpp", 131 "compiler_tests/Parse_test.cpp", 132 "compiler_tests/PruneEmptyCases_test.cpp", 133 "compiler_tests/PruneEmptyDeclarations_test.cpp", 134 "compiler_tests/PruneNoOps_test.cpp", 135 "compiler_tests/PrunePureLiteralStatements_test.cpp", 136 "compiler_tests/PruneUnusedFunctions_test.cpp", 137 "compiler_tests/QualificationOrderESSL31_test.cpp", 138 "compiler_tests/QualificationOrder_test.cpp", 139 "compiler_tests/RecordConstantPrecision_test.cpp", 140 "compiler_tests/RegenerateStructNames_test.cpp", 141 "compiler_tests/RemoveUnreferencedVariables_test.cpp", 142 "compiler_tests/SamplerMultisample_test.cpp", 143 "compiler_tests/SamplerVideoWEBGL_test.cpp", 144 "compiler_tests/SeparateDeclarations_test.cpp", 145 "compiler_tests/ShCompile_test.cpp", 146 "compiler_tests/ShaderImage_test.cpp", 147 "compiler_tests/ShaderValidation_test.cpp", 148 "compiler_tests/ShaderVariable_test.cpp", 149 "compiler_tests/SimplifyLoopConditions_test.cpp", 150 "compiler_tests/TextureFunction_test.cpp", 151 "compiler_tests/TypeTracking_test.cpp", 152 "compiler_tests/Type_test.cpp", 153 "compiler_tests/VariablePacker_test.cpp", 154 "compiler_tests/WorkGroupSize_test.cpp", 155 "test_utils/ConstantFoldingTest.cpp", 156 "test_utils/ConstantFoldingTest.h", 157 "test_utils/ShaderCompileTreeTest.cpp", 158 "test_utils/ShaderCompileTreeTest.h", 159] 160 161angle_unittests_glsl_mac_sources = [ 162 "compiler_tests/RewriteDoWhile_test.cpp", 163 "compiler_tests/UnfoldShortCircuitAST_test.cpp", 164] 165 166# TODO(jmadill): should probably call this windows sources 167angle_unittests_hlsl_sources = [ 168 "compiler_tests/HLSLOutput_test.cpp", 169 "compiler_tests/UnrollFlatten_test.cpp", 170] 171 172angle_unittests_gl_sources = 173 [ "../libANGLE/renderer/gl/DisplayGL_unittest.cpp" ] 174 175angle_unittests_msl_sources = [ "../tests/compiler_tests/MSLOutput_test.cpp" ] 176 177angle_unittests_wgsl_sources = [ "../tests/compiler_tests/WGSLOutput_test.cpp" ] 178 179angle_unittests_sources += [ "compiler_tests/ImmutableString_test_autogen.cpp" ] 180 181if (!is_android && !is_fuchsia && !is_ios) { 182 angle_unittests_sources += [ "test_utils/runner/TestSuite_unittest.cpp" ] 183} 184