-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate-cpp.bat
More file actions
37 lines (33 loc) · 860 Bytes
/
Copy pathgenerate-cpp.bat
File metadata and controls
37 lines (33 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
echo Generating C++ code...
REM Create a temporary config file for C++ generation only
(
echo {
echo "protocolFile": "Examples/user_service.pdl",
echo "outputDirectory": "Generated",
echo "languages": [
echo {
echo "name": "csharp",
echo "enabled": false,
echo "namespace": "Example.Protocol",
echo "runtimePath": "Src"
echo },
echo {
echo "name": "python",
echo "enabled": false,
echo "namespace": "example.protocol",
echo "runtimePath": "Src/Python"
echo },
echo {
echo "name": "cpp",
echo "enabled": true,
echo "namespace": "example.protocol",
echo "runtimePath": "Src/C++Core"
echo }
echo ]
echo }
) > temp-config.json
dotnet run --project Src/GeneratorApp -- temp-config.json
REM Clean up temporary config file
del temp-config.json
pause