-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcopy_interop.bat
64 lines (47 loc) · 2.34 KB
/
copy_interop.bat
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET ScriptRoot=%~dp0
SET ScriptRoot=%ScriptRoot:~,-1%
PUSHD "%ScriptRoot%"
SET Target=%1
SET Configuration=%2
IF "%Target%" == "" SET Target=checksum
IF "%Configuration%" == "" SET Configuration=debug
IF NOT "%Target%" == "all" IF NOT "%Target%" == "checksum" (
ECHO Unsupported target passed: %Target%
GOTO :EOF
)
IF NOT "%Configuration%" == "debug" IF NOT "%Configuration%" == "release" (
ECHO Unsupported configuration passed: %Configuration%
GOTO :EOF
)
CALL :Copy mscorlib "TinyCLR_Core\CLR\Libraries\mscorlib"
CALL :Copy GHIElectronics.TinyCLR.Native "TinyCLR_Core\CLR\Libraries\GHIElectronics_TinyCLR_Native"
CALL :Copy GHIElectronics.TinyCLR.Drawing "TinyCLR Devices\Drivers\Graphics\interop"
CALL :Copy GHIElectronics.TinyCLR.IO "TinyCLR Devices\Drivers\Filesystem\interop"
CALL :Copy GHIElectronics.TinyCLR.Networking "TinyCLR Devices\Drivers\DevicesInterop\Network"
CALL :Copy GHIElectronics.TinyCLR.Devices.Adc "TinyCLR Devices\Drivers\DevicesInterop\Adc"
CALL :Copy GHIElectronics.TinyCLR.Devices.Can "TinyCLR Devices\Drivers\DevicesInterop\Can"
CALL :Copy GHIElectronics.TinyCLR.Devices.Dac "TinyCLR Devices\Drivers\DevicesInterop\Dac"
CALL :Copy GHIElectronics.TinyCLR.Devices.Display "TinyCLR Devices\Drivers\DevicesInterop\Display"
CALL :Copy GHIElectronics.TinyCLR.Devices.Gpio "TinyCLR Devices\Drivers\DevicesInterop\Gpio"
CALL :Copy GHIElectronics.TinyCLR.Devices.I2c "TinyCLR Devices\Drivers\DevicesInterop\I2c"
CALL :Copy GHIElectronics.TinyCLR.Devices.Network "TinyCLR Devices\Drivers\DevicesInterop\Network"
CALL :Copy GHIElectronics.TinyCLR.Devices.Pwm "TinyCLR Devices\Drivers\DevicesInterop\Pwm"
CALL :Copy GHIElectronics.TinyCLR.Devices.Storage "TinyCLR Devices\Drivers\DevicesInterop\Storage"
CALL :Copy GHIElectronics.TinyCLR.Devices.Uart "TinyCLR Devices\Drivers\DevicesInterop\Uart"
CALL :Copy GHIElectronics.TinyCLR.Devices.Rtc "TinyCLR Devices\Drivers\DevicesInterop\Rtc"
CALL :Copy GHIElectronics.TinyCLR.Devices.Signals "TinyCLR Devices\Drivers\DevicesInterop\Signals"
CALL :Copy GHIElectronics.TinyCLR.Devices.Spi "TinyCLR Devices\Drivers\DevicesInterop\Spi"
POPD
ENDLOCAL
GOTO :EOF
:Copy
IF "%Target%" == "all" (
SET Prefix=*
) ELSE (
SET Prefix=%1
SET Prefix=!Prefix:.=_!
)
XCOPY "%ScriptRoot%\%~1\bin\%Configuration%\pe\Interop\!Prefix!.*" "%ScriptRoot%\..\%~2\" /Y /Q
GOTO :EOF