summaryrefslogtreecommitdiffstats
path: root/o3d/tests
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/tests')
-rw-r--r--o3d/tests/tests.gyp115
1 files changed, 115 insertions, 0 deletions
diff --git a/o3d/tests/tests.gyp b/o3d/tests/tests.gyp
new file mode 100644
index 0000000..895f2e5
--- /dev/null
+++ b/o3d/tests/tests.gyp
@@ -0,0 +1,115 @@
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'includes': [
+ '../build/common.gypi',
+ ],
+ 'target_defaults': {
+ 'include_dirs': [
+ '..',
+ '../..',
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'unit_tests',
+ 'type': 'executable',
+ 'dependencies': [
+ '../../<(antlrdir)/antlr.gyp:antlr3c',
+ '../../<(fcolladadir)/fcollada.gyp:fcollada',
+ '../../<(jpegdir)/libjpeg.gyp:libjpeg',
+ '../../<(pngdir)/libpng.gyp:libpng',
+ '../../<(zlibdir)/zlib.gyp:zlib',
+ '../../base/base.gyp:base',
+ '../../skia/skia.gyp:skia',
+ '../../testing/gtest.gyp:gtest',
+ '../compiler/technique/technique.gyp:technique',
+ '../core/core.gyp:o3dCoreTest',
+ '../import/import.gyp:o3dImportTest',
+ '../import/archive.gyp:o3dArchiveTest',
+ '../serializer/serializer.gyp:o3dSerializerTest',
+ '../statsreport/statsreport.gyp:o3dStatsReportTest',
+ '../utils/utils.gyp:o3dUtils',
+ '../utils/utils.gyp:o3dUtilsTest',
+ ],
+ 'sources': [
+ 'common/cross/test_utils.cc',
+ 'common/cross/main.cc',
+ ],
+ 'conditions' : [
+ ['OS == "mac"',
+ {
+ 'sources': [
+ 'common/mac/testing_common.cc',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
+ ],
+ },
+ },
+ ],
+ ['OS == "win"',
+ {
+ 'sources': [
+ 'common/win/testing_common.cc',
+ 'common/win/testing_common.h',
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'AdditionalDependencies': [
+ 'rpcrt4.lib',
+ '../../<(cgdir)/lib/cg.lib',
+ '../../<(cgdir)/lib/cgGL.lib',
+ ],
+ # Set /SUBSYSTEM:WINDOWS for unit_tests.exe, since
+ # it is a windows app.
+ 'SubSystem': '2',
+ # Don't optimize away unreferenced symbols when
+ # linking. If we didn't do this, then none of the
+ # tests would auto-register.
+ 'OptimizeReferences': '1',
+ },
+ },
+ # We switch it to console post-build so that we have a
+ # windows app that can output to the console and still
+ # open windows.
+ 'msvs_postbuild':
+ 'editbin /SUBSYSTEM:CONSOLE $(OutDir)/$(TargetFileName)',
+ },
+ ],
+ ['OS == "win" and renderer == "d3d9"',
+ {
+ 'sources': [
+ 'common/win/dxcapture.cc',
+ ],
+ 'include_dirs': [
+ '$(DXSDK_DIR)/Include',
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'AdditionalDependencies': [
+ '"$(DXSDK_DIR)/Lib/x86/DxErr9.lib"',
+ '"$(DXSDK_DIR)/Lib/x86/d3dx9.lib"',
+ 'd3d9.lib',
+ ],
+ },
+ },
+ },
+ ],
+ ['OS == "linux"',
+ {
+ 'sources': [
+ 'common/linux/testing_common.cc',
+ ],
+ },
+ ],
+ ],
+ },
+ ],
+}