summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2022-06-24 18:38:15 +0000
committerChristian Hergert <christian@hergert.me>2022-06-24 18:38:15 +0000
commit9bd41b37ad85a4855640c302e2fd61a575a429a1 (patch)
treedf92e9d598970a5ab1344342bdf63d72809d168c
parentd560e56f8ee969b61d04340e7b08715bced7f98e (diff)
parent123c8ea5c2255bc46fe1e0e12f3efb2baf35c506 (diff)
downloadgtksourceview-9bd41b37ad85a4855640c302e2fd61a575a429a1.tar.gz
Merge branch 'win32-readme' into 'master'
README.win32: Update info and use MarkDown See merge request GNOME/gtksourceview!268
-rw-r--r--README.win3269
-rw-r--r--README.win32.md72
2 files changed, 72 insertions, 69 deletions
diff --git a/README.win32 b/README.win32
deleted file mode 100644
index 7e327fcc..00000000
--- a/README.win32
+++ /dev/null
@@ -1,69 +0,0 @@
-Building GtkSourceView for Windows with Meson using Visual Studio
-=========
-
-Meson is now the supported method of building GtkSourceView with Visual Studio, where the process
-of doing so is described in the following section:
-
-Prior to building, you will need the following:
--Python 3.5.x or later
--Meson 0.49.0 (or later) at this time of writing
--A version of Visual Studio 2008 to 2019.
--Ninja build tool (unless --backend=vs is
- specified in the Meson configure command line for
- Visual Studio 2010, 2015, 2017, 2019)
--The pkg-config utility (or a compatible one), either in
- your PATH or found by setting PKG_CONFIG to point to
- such a tool.
-
--GLib 2.48.0 (or later) at this time of writing
--GTK 3.20.0 (or later) at this time of writing
--LibXML2 2.6 (or later) at this time of writing
--libgladeui 3.9 (or later) at this time of writing [optional]
--GObject-Introspection 1.42.0 (or later) at this time of writing [optional]
-
-For the depedent packages, you will need to ensure that their pkg-config (.pc) files
-could be found by the pkg-config utility, either directly or by setting PKG_CONFIG_PATH
-to point to the path(s) where the .pc files could be found. For libxml2, if .pc files
-are not available, ensure that its headers and import library can be found by ensuring
-your INCLUDE and LIB environment variables include these repective paths. For the
-introspection to complete successfully, you will also need to ensure that the DLLs can be
-found in the bindir entries of your .pc files or in your PATH.
-
-To build GtkSourceView, do the following:
-
--Open a Visual Studio command prompt.
--In the command prompt, create an empty build directory that is on the same drive
- as the GtkSourceView sources.
--Run the command in the command prompt in your build directory:
- meson <path_to_GtkSourceView_sources> --buildtype=... --prefix=... -Dvapi=false
-
- Where:
- -buildtype can be debug, release,plain or debugoptmized (default),
- please see the Meson documentation for more details
- -prefix is where the built files are copied to upon 'install'
- -Dvapi=false is the build to not check for Vala, which is normally not present
- on Visual Studio builds.
-
- You may want to specify the following as well:
- --backend=vs: Generate Visual Studio projects for building on Visual Studio 2010, 2015
- 2017, 2019. This will remove the need for Ninja. Please note that the
- generated project files are only valid on the machine they are generated.
-
--If the previous command completed successfully, carry out the build by running 'ninja' or
- by opening and building the projects with the generated Visual Studio projects, if using
- --backend=vs. If desired, run the test using 'ninja test' or building the 'test' project
- in the Visual Studio projects.
-
--Install the build results using 'ninja install' or building the 'install' project in the
- Visual Studio projects.
-
-Some additional notes on building with Visual Studio 2008:
-===
-The builds generate the SxS manifest files that need to be manually embedded into the built
-DLL and EXE files, which can be done by after running 'ninja install' using the Visual Studio
-command prompt from within the build directory:
-
- for /r %f in (*.dll.manifest) do if exist <install_prefix>\bin\%~nf mt /manifest %f /outputresource:<install_prefix>\bin\%~nf;2
- for /r %f in (*.exe.manifest) do if exist <install_prefix>\bin\%~nf mt /manifest %f /outputresource:<install_prefix>\bin\%~nf;1
-
-This is to ensure that the built binaries can be run.
diff --git a/README.win32.md b/README.win32.md
new file mode 100644
index 00000000..1c7817d8
--- /dev/null
+++ b/README.win32.md
@@ -0,0 +1,72 @@
+Building GtkSourceView for Windows using Visual Studio
+=========
+
+Meson is now the supported method of building GtkSourceView with Visual Studio, where the process
+of doing so is described in the following section:
+
+Prior to building, you will need the following tools and programs:
+
+- Python 3.6.x or later
+- Meson 0.59.0 (or later) at this time of writing
+- A version of Visual Studio 2015 to 2022.
+- Ninja build tool (unless `--backend=vs` is
+ specified in the Meson configure command line for
+ Visual Studio 2015, 2017, 2019, 2022)
+- The pkg-config utility (or a compatible one), either in
+ your PATH or found by setting PKG_CONFIG to point to
+ such a tool.
+- CMake, either installed manually or as part of Visual Studio 2017 or later
+ (optional, but recommended, to help locating dependencies)
+
+You will also need the following prerequesites installed:
+- GLib 2.70.0 (or later) at this time of writing
+- GTK 4.5.0 (or later) at this time of writing
+- LibXML2 2.6 (or later) at this time of writing
+- GObject-Introspection 1.70.0 (or later) at this time of writing [optional]
+
+For the depedent packages, you will need to ensure that their pkg-config (.pc) files
+could be found by the `pkg-config` utility, either directly or by passing in
+`--pkg-config-path=...` to point to the path(s) where the .pc files could be found in the
+Meson command line. For libxml2, if .pc files are not available, ensure that its headers and
+import library can be found by ensuring your `%INCLUDE%` and `%LIB%` environment variables
+include these repective paths, and ensure that `cmake` is installed and in your `%PATH%`.
+For the introspection to complete successfully, you will also need to ensure that the DLLs
+can be found in the bindir entries of your .pc files or in your `%PATH%`.
+
+ARM64 Windows builds are also supported provided that a valid cross compilation config file
+is set up and passed into the Meson command line using `--cross-file=...`.
+
+#### Building GtkSourceView
+
+Please do the following:
+
+- Open a Visual Studio command prompt.
+- In the command prompt, create an empty build directory that is on the same drive
+ as the GtkSourceView sources.
+- Run the command in the command prompt in your build directory:
+ ```
+ meson <path_to_GtkSourceView_sources> --buildtype=... --prefix=... -Dvapi=false
+ ```
+
+ Where:
+ - `--buildtype...` can be `debug`, `release`, `plain` or `debugoptmized` (default),
+ please see the Meson documentation for more details
+ - `--prefix=...` is where the built files are copied to upon 'install'
+ - `Dvapi=false` is for the build to not check for Vala, which is normally not present
+ on Visual Studio builds.
+
+ You may want to specify the following as well:
+ - `--backend=vs`: Generate Visual Studio projects for building on Visual Studio 2015
+ 2017, 2019 and 2022. This will remove the need for Ninja. Please
+ note that the generated project files are only valid on the machine
+ they are generated, and such builds may not be that well-supported
+ by Meson. Any issues that are found using this method but are not
+ found using Ninja should be reported to the Meson project.
+
+If the previous command completed successfully, carry out the build by running `ninja` or
+by opening and building the projects with the generated Visual Studio projects, if using
+`--backend=vs`. If desired, run the test using `ninja test` or building the `test`
+project in the Visual Studio projects.
+
+Install the build results using `ninja install` or building the `install` project in the
+Visual Studio projects.