Statically link ftd2 library

This commit is contained in:
Lorenzooone
2024-06-23 02:00:14 +02:00
parent 8d6d57ca20
commit 65e2950970
16 changed files with 217 additions and 24 deletions

View File

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

View File

@@ -0,0 +1,12 @@
framework_change_pos() {
install_name_tool -change @rpath/../Frameworks/${2}.framework/Versions/A/${2} @executable_path/../Frameworks/${2}.framework/Versions/A/${2} ${1}
}
framework_change_pos ${1} 'freetype'
framework_change_pos ${1} 'OpenAL'
framework_change_pos ${1} 'vorbisenc'
framework_change_pos ${1} 'vorbisfile'
framework_change_pos ${1} 'FLAC'
framework_change_pos ${1} 'vorbis'
framework_change_pos ${1} 'ogg'

View File

@@ -0,0 +1,4 @@
hdiutil attach ${1}
cp ${2}/release/build/${4} ${3}
cp ${2}/release/*.h ${3}
hdiutil detach ${2} || true

View File

@@ -0,0 +1,4 @@
hdiutil attach ${1}
cp ${2}/${4} ${3}
cp ${2}/*.h ${3}
hdiutil detach ${2} || true

View File

@@ -0,0 +1 @@
xattr -d com.apple.quarantine cc3dsfs.app

View File

@@ -0,0 +1,8 @@
set "a=%~1"
set "b=%~2"
set "c=%~3"
set "a=%a:/=\%"
set "b=%b:/=\%"
set "c=%c:/=\%"
copy %a%\%c% %b%\
copy %a%\ftd2xx.h %b%\

View File

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