1 # Copyright (c) 2012 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 5 { 6 'targets': [ 7 { 8 'target_name': 'gtest', 9 'type': 'static_library', 10 'include_dirs': [ 11 '../third_party/googletest', 12 '../third_party/googletest/include', 13 ], 14 'sources': [ 15 '../third_party/googletest/src/gtest-all.cc', 16 ], 17 }, 18 { 19 'target_name': 'gmock', 20 'type': 'static_library', 21 'include_dirs': [ 22 '../third_party/googlemock', 23 '../third_party/googlemock/include', 24 '../third_party/googletest/include', 25 ], 26 'sources': [ 27 '../third_party/googlemock/src/gmock-all.cc', 28 ], 29 }, 30 { 31 'target_name': 'preprocessor_tests', 32 'type': 'executable', 33 'dependencies': [ 34 '../src/build_angle.gyp:preprocessor', 35 'gtest', 36 'gmock', 37 ], 38 'include_dirs': [ 39 '../src/compiler/preprocessor', 40 '../third_party/googletest/include', 41 '../third_party/googlemock/include', 42 ], 43 'sources': [ 44 '../third_party/googlemock/src/gmock_main.cc', 45 'preprocessor_tests/char_test.cpp', 46 'preprocessor_tests/comment_test.cpp', 47 'preprocessor_tests/define_test.cpp', 48 'preprocessor_tests/error_test.cpp', 49 'preprocessor_tests/extension_test.cpp', 50 'preprocessor_tests/identifier_test.cpp', 51 'preprocessor_tests/if_test.cpp', 52 'preprocessor_tests/input_test.cpp', 53 'preprocessor_tests/location_test.cpp', 54 'preprocessor_tests/MockDiagnostics.h', 55 'preprocessor_tests/MockDirectiveHandler.h', 56 'preprocessor_tests/number_test.cpp', 57 'preprocessor_tests/operator_test.cpp', 58 'preprocessor_tests/pragma_test.cpp', 59 'preprocessor_tests/PreprocessorTest.cpp', 60 'preprocessor_tests/PreprocessorTest.h', 61 'preprocessor_tests/space_test.cpp', 62 'preprocessor_tests/token_test.cpp', 63 'preprocessor_tests/version_test.cpp', 64 ], 65 }, 66 { 67 'target_name': 'compiler_tests', 68 'type': 'executable', 69 'dependencies': [ 70 '../src/build_angle.gyp:translator_glsl', 71 'gtest', 72 'gmock', 73 ], 74 'include_dirs': [ 75 '../include', 76 '../src', 77 '../third_party/googletest/include', 78 '../third_party/googlemock/include', 79 ], 80 'sources': [ 81 '../third_party/googlemock/src/gmock_main.cc', 82 'compiler_tests/ExpressionLimit_test.cpp', 83 'compiler_tests/VariablePacker_test.cpp', 84 ], 85 }, 86 ], 87 } 88 89 # Local Variables: 90 # tab-width:2 91 # indent-tabs-mode:nil 92 # End: 93 # vim: set expandtab tabstop=2 shiftwidth=2: 94