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 'defines': [ 18 '_VARIADIC_MAX=10', 19 ], 20 'direct_dependent_settings': { 21 'defines': [ 22 '_VARIADIC_MAX=10', 23 ], 24 }, 25 }, 26 { 27 'target_name': 'gmock', 28 'type': 'static_library', 29 'include_dirs': [ 30 '../third_party/googlemock', 31 '../third_party/googlemock/include', 32 '../third_party/googletest/include', 33 ], 34 'sources': [ 35 '../third_party/googlemock/src/gmock-all.cc', 36 ], 37 'defines': [ 38 '_VARIADIC_MAX=10', 39 ], 40 'direct_dependent_settings': { 41 'defines': [ 42 '_VARIADIC_MAX=10', 43 ], 44 }, 45 }, 46 { 47 'target_name': 'preprocessor_tests', 48 'type': 'executable', 49 'dependencies': [ 50 '../src/build_angle.gyp:preprocessor', 51 'gtest', 52 'gmock', 53 ], 54 'variables': { 55 'ANGLE_DIR': '..', 56 }, 57 'includes': [ 58 'preprocessor_tests/preprocessor_tests.gypi', 59 ], 60 'include_dirs': [ 61 '../src/compiler/preprocessor', 62 '../third_party/googletest/include', 63 '../third_party/googlemock/include', 64 ], 65 'sources': [ 66 '../third_party/googlemock/src/gmock_main.cc', 67 ], 68 }, 69 { 70 'target_name': 'compiler_tests', 71 'type': 'executable', 72 'dependencies': [ 73 '../src/build_angle.gyp:translator_static', 74 'gtest', 75 'gmock', 76 ], 77 'variables': { 78 'ANGLE_DIR': '..', 79 }, 80 'includes': [ 81 'compiler_tests/compiler_tests.gypi', 82 ], 83 'include_dirs': [ 84 '../include', 85 '../src', 86 '../third_party/googletest/include', 87 '../third_party/googlemock/include', 88 ], 89 'sources': [ 90 'compiler_tests/compiler_test_main.cpp', 91 ], 92 }, 93 ], 94} 95 96# Local Variables: 97# tab-width:2 98# indent-tabs-mode:nil 99# End: 100# vim: set expandtab tabstop=2 shiftwidth=2: 101