| 1 |
{ This is NOT auto-generated, contrary to most CGE applications. |
| 2 |
|
| 3 |
This file is used to build and run the application on desktop (standalone) platforms, |
| 4 |
from various tools: |
| 5 |
- Castle Game Engine command-line build tool |
| 6 |
- Castle Game Engine editor |
| 7 |
- Lazarus IDE |
| 8 |
- Delphi IDE |
| 9 |
} |
| 10 |
|
| 11 |
{$ifdef MSWINDOWS} {$APPTYPE CONSOLE} { $apptype GUI} {$endif} |
| 12 |
|
| 13 |
{ This adds icons and version info for Windows, |
| 14 |
automatically created by "castle-engine compile". } |
| 15 |
{$ifdef CASTLE_AUTO_GENERATED_RESOURCES} {$R castle-auto-generated-resources.res} {$endif} |
| 16 |
|
| 17 |
uses |
| 18 |
{$if defined(FPC) and (not defined(CASTLE_DISABLE_THREADS))} |
| 19 |
{$info Thread support enabled.} |
| 20 |
{$ifdef UNIX} CThreads, {$endif} |
| 21 |
{$endif} |
| 22 |
SysUtils, CastleAutoGenerated, CastleWindow, GameInitialize, CastleParameters, |
| 23 |
CastleApplicationProperties, CastleConsoleTester, CastleTesterParameters, |
| 24 |
|
| 25 |
{ Testing (mainly) things inside Pascal standard library, not CGE } |
| 26 |
TestCompiler, |
| 27 |
TestSysUtils, |
| 28 |
{$ifdef FPC}TestFGL,{$endif} |
| 29 |
TestGenericsCollections, |
| 30 |
{$ifdef FPC}TestOldFPCBugs,{$endif} |
| 31 |
{$ifdef FPC}TestFPImage,{$endif} |
| 32 |
//TestToolFpcVersion, |
| 33 |
|
| 34 |
{ Testing CGE units } |
| 35 |
TestCastleUtils, |
| 36 |
TestCastleRectangles, |
| 37 |
TestCastleFindFiles, |
| 38 |
TestCastleFilesUtils, |
| 39 |
TestCastleUtilsLists, |
| 40 |
TestCastleClassUtils, |
| 41 |
TestCastleVectors, |
| 42 |
TestCastleTriangles, |
| 43 |
TestCastleColors, |
| 44 |
TestCastleQuaternions, |
| 45 |
TestCastleRenderOptions, |
| 46 |
TestCastleKeysMouse, |
| 47 |
TestCastleImages, |
| 48 |
TestCastleInternalDataCompression, |
| 49 |
TestCastleImagesDraw, |
| 50 |
TestCastleBoxes, |
| 51 |
TestCastleFrustum, |
| 52 |
TestCastleInternalGLShadowVolumes, |
| 53 |
TestCastleFonts, |
| 54 |
TestCastleTransform, |
| 55 |
TestCastleParameters, |
| 56 |
TestCastleUIControls, |
| 57 |
TestCastleCameras, |
| 58 |
TestX3DFields, |
| 59 |
TestX3DNodes, |
| 60 |
TestX3DNodesOptimizedProxy, |
| 61 |
TestX3DNodesNurbs, |
| 62 |
TestCastleRendererInternalShader, |
| 63 |
TestCastleScene, |
| 64 |
TestCastleSceneCore, |
| 65 |
TestCastleSceneManager, |
| 66 |
TestCastleVideos, |
| 67 |
TestCastleSpaceFillingCurves, |
| 68 |
TestCastleStringUtils, |
| 69 |
TestCastleScript, |
| 70 |
TestCastleScriptVectors, |
| 71 |
TestCastleCubeMaps, |
| 72 |
TestCastleGLVersion, |
| 73 |
TestCastleCompositeImage, |
| 74 |
TestCastleTriangulate, |
| 75 |
TestCastleGame, |
| 76 |
TestCastleUriUtils, |
| 77 |
TestCastleInternalDataUri, |
| 78 |
TestCastleXmlUtils, |
| 79 |
TestCastleCurves, |
| 80 |
TestCastleTimeUtils, |
| 81 |
TestCastleControls, |
| 82 |
TestCastleSoundEngine, |
| 83 |
TestCastleComponentSerialize, |
| 84 |
TestCastleDesignComponents, |
| 85 |
TestX3DLoadInternalUtils, |
| 86 |
TestCastleLevels, |
| 87 |
TestCastleDownload, |
| 88 |
TestCastleUnicode, |
| 89 |
TestCastleResources, |
| 90 |
TestX3DLoadGltf, |
| 91 |
TestCastleTiledMap, |
| 92 |
TestCastleInternalAutoGenerated, |
| 93 |
TestCastleLocalizationGetText, |
| 94 |
TestCastleViewport, |
| 95 |
TestCastleInternalRttiUtils, |
| 96 |
TestCastleShapes, |
| 97 |
TestCastleInternalDelphiUtils, |
| 98 |
TestCastleFileFilters, |
| 99 |
TestCastleWindow, |
| 100 |
TestCastleOpeningAndRendering3D, |
| 101 |
TestCastleWindowOpen, |
| 102 |
TestCastleInternalEgl, |
| 103 |
TestCastleInternalTools, |
| 104 |
TestX3DLoadInternalCocos2d; |
| 105 |
|
| 106 |
var |
| 107 |
ConsoleTester: TCastleConsoleTester; |
| 108 |
begin |
| 109 |
TesterParseParameters; |
| 110 |
|
| 111 |
if not ParamConsole then |
| 112 |
begin |
| 113 |
Application.MainWindow.OpenAndRun; |
| 114 |
end else |
| 115 |
begin |
| 116 |
{ Avoid warnings about opening files too early. } |
| 117 |
ApplicationProperties._FileAccessSafe := true; |
| 118 |
ConsoleTester := TCastleConsoleTester.Create; |
| 119 |
try |
| 120 |
ConsoleTester.Run; |
| 121 |
finally |
| 122 |
FreeAndNil(ConsoleTester); |
| 123 |
end; |
| 124 |
end; |
| 125 |
end. |