mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
ec02b811a8
Pick up latest commit from the 5.4-lkgr branch. deps: edit V8 gitignore to allow trace event copy deps: update V8 trace event to 315bf1e2d45be7d53346c31cfcc37424a32c30c8 deps: edit V8 gitignore to allow gtest_prod.h copy deps: update V8 gtest to 6f8a66431cb592dad629028a50b3dd418a408c87 PR-URL: https://github.com/nodejs/node/pull/8317 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
123 lines
3.6 KiB
Python
123 lines
3.6 KiB
Python
# Copyright 2014 the V8 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',
|
|
'toolsets': ['host', 'target'],
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'gtest/include/gtest/gtest-death-test.h',
|
|
'gtest/include/gtest/gtest-message.h',
|
|
'gtest/include/gtest/gtest-param-test.h',
|
|
'gtest/include/gtest/gtest-printers.h',
|
|
'gtest/include/gtest/gtest-spi.h',
|
|
'gtest/include/gtest/gtest-test-part.h',
|
|
'gtest/include/gtest/gtest-typed-test.h',
|
|
'gtest/include/gtest/gtest.h',
|
|
'gtest/include/gtest/gtest_pred_impl.h',
|
|
'gtest/include/gtest/internal/gtest-death-test-internal.h',
|
|
'gtest/include/gtest/internal/gtest-filepath.h',
|
|
'gtest/include/gtest/internal/gtest-internal.h',
|
|
'gtest/include/gtest/internal/gtest-linked_ptr.h',
|
|
'gtest/include/gtest/internal/gtest-param-util-generated.h',
|
|
'gtest/include/gtest/internal/gtest-param-util.h',
|
|
'gtest/include/gtest/internal/gtest-port.h',
|
|
'gtest/include/gtest/internal/gtest-string.h',
|
|
'gtest/include/gtest/internal/gtest-tuple.h',
|
|
'gtest/include/gtest/internal/gtest-type-util.h',
|
|
'gtest/src/gtest-all.cc',
|
|
'gtest/src/gtest-death-test.cc',
|
|
'gtest/src/gtest-filepath.cc',
|
|
'gtest/src/gtest-internal-inl.h',
|
|
'gtest/src/gtest-port.cc',
|
|
'gtest/src/gtest-printers.cc',
|
|
'gtest/src/gtest-test-part.cc',
|
|
'gtest/src/gtest-typed-test.cc',
|
|
'gtest/src/gtest.cc',
|
|
'gtest-support.h',
|
|
],
|
|
'sources!': [
|
|
'gtest/src/gtest-all.cc', # Not needed by our build.
|
|
],
|
|
'include_dirs': [
|
|
'gtest',
|
|
'gtest/include',
|
|
],
|
|
'dependencies': [
|
|
'gtest_prod',
|
|
],
|
|
'defines': [
|
|
# In order to allow regex matches in gtest to be shared between Windows
|
|
# and other systems, we tell gtest to always use it's internal engine.
|
|
'GTEST_HAS_POSIX_RE=0',
|
|
'GTEST_LANG_CXX11=1',
|
|
],
|
|
'all_dependent_settings': {
|
|
'defines': [
|
|
'GTEST_HAS_POSIX_RE=0',
|
|
'GTEST_LANG_CXX11=1',
|
|
],
|
|
},
|
|
'conditions': [
|
|
['OS=="android"', {
|
|
'defines': [
|
|
'GTEST_HAS_CLONE=0',
|
|
],
|
|
'direct_dependent_settings': {
|
|
'defines': [
|
|
'GTEST_HAS_CLONE=0',
|
|
],
|
|
},
|
|
}],
|
|
],
|
|
'direct_dependent_settings': {
|
|
'defines': [
|
|
'UNIT_TEST',
|
|
],
|
|
'include_dirs': [
|
|
'gtest/include', # So that gtest headers can find themselves.
|
|
],
|
|
'target_conditions': [
|
|
['_type=="executable"', {
|
|
'test': 1,
|
|
'conditions': [
|
|
['OS=="mac"', {
|
|
'run_as': {
|
|
'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'],
|
|
},
|
|
}],
|
|
['OS=="win"', {
|
|
'run_as': {
|
|
'action????': ['$(TargetPath)', '--gtest_print_time'],
|
|
},
|
|
}],
|
|
],
|
|
}],
|
|
],
|
|
'msvs_disabled_warnings': [4800],
|
|
},
|
|
},
|
|
{
|
|
'target_name': 'gtest_main',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'gtest',
|
|
],
|
|
'sources': [
|
|
'gtest/src/gtest_main.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'gtest_prod',
|
|
'toolsets': ['host', 'target'],
|
|
'type': 'none',
|
|
'sources': [
|
|
'gtest/include/gtest/gtest_prod.h',
|
|
],
|
|
},
|
|
],
|
|
}
|