Added VS projects for VS2015 (CTP6) & related changes
[usb-relay-hid.git] / make_release_win.bat
CommitLineData
8553cfb5 1@echo off
2: Make release, Windows binaries
3: Run this after binaries are built
4
5: Release tree:
6: bin-Win32/
7: bin-Win64/
8: doc/
9: Test/
10: usb_relay_device_lib_devel/
11: Win32, Win64 ...
12: bin-Linux-x86/
13: bin-Linux-x64/
14: bin-OSX/
15
16set REL=_rel
17if not exist _rel mkdir _rel
18if not exist %REL%\bin-Win32 mkdir %REL%\bin-Win32
19if not exist %REL%\bin-Win64 mkdir %REL%\bin-Win64
20
21@echo Copying x86 binaries...
22copy Windows-VS\Release\USB_RELAY_DEVICE.dll %REL%\bin-Win32
23: ... vp
24copy Windows-VS\Release\hidusb-relay-cmd.exe %REL%\bin-Win32
25: ... vp
26copy Windows-VS\Release\GUIapp.exe %REL%\bin-Win32
27: ... vp
28
29if not exist Windows-VS\x64\Release\* goto L64_1
30@echo Copying x64 binaries...
31copy Windows-VS\x64\Release\USB_RELAY_DEVICE.dll %REL%\bin-Win64
32: ... vp
33copy Windows-VS\x64\Release\hidusb-relay-cmd.exe %REL%\bin-Win64
34: ... vp
35copy Windows-VS\x64\Release\GUIapp.exe %REL%\bin-Win64
36: ... vp
37:L64_1
38
39@echo Copying docum ...
40if not exist %REL%\doc mkdir %REL%\doc
41copy doc\Readme_USB-Relay-DLL.md %REL%\doc
42copy commandline\README-hidusb-relay-cmd.txt %REL%\doc
43
44@echo Copying developer stuff ...
45if not exist %REL%\usb_relay_device_lib_devel mkdir %REL%\usb_relay_device_lib_devel
46mkdir %REL%\usb_relay_device_lib_devel\Win32
47mkdir %REL%\usb_relay_device_lib_devel\Win64
48copy lib\usb_relay_device.h %REL%\usb_relay_device_lib_devel
49copy Windows-VS\Release\USB_RELAY_DEVICE.lib %REL%\usb_relay_device_lib_devel\Win32
50copy Windows-VS\x64\Release\USB_RELAY_DEVICE.lib %REL%\usb_relay_device_lib_devel\Win64
51
52: ?? Copy also PDBs? debug binaries?
53
54: Test ...
55
56@echo Done.