Unverified Commit 47e64243 authored by porres's avatar porres Committed by GitHub
Browse files

Merge pull request #1 from Lucarda/windows-redo

Windows redo
parents a2891ddc 119f346c
......@@ -72,31 +72,17 @@ and install the **ntldd** package:
`pacman -S mingw64/mingw-w64-x86_64-ntldd-git`
Then you can do with MinGW:
Then `cd` MinGW to this repo and do:
`make install`
`make`
or you can also specify more options with:
`make PDDIR=<path/to/pd directory> PDLIBDIR=<path/to/output> install`
then on the MinGW shell `cd` to your lib installation dir and run the dependencies script:
for 32bit
`````
cd <to/your/lib/installation/dir>
./windep32.sh
`````
`make PDDIR=<path/to/pd directory> PDLIBDIR=<path/to/output>`
for 64bit
then do this command that fills dependencies on the installation dir:
`````
cd <to/your/lib/installation/dir>
./windep64.sh
`````
`make windep`
......
......@@ -6,11 +6,7 @@ ldlibs = -lfluidsynth
define forWindows
ifeq ($(firstword $(subst -, ,$(shell $(CC) -dumpmachine))), i686)
datafiles += scripts/localdeps.win.sh dep32.sh
else
datafiles += scripts/localdeps.win.sh dep64.sh
endif
datafiles += scripts/localdeps.win.sh scripts/windep.sh
endef
......@@ -34,3 +30,7 @@ datafiles = fluidsynth~-help.pd LICENSE.txt README.md
datadirs = sf2
include pd-lib-builder/Makefile.pdlibbuilder
windep: install
cd "${installpath}"; ./windep.sh fluidsynth~.dll
\ No newline at end of file
#!/bin/sh
# This script is for use with fluidsynth~.dll as argument
arch="none"
error() {
echo "$@" 1>&2
}
NTLDD=$(which ntldd 2>/dev/null)
if [ "x${NTLDD}" = "x" ]; then
error "no 'ntldd' binary found"
exit 0
fi
arch() {
if file "$1" | grep -w "PE32+" >/dev/null; then
arch="w64"
return
fi
if file "$1" | grep -w "PE32" >/dev/null; then
arch="w32"
return
fi
}
arch "$1"
./localdeps.win.sh "$1"
# run again the script on each dep.
for filename in *."${arch}"; do
./localdeps.win.sh "$filename"
done
# Change extension of $1.
FILE="$1"
FILEFOO="${FILE%%.*}"
if [ "${arch}" = "w64" ]; then
mv "$1" "${FILEFOO}.m_amd64"
fi
if [ "${arch}" = "w32" ]; then
mv "$1" "${FILEFOO}.m_i386"
fi
# Remove scripts from install dir.
rm ./localdeps.win.sh
rm ./windep.sh
\ No newline at end of file
#!/bin/sh
./localdeps.win.sh ./fluid~.dll
for filename in *.w32; do
./localdeps.win.sh "$filename"
done
\ No newline at end of file
#!/bin/sh
./localdeps.win.sh ./fluid~.dll
for filename in *.w64; do
./localdeps.win.sh "$filename"
done
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment