/[gr2lib]/trunk/gr2lib_UnitTest/shared.cs
ViewVC logotype

Contents of /trunk/gr2lib_UnitTest/shared.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100 - (show annotations) (download)
Sat Jul 17 13:53:22 2010 UTC (9 years, 6 months ago) by william
File size: 1835 byte(s)
enable copying of granny2_X.X.X.X.dll -> granny2.dll at run-time, based on compiler directive

1 //#define DEFAULT_GRANNY_TEST_FILE
2 #define USE_SIMS3_GRANNY2_DLL_VERSION
3
4 //#define GRANNY_TEST_FILE_1
5 #define GRANNY_TEST_FILE_2
6 //#define GRANNY_TEST_FILE_3
7 //#define GRANNY_TEST_FILE_4
8 //#define GRANNY_TEST_FILE_5
9
10 #define COPY_GRANNY_DLL_BY_VERSION
11
12 using System;
13 using System.Collections.Generic;
14 using System.Text;
15
16 namespace gr2lib_UnitTest
17 {
18 internal class shared
19 {
20
21 internal const string GRANNY2_DLL_PREFIX = "granny2";
22 internal const string GRANNY2_DLL_SUFFIX = ".dll";
23
24 #if GRANNY_TEST_FILE_1 && !DEFAULT_GRANNY_TEST_FILE
25 internal const string GRANNY_TEST_FILE = "./media/blowtorch.grannyrig";
26 #endif
27 #if GRANNY_TEST_FILE_2 && !DEFAULT_GRANNY_TEST_FILE
28 internal const string GRANNY_TEST_FILE = "./media/S3_motorcycleChopper.gr2";
29 #endif
30 #if GRANNY_TEST_FILE_3 && !DEFAULT_GRANNY_TEST_FILE
31 internal const string GRANNY_TEST_FILE = "./media/abandonedoxcar.grannyrig";
32 #endif
33 #if GRANNY_TEST_FILE_4 && !DEFAULT_GRANNY_TEST_FILE
34 internal const string GRANNY_TEST_FILE = "./media/alarmire.grannyrig";
35 #endif
36 #if GRANNY_TEST_FILE_5 && !DEFAULT_GRANNY_TEST_FILE
37 internal const string GRANNY_TEST_FILE = "./media/blowtorch.grannyrig";
38 #endif
39 #if (!GRANNY_TEST_FILE_1 && !GRANNY_TEST_FILE_2 && !GRANNY_TEST_FILE_3 && !GRANNY_TEST_FILE_4 && !GRANNY_TEST_FILE_5) || DEFAULT_GRANNY_TEST_FILE
40 internal const string GRANNY_TEST_FILE = "./media/gryphon.gr2";
41 #endif
42
43 #if COPY_GRANNY_DLL_BY_VERSION
44 internal const bool COPY_DLL_BY_VERSION = true;
45 #else
46 internal const bool COPY_DLL_BY_VERSION = false;
47 #endif
48
49 #if USE_SIMS3_GRANNY2_DLL_VERSION
50 internal const string EXPECTED_API_VERSION = "2.6.0.10";
51 #else
52 internal const string EXPECTED_API_VERSION = "2.7.0.30";
53 #endif
54 }
55 }

  ViewVC Help
Powered by ViewVC 1.1.22