-
Notifications
You must be signed in to change notification settings - Fork 25
/
generate4.cmd
43 lines (35 loc) · 1.34 KB
/
generate4.cmd
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
38
39
40
41
42
43
@echo off
REM ###########################################################################
REM Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
REM
REM Generate libbitcoin-build artifacts from XML + GSL.
REM
REM This executes the iMatix GSL code generator.
REM See https://github.com/imatix/gsl for details.
REM
REM Direct GSL download https://www.nuget.org/api/v2/package/gsl/4.1.0.1
REM Extract gsl.exe from package using NuGet's File > Export
REM ###########################################################################
REM Do everything relative to this file location.
pushd %~dp0
REM Clean directories for generated build artifacts.
rmdir /s /q "output" 2>NUL
REM Generate property copiers and artifact generators.
gsl -q -script:gsl.copy_modules.cmd generate4.xml
gsl -q -script:gsl.copy_properties.cmd generate4.xml
gsl -q -script:gsl.generate_artifacts.cmd generate4.xml
REM Generate bindings from generated binding generators.
REM The path to swig.exe must be in our path.
REM for generate.repository by name as _repo
REM call ..\\$(_repo.name)\\bindings.bat
REM endfor
REM Execute property copiers and artifact generators.
call copy_modules.cmd
call copy_properties.cmd
call generate_artifacts.cmd
REM Copy outputs to all repositories.
xcopy /s /y output\* ..\
REM Restore directory.
popd
REM Delay for manual confirmation.
call pause