-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide minimal support for Windows (fix #146)
Make both platform-dependant 'gio-unix-2.0' and 'gio-windows-2.0' dependencies optional and use features accordingly via 'GIO_UNIX' and 'GIO_WINDOWS' definitions. For FastCGI, gracefully fallback with no fd-based async I/O.
- Loading branch information
Showing
9 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ vsgi_sources = files( | |
'vsgi-socket-server.vala', | ||
'vsgi-tee-output-stream.vala') | ||
vsgi_lib = library('vsgi-' + api_version, vsgi_sources, | ||
dependencies: [glib, gobject, gio, gio_unix, gmodule, soup], | ||
dependencies: [glib, gobject, gio, gio_unix, gio_windows, gmodule, soup], | ||
vala_args: ['--pkg=posix'] + vala_defines, | ||
link_args: '-Wl,-rpath,$$ORIGIN/servers', | ||
install: true, | ||
|
@@ -33,9 +33,19 @@ install_headers(meson.current_build_dir() + '/vsgi-@[email protected]'.format(api_version), s | |
install_data(meson.current_build_dir() + '/vsgi-@[email protected]'.format(api_version), install_dir: 'share/vala/vapi') | ||
install_data('vsgi-@[email protected]'.format(api_version), install_dir: 'share/vala/vapi') | ||
|
||
vsgi_requires_private = ['gmodule-2.0'] | ||
|
||
if gio_unix.found () | ||
vsgi_requires_private += 'gio-unix-2.0' | ||
endif | ||
|
||
if gio_windows.found() | ||
vsgi_requires_private += 'gio-windows-2.0' | ||
endif | ||
|
||
pkgconfig = import('pkgconfig') | ||
pkgconfig.generate(requires: 'glib-2.0 gobject-2.0 gio-2.0 libsoup-2.4', | ||
requires_private: 'gio-unix-2.0 gmodule-2.0', | ||
requires_private: vsgi_requires_private, | ||
libraries: vsgi_lib, | ||
version: meson.project_version(), | ||
name: 'VSGI', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters