1
- ------------------------------------------------------------------------------
2
- -- Language Server Protocol --
3
- -- --
4
- -- Copyright (C) 2018-2023, AdaCore --
5
- -- --
6
- -- This is free software; you can redistribute it and/or modify it under --
7
- -- terms of the GNU General Public License as published by the Free Soft- --
8
- -- ware Foundation; either version 3, or (at your option) any later ver- --
9
- -- sion. This software is distributed in the hope that it will be useful, --
10
- -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- --
11
- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public --
12
- -- License for more details. You should have received a copy of the GNU --
13
- -- General Public License distributed with this software; see file --
14
- -- COPYING3. If not, go to http://www.gnu.org/licenses for a complete copy --
15
- -- of the license. --
16
- ------------------------------------------------------------------------------
1
+ --
2
+ -- Copyright (C) 2018-2024, AdaCore
3
+ --
4
+ -- SPDX-License-Identifier: Apache-2.0
5
+ --
17
6
18
7
with "gpr2.gpr";
19
8
with "libadalang";
@@ -24,6 +13,7 @@ with "libgnatdoc.gpr";
24
13
with "spawn.gpr";
25
14
26
15
with "lsp_3_17";
16
+ with "lsp_common";
27
17
28
18
project LSP_Server is
29
19
@@ -41,6 +31,7 @@ project LSP_Server is
41
31
for Source_Dirs use
42
32
("../source/server",
43
33
"../source/ada",
34
+ "../source/common",
44
35
"../source/gpr",
45
36
"../source/ada/generated",
46
37
"../source/memory");
@@ -49,6 +40,19 @@ project LSP_Server is
49
40
for Main use ("lsp-ada_driver.adb");
50
41
for Languages use ("Ada", "C++");
51
42
43
+ package Naming is
44
+ case LSP_Common.OS_API is
45
+ when "Windows_NT" =>
46
+ for Implementation ("LSP.Stdio_Streams.Initialize")
47
+ use "lsp-stdio_streams-init_windows.adb";
48
+
49
+ when others =>
50
+ for Implementation ("LSP.Stdio_Streams.Initialize")
51
+ use "lsp-stdio_streams-init_others.adb";
52
+
53
+ end case;
54
+ end Naming;
55
+
52
56
package Compiler is
53
57
for Default_Switches ("Ada") use
54
58
LSP_3_17.Compiler'Default_Switches ("Ada");
0 commit comments