Changeset 916:4f738ffc3596


Ignore:
Timestamp:
01/16/19 20:18:57 (6 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
version_0.39_maint
Children:
917:803dc6bacfa5, 919:2ce8ca39525b, 951:579389f54dae
Phase:
public
Message:

Support for building for Windows using Wine

Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • MANIFEST.in

    r36 r916  
    11include mlx.nsi
    22include makeinst.bat
     3include winemakeinst.bat
    34include license.txt
    45include runmlx.py
  • setup.py

    r875 r916  
    6363                           glob(os.path.join(cefDir, "locales", "*"))))
    6464
     65    if os.getenv("WINE")=="yes":
     66        winsysdir=os.getenv("WINSYSDIR")
     67        data_files.append(("", [os.path.join(winsysdir, "python27.dll")]))
     68        data_files.append(("library", [
     69                            os.path.join(winsysdir, "pywintypes27.dll"),
     70                            os.path.join(winsysdir, "WINHTTP.dll")]))
     71
     72        if gtkRuntimeDir:
     73            gtkBinDir = os.path.join(gtkRuntimeDir, "bin")
     74            data_files.append(("library", [
     75                                os.path.join(gtkBinDir, "freetype6.dll"),
     76                                os.path.join(gtkBinDir, "intl.dll"),
     77                                os.path.join(gtkBinDir, "zlib1.dll"),
     78                                os.path.join(gtkBinDir, "libglib-2.0-0.dll"),
     79                                os.path.join(gtkBinDir, "libatk-1.0-0.dll"),
     80                                os.path.join(gtkBinDir, "libcairo-2.dll"),
     81                                os.path.join(gtkBinDir, "libexpat-1.dll"),
     82                                os.path.join(gtkBinDir, "libpangowin32-1.0-0.dll"),
     83                                os.path.join(gtkBinDir, "libgio-2.0-0.dll"),
     84                                os.path.join(gtkBinDir, "libgdk-win32-2.0-0.dll"),
     85                                os.path.join(gtkBinDir, "libpng14-14.dll"),
     86                                os.path.join(gtkBinDir, "libgobject-2.0-0.dll"),
     87                                os.path.join(gtkBinDir, "libgdk_pixbuf-2.0-0.dll"),
     88                                os.path.join(gtkBinDir, "libfontconfig-1.dll"),
     89                                os.path.join(gtkBinDir, "libpangoft2-1.0-0.dll"),
     90                                os.path.join(gtkBinDir, "libgmodule-2.0-0.dll"),
     91                                os.path.join(gtkBinDir, "libpango-1.0-0.dll"),
     92                                os.path.join(gtkBinDir, "libpangocairo-1.0-0.dll"),
     93                                os.path.join(gtkBinDir, "libgtk-win32-2.0-0.dll"),
     94                                os.path.join(gtkBinDir, "libgthread-2.0-0.dll")
     95                              ]))
     96        if cefDir:
     97            data_files.append(("library", [
     98                                os.path.join(cefDir, "libcef.dll")
     99                              ]))
     100
    65101    print data_files
    66102
Note: See TracChangeset for help on using the changeset viewer.