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.

70 lines
2.6KB

  1. diff -Naur Python-3.8.0-orig/Modules/_winapi.c Python-3.8.0/Modules/_winapi.c
  2. --- Python-3.8.0-orig/Modules/_winapi.c 2019-10-14 16:34:47.000000000 +0300
  3. +++ Python-3.8.0/Modules/_winapi.c 2019-10-22 10:01:48.485627300 +0300
  4. @@ -39,7 +39,9 @@
  5. #define WINDOWS_LEAN_AND_MEAN
  6. #include "windows.h"
  7. +#if defined(Py_DEBUG)
  8. #include <crtdbg.h>
  9. +#endif
  10. #include "winreparse.h"
  11. #if defined(MS_WIN32) && !defined(MS_WIN64)
  12. diff -Naur Python-3.8.0-orig/PC/msvcrtmodule.c Python-3.8.0/PC/msvcrtmodule.c
  13. --- Python-3.8.0-orig/PC/msvcrtmodule.c 2019-10-14 16:34:47.000000000 +0300
  14. +++ Python-3.8.0/PC/msvcrtmodule.c 2019-10-22 10:01:48.891228000 +0300
  15. @@ -21,7 +21,9 @@
  16. #include <io.h>
  17. #include <conio.h>
  18. #include <sys/locking.h>
  19. +#ifdef _DEBUG
  20. #include <crtdbg.h>
  21. +#endif
  22. #include <windows.h>
  23. #ifdef _MSC_VER
  24. diff -Naur Python-3.8.0-orig/Python/dynamic_annotations.c Python-3.8.0/Python/dynamic_annotations.c
  25. --- Python-3.8.0-orig/Python/dynamic_annotations.c 2019-10-14 16:34:47.000000000 +0300
  26. +++ Python-3.8.0/Python/dynamic_annotations.c 2019-10-22 10:01:49.296828700 +0300
  27. @@ -27,7 +27,7 @@
  28. * Author: Kostya Serebryany
  29. */
  30. -#ifdef _MSC_VER
  31. +#ifdef MS_WINDOWS
  32. # include <windows.h>
  33. #endif
  34. diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py
  35. --- Python-3.8.0-orig/setup.py 2019-10-22 10:01:47.378025300 +0300
  36. +++ Python-3.8.0/setup.py 2019-10-22 10:01:49.702429400 +0300
  37. @@ -1540,6 +1540,27 @@
  38. '-framework', 'SystemConfiguration',
  39. '-framework', 'CoreFoundation']))
  40. + # Modules with some Windows dependencies:
  41. + if MS_WINDOWS:
  42. + srcdir = sysconfig.get_config_var('srcdir')
  43. + pc_srcdir = os.path.abspath(os.path.join(srcdir, 'PC'))
  44. +
  45. + self.add(Extension('msvcrt', [os.path.join(pc_srcdir, p)
  46. + for p in ['msvcrtmodule.c']]))
  47. +
  48. + self.add(Extension('_winapi', ['_winapi.c']))
  49. +
  50. + self.add(Extension('_msi', [os.path.join(pc_srcdir, p)
  51. + for p in ['_msi.c']],
  52. + libraries=['msi','cabinet','rpcrt4'])) # To link with lib(msi|cabinet|rpcrt4).a
  53. +
  54. + self.add(Extension('winsound', [os.path.join(pc_srcdir, p)
  55. + for p in ['winsound.c']],
  56. + libraries=['winmm']))
  57. +
  58. + self.add(Extension('_overlapped', ['overlapped.c'],
  59. + libraries=['ws2_32']))
  60. +
  61. def detect_compress_exts(self):
  62. # Andrew Kuchling's zlib module. Note that some versions of zlib
  63. # 1.1.3 have security problems. See CERT Advisory CA-2002-07: