webrtc/test/test.gyp
kjellander@webrtc.org 7951e819af Simple utility method for finding the project root dir (to be used by tests loading resource files)
The code has no intent to be superportable in all possible scenarios, since it will only be used by our own test code.
I reviewed more sophisticated libraries for doing similar things but came to the conclusion that they introduced more dependencies than motivated for this single purpose.

The unit test has been tested successfully executed on Linux (cmd line and Eclipse), Mac (XCode) and Windows (VS2008).

Review URL: http://webrtc-codereview.appspot.com/223002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@734 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-10-13 12:24:41 +00:00

47 lines
1.2 KiB
Python

# Copyright (c) 2011 The WebRTC 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 in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
# TODO(andrew): consider moving test_support to src/base/test.
{
'includes': [
'../src/build/common.gypi',
],
'targets': [
{
'target_name': 'test_support',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/../testing/gtest.gyp:gtest',
],
'direct_dependent_settings': {
'include_dirs': [
'.',
],
},
'sources': [
'test_suite.cc',
'test_suite.h',
'testsupport/fileutils.h',
'testsupport/fileutils.cc',
],
},
{
'target_name': 'test_support_unittests',
'type': 'executable',
'dependencies': [
'test_support',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
],
'sources': [
'run_all_unittests.cc',
'testsupport/fileutils_unittest.cc',
],
},
],
}