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.

65 lines
2.7KB

  1. diff --git a/configure.py b/configure.py
  2. index 7d13747..a1cd0e9 100644
  3. --- a/configure.py
  4. +++ b/configure.py
  5. @@ -768,7 +768,7 @@ class TargetConfiguration:
  6. self.qsci_api = os.path.isdir(self.qsci_api_dir)
  7. # Save the default qmake spec. and finalise the value we want to use.
  8. - self.qmake_spec_default = qt_config.QMAKE_SPEC
  9. + self.qmake_spec_default = qt_config.QMAKE_XSPEC or qt_config.QMAKE_SPEC
  10. # On Windows for Qt versions prior to v5.9.0 we need to be explicit
  11. # about the qmake spec.
  12. @@ -1558,7 +1558,7 @@ def generate_makefiles(target_config, verbose, parts, tracing, fatal_warnings, d
  13. inf = open_for_writing('__init__.py')
  14. inf.write(contents)
  15. - if target_config.py_platform == 'win32':
  16. + if target_config.py_platform == 'win32' or target_config.qmake_spec == 'win32-g++':
  17. # On Windows we try and make sure the Qt DLLs can be found, either any
  18. # bundled copies or an existing installation (using the traditional
  19. # Windows DLL search). We don't raise an exception in case the
  20. @@ -1908,7 +1908,7 @@ def pro_sources(src_dir, other_headers=None, other_sources=None):
  21. def module_file_name(target_config, name):
  22. """ Return the name of a file implementing a module. """
  23. - if sys.platform == 'win32':
  24. + if sys.platform == 'win32' or target_config.qmake_spec == 'win32-g++':
  25. fs = '{}.lib' if target_config.static else '{}.pyd'
  26. else:
  27. fs = 'lib{}.a' if target_config.static else '{}.so'
  28. @@ -1930,6 +1930,9 @@ def generate_tool_wrapper(target_config, wrapper, module):
  29. exe = quote(target_config.pyuic_interpreter)
  30. + if target_config.qmake_spec == 'win32-g++':
  31. + exe += ".exe"
  32. +
  33. wf = open_for_writing(wrapper)
  34. if target_config.py_platform == 'win32':
  35. @@ -2124,11 +2124,8 @@ def run_make(target_config, verbose, exe, makefile_name):
  36. # Guess the name of make and set the default target and platform specific
  37. # name of the executable.
  38. - if target_config.py_platform == 'win32':
  39. - if target_config.qmake_spec == 'win32-g++':
  40. - make = 'mingw32-make'
  41. - else:
  42. - make = 'nmake'
  43. + if True: # there should be a better way to do this..
  44. + make = 'make'
  45. if target_config.debug:
  46. makefile_target = 'debug'
  47. @@ -2514,7 +2514,7 @@ def get_sip_flags(target_config):
  48. sip_flags.append('-D')
  49. # Handle the platform tag. (Allow for win32-g++.)
  50. - if target_config.py_platform.startswith('win32'):
  51. + if target_config.py_platform.startswith('win32') or target_config.qmake_spec == 'win32-g++':
  52. plattag = 'WS_WIN'
  53. elif target_config.py_platform == 'darwin':
  54. plattag = 'WS_MACX'