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.

32 lines
1.4KB

  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. @@ -1908,7 +1908,7 @@ def pro_sources(src_dir, other_headers=None, other_sources=None):
  13. def module_file_name(target_config, name):
  14. """ Return the name of a file implementing a module. """
  15. - if sys.platform == 'win32':
  16. + if sys.platform == 'win32' or target_config.qmake_spec == 'win32-g++':
  17. fs = '{}.lib' if target_config.static else '{}.pyd'
  18. else:
  19. fs = 'lib{}.a' if target_config.static else '{}.so'
  20. @@ -2514,7 +2514,7 @@ def get_sip_flags(target_config):
  21. sip_flags.append('-D')
  22. # Handle the platform tag. (Allow for win32-g++.)
  23. - if target_config.py_platform.startswith('win32'):
  24. + if target_config.py_platform.startswith('win32') or target_config.qmake_spec == 'win32-g++':
  25. plattag = 'WS_WIN'
  26. elif target_config.py_platform == 'darwin':
  27. plattag = 'WS_MACX'