README.python.md: Add some notes for Windows

Note that the DLLs for HarfBuzz and its deps must be found %PATH% on Windows so
that pygobject is able to import and use HarfBuzz in Python scripts.

Also note that for Visual Studio builds, it is recommended that Visual Studio
2019 or later is used for the build, possibly in regards with how the
preprocessor handles C++ code when running g-ir-scanner.
This commit is contained in:
Chun-wei Fan 2023-06-28 15:38:40 +08:00 committed by Behdad Esfahbod
parent 10b9ca54e1
commit 87b573615f

View file

@ -9,9 +9,13 @@ sudo apt-get install libgirepository1.0-dev
And then run `meson setup` and make sure that `Introspection` is reported
enabled in output.
If you are building with Visual Studio, it is recommended that Visual Studio
2019 or later is used for this build, for the best build experience.
Compile and install.
Make sure you have the installation lib dir in `LD_LIBRARY_PATH`, as needed
Make sure you have the installation lib dir in `LD_LIBRARY_PATH` (or the
installation DLL dir in `PATH` for Windows systems), as needed
for the linker to find the library.
Then make sure you also have `GI_TYPELIB_PATH` pointing to the resulting