Hash :
4a9e236b
Author :
Date :
2013-10-17T10:31:32
Fixed issues compiling gtest in using the visual studio 2012 compiler.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets':
[
{
'target_name': 'gtest',
'type': 'static_library',
'include_dirs':
[
'third_party/googletest',
'third_party/googletest/include',
],
'sources':
[
'third_party/googletest/src/gtest-all.cc',
],
'defines':
[
'_VARIADIC_MAX=10',
],
'direct_dependent_settings':
{
'defines':
[
'_VARIADIC_MAX=10',
],
},
},
{
'target_name': 'gmock',
'type': 'static_library',
'include_dirs':
[
'third_party/googlemock',
'third_party/googlemock/include',
'third_party/googletest/include',
],
'sources':
[
'third_party/googlemock/src/gmock-all.cc',
],
'defines':
[
'_VARIADIC_MAX=10',
],
'direct_dependent_settings':
{
'defines':
[
'_VARIADIC_MAX=10',
],
},
},
{
'target_name': 'preprocessor_tests',
'type': 'executable',
'dependencies':
[
'../src/angle.gyp:preprocessor',
'gtest',
'gmock',
],
'include_dirs':
[
'../src/compiler/preprocessor',
'third_party/googletest/include',
'third_party/googlemock/include',
],
'sources':
[
'<!@(python enumerate_files.py preprocessor_tests -types *.cpp *.h)'
],
},
{
'target_name': 'compiler_tests',
'type': 'executable',
'dependencies':
[
'../src/angle.gyp:translator_static',
'gtest',
'gmock',
],
'include_dirs':
[
'../include',
'../src',
'third_party/googletest/include',
'third_party/googlemock/include',
],
'sources':
[
'<!@(python enumerate_files.py compiler_tests -types *.cpp *.h)'
],
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: