| 1 |
{ |
| 2 |
Copyright 2020-2020 Michalis Kamburelis. |
| 3 |
|
| 4 |
This file is part of "Castle Game Engine". |
| 5 |
|
| 6 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 7 |
included in this distribution, for details about the copyright. |
| 8 |
|
| 9 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 12 |
|
| 13 |
---------------------------------------------------------------------------- |
| 14 |
} |
| 15 |
|
| 16 |
{ Disable loading dynamic libraries. Use this unit early. } |
| 17 |
unit ToolDisableDynamicLibraries; |
| 18 |
|
| 19 |
{$I castleconf.inc} |
| 20 |
|
| 21 |
interface |
| 22 |
|
| 23 |
implementation |
| 24 |
|
| 25 |
uses CastleDynLib; |
| 26 |
|
| 27 |
initialization |
| 28 |
{ Important on Windows, but defined everywhere for consistency. |
| 29 |
This avoids the build tool locking DLL files of a project, |
| 30 |
when it is run inside the project's directory. |
| 31 |
This would prevent compile/clean options from removing/overwriting |
| 32 |
the DLL files. |
| 33 |
|
| 34 |
Since build tool right now doesn't actually need Zlib, Libpng, OpenAL |
| 35 |
libraries (but it would load them otherwise) this is a simple solution. |
| 36 |
} |
| 37 |
InternalDisableDynamicLibraries := true; |
| 38 |
end. |