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.

58 lines
1.4KB

  1. export VSVR_BASE_DIR=`pwd`
  2. # y=64 bit build
  3. # n=32 bit build
  4. export BUILD_64=y
  5. # y=cross compile for ARM target (untested in VSVR build)
  6. export BUILD_ARM=n
  7. # CPU architecture
  8. CPU_ARCH="-msse2"
  9. if [ "${USER}" = "bsp" ]; then
  10. CPU_ARCH="-march=haswell"
  11. fi
  12. if [ "${USER}" = "cameron" ]; then
  13. CPU_ARCH="-march=skylake-avx512"
  14. fi
  15. if [ "${USER}" = "dave" ]; then
  16. CPU_ARCH="-march=athlon-fx"
  17. fi
  18. # Extra compiler flags (C and C++)
  19. #EXTRA_FLAGS=""
  20. #EXTRA_FLAGS=-DUSE_LOG_PRINTF
  21. EXTRA_FLAGS="-DUSE_BEGIN_REDRAW_FXN -I${VSVR_BASE_DIR}/dep/lglw"
  22. # (note) see dep/lglw/lglw_linux.c for an important note re: LGLW_CONTEXT_ALLOW_USE_AFTER_FREE
  23. #EXTRA_FLAGS="${EXTRA_FLAGS} -DLGLW_CONTEXT_ALLOW_USE_AFTER_FREE"
  24. if [ "${USER}" = "cameron" ]; then
  25. EXTRA_FLAGS="${EXTRA_FLAGS} -DLGLW_CONTEXT_ALLOW_USE_AFTER_FREE"
  26. fi
  27. # Extra C compiler flags
  28. export EXTRA_CFLAGS="${CPU_ARCH} ${EXTRA_FLAGS}"
  29. # Extra C++ compiler flags
  30. export EXTRA_CPPFLAGS="${CPU_ARCH} ${EXTRA_FLAGS}"
  31. # Extra optimization flags (C/C++)
  32. export EXTRA_OPTFLAGS=
  33. # Extra linker flags
  34. export EXTRA_LDFLAGS=-march=${CPU_ARCH}
  35. # Point this to the directory which contains the 'aeffect.h' and 'aeffectx.h' files
  36. export VST2_SDK_DIR=/mnt/dev/vstsdk2.4/pluginterfaces/vst2.x/
  37. # n = build the plugin w/o 3rd party modules (only useful for debugging purposes)
  38. # y = statically link 3rd party modules
  39. export RACK_STATIC_MODULES=y
  40. #export RACK_STATIC_MODULES=n