|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| .gitlab-ci/ | | 12-May-2024 | - | 71 | 55 |
| docs/reference/ | | 12-May-2024 | - | 3,139 | 2,885 |
| examples/ | | 12-May-2024 | - | 1,035 | 841 |
| libsoup/ | | 12-May-2024 | - | 61,860 | 38,294 |
| po/ | | 12-May-2024 | - | 11,586 | 9,187 |
| subprojects/ | | 12-May-2024 | - | 11 | 8 |
| tests/ | | 12-May-2024 | - | 27,510 | 21,847 |
| .gitignore | D | 12-May-2024 | 30 | 3 | 2 |
| .gitlab-ci.yml | D | 12-May-2024 | 403 | 19 | 14 |
| AUTHORS | D | 12-May-2024 | 189 | 14 | 10 |
| BUILD.gn | D | 12-May-2024 | 6.5 KiB | 148 | 142 |
| COPYING | D | 12-May-2024 | 24.8 KiB | 482 | 399 |
| ChangeLog.pre-git | D | 12-May-2024 | 242.4 KiB | 6,958 | 4,960 |
| HACKING | D | 12-May-2024 | 2.2 KiB | 67 | 52 |
| NEWS | D | 12-May-2024 | 144.8 KiB | 3,919 | 2,763 |
| OAT.xml | D | 12-May-2024 | 9.5 KiB | 114 | 60 |
| README | D | 12-May-2024 | 1.1 KiB | 30 | 23 |
| README.OpenSource | D | 12-May-2024 | 428 | 12 | 11 |
| README.msvc | D | 12-May-2024 | 3.7 KiB | 78 | 57 |
| bundle.json | D | 12-May-2024 | 1,000 | 34 | 34 |
| config.h | D | 12-May-2024 | 1.3 KiB | 49 | 14 |
| get_apache_modules_dirs.py | D | 12-May-2024 | 5 KiB | 137 | 87 |
| libsoup.doap | D | 12-May-2024 | 1.6 KiB | 40 | 36 |
| meson.build | D | 12-May-2024 | 13.2 KiB | 382 | 334 |
| meson_options.txt | D | 12-May-2024 | 1.6 KiB | 73 | 61 |
README
README.OpenSource
1[
2 {
3 "Name": "libsoup",
4 "License": "LGPL V2.0",
5 "License File": "COPYING",
6 "Owner": "lixin113@huawei.com",
7 "Version Number": "2.71.0",
8 "Upstream URL": "https://gitlab.gnome.org/GNOME/libsoup.git",
9 "Description": "libsoup is an HTTP client/server library for GNOME. It uses GObjects and the glib main loop, to integrate well with GNOME applications."
10 }
11]
12
README.msvc
1Building with Visual Studio using Meson
2=======================================
3
4Meson is now the supported method of building libsoup using Visual Studio.
5
6Note that you will need libxml2, SQLite3, libpsl and optionally MIT
7Kerberos, in addition to GLib and all its dependencies. You will also need
8a set of GIO modules that implement TLS functionality, which needs to be
9found and loadable by GLib (GIO). glib-openssl is the
10only supported option for this at this time of writing for Visual Studio
11builds. Note that these should be built with the same compiler that is being
12used to build libsoup.
13
14For libxml2, SQLite3 and MIT Kerberos (for GSSAPI functionality), ensure that
15their headers, .lib's and DLLs can be found in the paths defined in your INCLUDE,
16LIB and PATH environmental variables, while you need to set PKG_CONFIG_PATH to
17contain the path to the pkg-config (.pc) files for the various components of GLib
18and for libpsl. If GObject-Introspection is found via pkg-config files, the
19introspection files are built as well.
20
21One can also refer to the following page for building the dependencies:
22
23https://wiki.gnome.org/Projects/GTK%2B/Win32/MSVCCompilationOfGTKStack
24
25You will also need the following items:
26-Python 3.6.x. You will then need to install or update Meson by using pip.
27-The Ninja build tool, required for Visual Studio 2008, 2012 and 2013 builds,
28 and optional for 2010, 2015 and 2017 builds, where Visual Studio projects
29 can be generated instead of the Ninja build files.
30-GIT for Windows is highly recommended, in the case where some required
31 dependencies are not found, and Meson makes use of GIT to download
32 the sources to build in the build process.
33
34To do a build using Meson, do the following:
35
36-Open a Visual Studio (or SDK) command prompt that matches the Visual Studio
37 version and build platform (Win32/x86, x64, etc.) that will be used in all
38 the following steps.
39
40-Create an empty directory/folder for the build. It needs to be in the same
41 drive as where your libsoup sources are located (i.e. $(LIBSOUP_SRCDIR)).
42 cd into that directory/folder.
43
44-Setup your PATH envvar:
45
46 set PATH=%PATH%;$(PYTHON_INSTALL_DIR);$(NINJA_DIR)
47
48 where PYTHON_INSTALL_DIR is where Python 3.6.x+ is installed to, and NINJA_DIR
49 is where your ninja executable can be found. The NINJA_DIR can be omitted if one
50 passes --backend=vs to the Meson configuration line, for Visual Studio 2010, 2015
51 and 2017 builds.
52
53-Configure the build using Meson:
54
55 python $(PYTHON_INSTALL_DIR)\scripts\meson.py $(LIBSOUP_SRCDIR) --buildtype=$(build_configuration) --prefix=$(INSTALL_PREFIX) [--backend=vs]
56
57 Also pass in -Dgssapi=false if not building with GSSAPI support.
58
59 Please see the Meson docs for an explanation for --buildtype, the path passed for
60 --prefix need not to be on the same drive as where the build is carried out, but
61 it is recommended to use forward slashes for this path. The --backend=vs can be
62 used if the Visual Studio project generator is preferred over using Ninja, for
63 Visual Studio 2010, 2015 and 2017 builds.
64
65-Build, test and install the build:
66 Run ninja (and ninja test and ninja install) or open the generated Visual Studio
67 projects to compile, test and install the build.
68
69Note that if building the sources with Visual Studio 2008, note the following
70additional items:
71
72-You need to run the following lines from your build directory, to embed the manifests
73 that are generated during the build, assuming the built binaries are installed
74 to $(PREFIX), after a successful build/installation:
75
76for /r %f in (*.dll.manifest) do if exist $(PREFIX)\bin\%~nf mt /manifest %f $(PREFIX)\bin\%~nf;2
77for /r %f in (*.exe.manifest) do if exist $(PREFIX)\bin\%~nf mt /manifest %f $(PREFIX)\bin\%~nf;1
78