forked from dlang-community/dfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
22 lines (17 loc) · 647 Bytes
/
Copy pathbuild.bat
File metadata and controls
22 lines (17 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
setlocal enabledelayedexpansion
IF "%DC%"=="" SET DC="dmd"
set DFLAGS=-g
set CORE=
set STD=
set STDD=
set STDE=
set OBIN=bin\dfmt
for %%x in (src\dfmt\*.d) do set CORE=!CORE! %%x
for %%x in (libdparse\src\std\experimental\*.d) do set STD=!STD! %%x
for %%x in (libdparse\src\dparse\*.d) do set STDD=!STDD! %%x
for %%x in (libdparse\experimental_allocator\src\std\experimental\allocator\*.d) do set STDE=!STDE! %%x
for %%x in (libdparse\experimental_allocator\src\std\experimental\allocator\building_blocks\*.d) do set STDE=!STDE! %%x
@echo on
%DC% %CORE% %STD% %STDD% %STDE% %DFLAGS% -of%OBIN%.exe
if exist %OBIN%.obj del %OBIN%.obj