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.

54 lines
2.1KB

  1. diff --git a/configure.py b/configure.py
  2. index d893ae8..7d13747 100644
  3. --- a/configure.py
  4. +++ b/configure.py
  5. @@ -1558,7 +1558,7 @@ def generate_makefiles(target_config, verbose, parts, tracing, fatal_warnings, d
  6. inf = open_for_writing('__init__.py')
  7. inf.write(contents)
  8. - if target_config.py_platform == 'win32':
  9. + if target_config.py_platform == 'win32' or True:
  10. # On Windows we try and make sure the Qt DLLs can be found, either any
  11. # bundled copies or an existing installation (using the traditional
  12. # Windows DLL search). We don't raise an exception in case the
  13. @@ -2124,11 +2124,8 @@ def run_make(target_config, verbose, exe, makefile_name):
  14. # Guess the name of make and set the default target and platform specific
  15. # name of the executable.
  16. - if target_config.py_platform == 'win32':
  17. - if target_config.qmake_spec == 'win32-g++':
  18. - make = 'mingw32-make'
  19. - else:
  20. - make = 'nmake'
  21. + if target_config.py_platform == 'win32' or True:
  22. + make = 'make'
  23. if target_config.debug:
  24. makefile_target = 'debug'
  25. @@ -2421,6 +2418,10 @@ def compile_test_program(target_config, verbose, mname, source=None, debug=None)
  26. pro_lines.append('TARGET = %s' % name)
  27. pro_lines.append('SOURCES = %s' % qmake_quote(name_source))
  28. + pro_lines.append('QMAKE_CXXFLAGS += $$(CXXFLAGS)')
  29. + pro_lines.append('QMAKE_CFLAGS += $$(CFLAGS)')
  30. + pro_lines.append('QMAKE_LFLAGS += $$(LDFLAGS)')
  31. +
  32. f = open_for_writing(name_pro)
  33. f.write('\n'.join(pro_lines))
  34. @@ -2442,7 +2443,13 @@ def run_test_program(mname, test, verbose):
  35. # Create the output file, first making sure it doesn't exist.
  36. remove_file(out_file)
  37. - run_command(test + ' ' + out_file, verbose)
  38. +
  39. + exe_wrapper = os.getenv('EXE_WRAPPER')
  40. + if exe_wrapper is not None:
  41. + exe_wrapper += ' '
  42. + else:
  43. + exe_wrapper = ''
  44. + run_command(exe_wrapper + test + ' ' + out_file, verbose)
  45. if not os.access(out_file, os.F_OK):
  46. error("%s failed to create %s. Make sure your Qt installation is correct." % (test, out_file))