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.

45 lines
1.5KB

  1. diff --git a/configure.py b/configure.py
  2. index d893ae8..7d13747 100644
  3. --- a/configure.py
  4. +++ b/configure.py
  5. @@ -2421,6 +2418,10 @@ def compile_test_program(target_config, verbose, mname, source=None, debug=None)
  6. pro_lines.append('TARGET = %s' % name)
  7. pro_lines.append('SOURCES = %s' % qmake_quote(name_source))
  8. + pro_lines.append('QMAKE_CFLAGS += $$(CFLAGS)')
  9. + pro_lines.append('QMAKE_CXXFLAGS += $$(CXXFLAGS)')
  10. + pro_lines.append('QMAKE_LFLAGS += $$(LDFLAGS)')
  11. +
  12. f = open_for_writing(name_pro)
  13. f.write('\n'.join(pro_lines))
  14. @@ -2442,7 +2443,13 @@ def run_test_program(mname, test, verbose):
  15. # Create the output file, first making sure it doesn't exist.
  16. remove_file(out_file)
  17. - run_command(test + ' ' + out_file, verbose)
  18. +
  19. + exe_wrapper = os.getenv('EXE_WRAPPER')
  20. + if exe_wrapper is not None:
  21. + exe_wrapper += ' '
  22. + else:
  23. + exe_wrapper = ''
  24. + run_command(exe_wrapper + test + ' ' + out_file, verbose)
  25. if not os.access(out_file, os.F_OK):
  26. error("%s failed to create %s. Make sure your Qt installation is correct." % (test, out_file))
  27. @@ -2751,6 +2751,13 @@ def generate_module_makefile(target_config, verbose, mname, include_paths=None,
  28. # qmake is run otherwise the install and uninstall targets are not
  29. # generated.
  30. shared = '''
  31. +CONFIG += link_pkgconfig
  32. +PKGCONFIG += python3
  33. +
  34. +QMAKE_CFLAGS += $$(CFLAGS)
  35. +QMAKE_CXXFLAGS += $$(CXXFLAGS)
  36. +QMAKE_LFLAGS += $$(LDFLAGS)
  37. +
  38. win32 {
  39. PY_MODULE = %s%s.pyd
  40. PY_MODULE_SRC = $(DESTDIR_TARGET)