Browse Source

Allow to use EXE_WRAPPER as makefile option

pull/250/head
falkTX 3 years ago
parent
commit
dee5c229ec
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 15 additions and 9 deletions
  1. +7
    -1
      Makefile
  2. +8
    -8
      utils/generate-ttl.sh

+ 7
- 1
Makefile View File

@@ -10,6 +10,12 @@ all: dgl examples gen

# --------------------------------------------------------------

ifneq ($(CROSS_COMPILING),true)
CAN_GENERATE_TTL = true
else ifeq ($(EXE_WRAPPER),)
CAN_GENERATE_TTL = true
endif

dgl:
$(MAKE) -C dgl

@@ -35,7 +41,7 @@ ifneq ($(MACOS_OR_WINDOWS),true)
install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui.lv2/d_extui.sh
endif

ifneq ($(CROSS_COMPILING),true)
ifneq ($(CAN_GENERATE_TTL),true)
gen: examples utils/lv2_ttl_generator
@$(CURDIR)/utils/generate-ttl.sh
ifeq ($(MACOS),true)


+ 8
- 8
utils/generate-ttl.sh View File

@@ -9,13 +9,13 @@ else
exit
fi

PWD="$(dirname "$0")"
PWD="$(dirname "${0}")"

if [ -f "$PWD/lv2_ttl_generator.exe" ]; then
GEN="$PWD/lv2_ttl_generator.exe"
if [ -f "${PWD}/lv2_ttl_generator.exe" ]; then
GEN="${PWD}/lv2_ttl_generator.exe"
EXT=dll
else
GEN="$PWD/lv2_ttl_generator"
GEN="${PWD}/lv2_ttl_generator"
if [ -d /Library/Audio ]; then
EXT=dylib
else
@@ -25,9 +25,9 @@ fi

FOLDERS=`find . -type d -name \*.lv2`

for i in $FOLDERS; do
cd $i
FILE="$(ls *.$EXT | sort | head -n 1)"
"$GEN" "./$FILE"
for i in ${FOLDERS}; do
cd ${i}
FILE="$(ls *.${EXT} | sort | head -n 1)"
"${EXE_WRAPPER}" "${GEN}" "./${FILE}"
cd ..
done

Loading…
Cancel
Save