-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed vs2008 vcproj, added prep for rel. scripts
- Loading branch information
pavel
committed
Mar 28, 2015
1 parent
efc403e
commit 8553cfb
Showing
5 changed files
with
170 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/bash | ||
# Make release, Linux binaries | ||
# Run this after build | ||
# TODO detect x86/x64 build mode ?? | ||
|
||
# Release tree: | ||
# bin-Linux-x86/ | ||
# bin-Linux-x64/ | ||
# doc/ | ||
# usb_relay_device_lib_devel/ | ||
# (nothing for linux?) | ||
# Test/ | ||
|
||
echo "TO DO!" && exit 1 | ||
|
||
set -e | ||
|
||
export REL=_rel | ||
|
||
mkdirr() { | ||
if [ ! -d $1 ]; then mkdir -r $1 ; fi | ||
} | ||
|
||
mkdirr $REL | ||
|
||
copy_x86() { | ||
mkdirr $1 | ||
cp commandline/makemake/hidusb-relay-cmd $1 | ||
cp commandline/makemake/usb_relay_device.so $1 | ||
} | ||
|
||
copy_x64() { | ||
mkdirr $1 | ||
cp commandline/makemake/hidusb-relay-cmd $1 | ||
cp commandline/makemake/usb_relay_device.so $1 | ||
} | ||
|
||
copy_x86 $REL/bin-Linux-x86 | ||
# copy_x64 $REL/bin-Linux-x64 | ||
|
||
copy_noarch() { | ||
mkdirr $REL/doc | ||
cp doc/Readme_USB-Relay-DLL.md $REL/doc/ | ||
cp commandline/README-hidusb-relay-cmd.txt $REL/doc/ | ||
|
||
mkdirr $REL/usb_relay_device_lib_devel | ||
cp lib/usb_relay_device.h $REL/usb_relay_device_lib_devel | ||
} | ||
|
||
copy_noarch | ||
|
||
# Tests ... | ||
mkdirr $REL/Test | ||
cp commandline/relay1-pulse.sh $REL/Test | ||
|
||
echo "Done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
# Make release, OS X binaries, universal | ||
# Run this after build | ||
|
||
# Release tree: | ||
# bin-OSX/ | ||
# doc/ | ||
# usb_relay_device_lib_devel/ | ||
# OS X framework ?? | ||
# Test/ | ||
|
||
echo "TO DO!" && exit 1 | ||
|
||
set -e | ||
|
||
export REL=_rel | ||
|
||
mkdirr() { | ||
if [ ! -d $1 ]; then mkdir -r $1 ; fi | ||
} | ||
|
||
mkdirr $REL | ||
|
||
copy_bin_osx() { | ||
mkdirr $1 | ||
cp commandline/makeosx/hidusb-relay-cmd $1 | ||
cp commandline/makeosx/usb_relay_device.dylib $1 | ||
} | ||
|
||
copy_bin_osx $REL/bin-OSX | ||
|
||
copy_noarch() { | ||
mkdirr $REL/doc | ||
cp doc/Readme_USB-Relay-DLL.md $REL/doc/ | ||
cp commandline/README-hidusb-relay-cmd.txt $REL/doc/ | ||
|
||
mkdirr $REL/usb_relay_device_lib_devel | ||
cp lib/usb_relay_device.h $REL/usb_relay_device_lib_devel | ||
} | ||
|
||
copy_noarch | ||
|
||
# Tests ... | ||
mkdirr $REL/Test | ||
cp commandline/relay1-pulse.sh $REL/Test | ||
|
||
echo "Done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
@echo off | ||
: Make release, Windows binaries | ||
: Run this after binaries are built | ||
|
||
: Release tree: | ||
: bin-Win32/ | ||
: bin-Win64/ | ||
: doc/ | ||
: Test/ | ||
: usb_relay_device_lib_devel/ | ||
: Win32, Win64 ... | ||
: bin-Linux-x86/ | ||
: bin-Linux-x64/ | ||
: bin-OSX/ | ||
|
||
set REL=_rel | ||
if not exist _rel mkdir _rel | ||
if not exist %REL%\bin-Win32 mkdir %REL%\bin-Win32 | ||
if not exist %REL%\bin-Win64 mkdir %REL%\bin-Win64 | ||
|
||
@echo Copying x86 binaries... | ||
copy Windows-VS\Release\USB_RELAY_DEVICE.dll %REL%\bin-Win32 | ||
: ... vp | ||
copy Windows-VS\Release\hidusb-relay-cmd.exe %REL%\bin-Win32 | ||
: ... vp | ||
copy Windows-VS\Release\GUIapp.exe %REL%\bin-Win32 | ||
: ... vp | ||
|
||
if not exist Windows-VS\x64\Release\* goto L64_1 | ||
@echo Copying x64 binaries... | ||
copy Windows-VS\x64\Release\USB_RELAY_DEVICE.dll %REL%\bin-Win64 | ||
: ... vp | ||
copy Windows-VS\x64\Release\hidusb-relay-cmd.exe %REL%\bin-Win64 | ||
: ... vp | ||
copy Windows-VS\x64\Release\GUIapp.exe %REL%\bin-Win64 | ||
: ... vp | ||
:L64_1 | ||
|
||
@echo Copying docum ... | ||
if not exist %REL%\doc mkdir %REL%\doc | ||
copy doc\Readme_USB-Relay-DLL.md %REL%\doc | ||
copy commandline\README-hidusb-relay-cmd.txt %REL%\doc | ||
|
||
@echo Copying developer stuff ... | ||
if not exist %REL%\usb_relay_device_lib_devel mkdir %REL%\usb_relay_device_lib_devel | ||
mkdir %REL%\usb_relay_device_lib_devel\Win32 | ||
mkdir %REL%\usb_relay_device_lib_devel\Win64 | ||
copy lib\usb_relay_device.h %REL%\usb_relay_device_lib_devel | ||
copy Windows-VS\Release\USB_RELAY_DEVICE.lib %REL%\usb_relay_device_lib_devel\Win32 | ||
copy Windows-VS\x64\Release\USB_RELAY_DEVICE.lib %REL%\usb_relay_device_lib_devel\Win64 | ||
|
||
: ?? Copy also PDBs? debug binaries? | ||
|
||
: Test ... | ||
|
||
@echo Done. |