Debian Codegraph @

src/services/castleopendocument_open.inc

raw
1 {
2 Copyright 2012-2024 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 Parts of this file are based on Lazarus LCL code, which has
9 exactly the same license as our "Castle Game Engine":
10 LGPL with static linking exception, see COPYING.txt for details.
11
12 "Castle Game Engine" is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
16 ----------------------------------------------------------------------------
17 }
18
19 { Switch between various implementations of OpenUrl and OpenDocument. }
20
21 {$if defined(MSWINDOWS)}
22 {$I castleopendocument_shellexecute.inc}
23 {$elseif defined(ANDROID) or defined(CASTLE_IOS)}
24 {$I castleopendocument_messaging.inc}
25 {$elseif defined(FPC) and defined(DARWIN) and not defined(CASTLE_IOS)}
26 {$I castleopendocument_macos.inc}
27 {$elseif defined(UNIX)}
28 {$I castleopendocument_freedesktop.inc}
29 {$else}
30 {$I castleopendocument_unimplemented.inc}
31 {$endif}