Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5KB

  1. diff --git a/dpf/Makefile b/dpf/Makefile
  2. index d16647c..e573a45 100644
  3. --- a/dpf/Makefile
  4. +++ b/dpf/Makefile
  5. @@ -10,6 +10,12 @@ all: dgl examples gen
  6. # --------------------------------------------------------------
  7. +ifneq ($(CROSS_COMPILING),true)
  8. +CAN_GENERATE_TTL = true
  9. +else ifneq ($(EXE_WRAPPER),)
  10. +CAN_GENERATE_TTL = true
  11. +endif
  12. +
  13. dgl:
  14. $(MAKE) -C dgl
  15. @@ -35,7 +41,7 @@ ifneq ($(MACOS_OR_WINDOWS),true)
  16. install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui.lv2/d_extui.sh
  17. endif
  18. -ifneq ($(CROSS_COMPILING),true)
  19. +ifeq ($(CAN_GENERATE_TTL),true)
  20. gen: examples utils/lv2_ttl_generator
  21. @$(CURDIR)/utils/generate-ttl.sh
  22. ifeq ($(MACOS),true)
  23. diff --git a/dpf/utils/generate-ttl.sh b/dpf/utils/generate-ttl.sh
  24. index 7522b26..26cf663 100755
  25. --- a/dpf/utils/generate-ttl.sh
  26. +++ b/dpf/utils/generate-ttl.sh
  27. @@ -9,13 +9,13 @@ else
  28. exit
  29. fi
  30. -PWD="$(dirname "$0")"
  31. +PWD="$(dirname "${0}")"
  32. -if [ -f "$PWD/lv2_ttl_generator.exe" ]; then
  33. - GEN="$PWD/lv2_ttl_generator.exe"
  34. +if [ -f "${PWD}/lv2_ttl_generator.exe" ]; then
  35. + GEN="${PWD}/lv2_ttl_generator.exe"
  36. EXT=dll
  37. else
  38. - GEN="$PWD/lv2_ttl_generator"
  39. + GEN="${PWD}/lv2_ttl_generator"
  40. if [ -d /Library/Audio ]; then
  41. EXT=dylib
  42. else
  43. @@ -25,9 +25,9 @@ fi
  44. FOLDERS=`find . -type d -name \*.lv2`
  45. -for i in $FOLDERS; do
  46. - cd $i
  47. - FILE="$(ls *.$EXT | sort | head -n 1)"
  48. - "$GEN" "./$FILE"
  49. +for i in ${FOLDERS}; do
  50. + cd ${i}
  51. + FILE="$(ls *.${EXT} | sort | head -n 1)"
  52. + ${EXE_WRAPPER} "${GEN}" "./${FILE}"
  53. cd ..
  54. done