Add Cross OS compilation

This commit is contained in:
Lorenzooone
2024-09-02 09:34:29 +02:00
parent 6f56918f3f
commit e2263c3e52
12 changed files with 202 additions and 78 deletions

View File

@@ -0,0 +1,2 @@
cp ${1}/${3} ${2}
cp ${1}/${4} ${2}/ftd2xx.h

View File

@@ -0,0 +1,13 @@
set "a=%~1"
set "b=%~2"
set "c=%~3"
set "d=%~4"
set "e=%~5"
set "a=%a:/=\%"
set "b=%b:/=\%"
set "c=%c:/=\%"
set "d=%d:/=\%"
set "e=%e:/=\%"
copy %a%\%c% %b%\
copy %a%\%e% %b%\
copy %a%\%d% %b%\ftd2xx.h

View File

@@ -0,0 +1,3 @@
cp ${1}/${3} ${2}
cp ${1}/${5} ${2}
cp ${1}/${4} ${2}/ftd2xx.h

View File

@@ -0,0 +1,2 @@
cp ${1}/${3} ${2}
cp ${1}/FTD3XX.h ${2}/ftd3xx.h

View File

@@ -0,0 +1,11 @@
set "a=%~1"
set "b=%~2"
set "c=%~3"
set "d=%~4"
set "a=%a:/=\%"
set "b=%b:/=\%"
set "c=%c:/=\%"
set "d=%d:/=\%"
copy %a%\%c% %b%\
copy %a%\%d% %b%\
copy %a%\FTD3XX.h %b%\ftd3xx.h

View File

@@ -0,0 +1,3 @@
cp ${1}/${3} ${2}
cp ${1}/${4} ${2}
cp ${1}/FTD3XX.h ${2}/ftd3xx.h

View File

@@ -0,0 +1,3 @@
unzip ${1}/WU_FTD3XXLib.zip
cp ${1}/WU_FTD3XXLib/Lib/${3} ${2}
cp ${1}/WU_FTD3XXLib/Lib/*.h ${2}

View File

@@ -0,0 +1,12 @@
set "a=%~1"
set "b=%~2"
set "c=%~3"
set "d=%~4"
set "a=%a:/=\%"
set "b=%b:/=\%"
set "c=%c:/=\%"
set "d=%d:/=\%"
unzip %a%\WU_FTD3XXLib.zip -d %a%
copy %a%\WU_FTD3XXLib\Lib\%c% %b%\
copy %a%\WU_FTD3XXLib\Lib\%d% %b%\
copy %a%\WU_FTD3XXLib\Lib\FTD3XX.h %b%\ftd3xx.h

View File

@@ -0,0 +1,4 @@
unzip ${1}/WU_FTD3XXLib.zip
cp ${1}/WU_FTD3XXLib/Lib/${3} ${2}
cp ${1}/WU_FTD3XXLib/Lib/${4} ${2}
cp ${1}/WU_FTD3XXLib/Lib/*.h ${2}