| OLD | NEW |
| (Empty) |
| 1 # Copyright (C) 2013 Google Inc. | |
| 2 # | |
| 3 # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 # you may not use this file except in compliance with the License. | |
| 5 # You may obtain a copy of the License at | |
| 6 # | |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 # | |
| 9 # Unless required by applicable law or agreed to in writing, software | |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 # See the License for the specific language governing permissions and | |
| 13 # limitations under the License. | |
| 14 { | |
| 15 'variables': { | |
| 16 # Default include directories. Override with your system's include paths or | |
| 17 # paths to your own implementations. | |
| 18 'gtest_dir%': '/usr/include', | |
| 19 'gtest_src_dir%': '/usr/src/gtest', | |
| 20 }, | |
| 21 'targets': [ | |
| 22 { | |
| 23 'target_name': 'main', | |
| 24 'type': 'static_library', | |
| 25 'sources': [ | |
| 26 '<(SHARED_INTERMEDIATE_DIR)/src/gtest-all.cc', | |
| 27 ], | |
| 28 'include_dirs': [ | |
| 29 '<(gtest_dir)', | |
| 30 '<(gtest_src_dir)', | |
| 31 ], | |
| 32 'copies': [ | |
| 33 { | |
| 34 'destination': '<(SHARED_INTERMEDIATE_DIR)/src', | |
| 35 'files': [ | |
| 36 '<(gtest_src_dir)/src/gtest-all.cc', | |
| 37 '<(gtest_src_dir)/src/gtest_main.cc', | |
| 38 ], | |
| 39 }, | |
| 40 ], | |
| 41 'direct_dependent_settings': { | |
| 42 'sources': [ | |
| 43 '<(SHARED_INTERMEDIATE_DIR)/src/gtest_main.cc', | |
| 44 ], | |
| 45 'include_dirs': [ | |
| 46 '<(gtest_dir)', | |
| 47 ], | |
| 48 'conditions': [ | |
| 49 ['OS == "linux"', { | |
| 50 'ldflags': [ | |
| 51 '-pthread', # GTest needs to link to pthread on Linux. | |
| 52 ], | |
| 53 }], | |
| 54 ], | |
| 55 }, | |
| 56 }, | |
| 57 ], | |
| 58 } | |
| OLD | NEW |