-
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. Use 'add_project_arguments' instead of 'vala_defines' Disable '--socket' option if 'gio-unix-2.0' is not available. For FastCGI, use 'GLib.Win32InputStream' and 'GLib.Win32OutputStream' and gracefully fallback with basic I/O wrapper. Add basic cross files to target 32 and 64 bit targets with MinGW.
- Loading branch information
Showing
14 changed files
with
165 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[binaries] | ||
exe_wrapper = 'wine' | ||
c = '/usr/bin/i686-w64-mingw32-gcc' | ||
strip = '/usr/bin/i686-w64-mingw32-strip' | ||
pkgconfig = '/usr/bin/i686-w64-mingw32-pkg-config' | ||
|
||
[host_machine] | ||
system = 'windows' | ||
cpu_family = 'x86' | ||
cpu = 'i686' | ||
endian = 'little' |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[binaries] | ||
exe_wrapper = 'wine' | ||
c = '/usr/bin/x86_64-w64-mingw32-gcc' | ||
strip = '/usr/bin/x86_64-w64-mingw32-strip' | ||
pkgconfig = '/usr/bin/x86_64-w64-mingw32-pkg-config' | ||
|
||
[host_machine] | ||
system = 'windows' | ||
cpu_family = 'x86_64' | ||
cpu = 'x86_64' | ||
endian = 'little' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
shared_library('vsgi-http', ['vsgi-http.vala'], | ||
dependencies: [glib, gobject, gio, soup, vsgi], | ||
vala_args: vala_defines, | ||
install: true, | ||
install_dir: '@0@/vsgi-@1@/servers'.format(get_option('libdir'), api_version)) | ||
|
||
shared_library('vsgi-cgi', 'vsgi-cgi.vala', | ||
dependencies: [glib, gobject, gio, gio_unix, soup, vsgi], | ||
vala_args: vala_defines, | ||
dependencies: [glib, gobject, gio, gio_unix, gio_windows, soup, vsgi], | ||
install: true, | ||
install_dir: '@0@/vsgi-@1@/servers'.format(get_option('libdir'), api_version)) | ||
|
||
fcgi = meson.get_compiler('c').find_library('fcgi', required: false) | ||
if fcgi.found() | ||
fcgi_vapi = meson.get_compiler('vala').find_library('fcgi', dirs: meson.current_source_dir()) | ||
shared_library('vsgi-fastcgi', 'vsgi-fastcgi.vala', | ||
dependencies: [glib, gobject, gio, gio_unix, soup, vsgi, fcgi, fcgi_vapi], | ||
vala_args: vala_defines, | ||
dependencies: [glib, gobject, gio, gio_unix, gio_windows, soup, vsgi, fcgi, fcgi_vapi], | ||
install: true, | ||
install_dir: '@0@/vsgi-@1@/servers'.format(get_option('libdir'), api_version)) | ||
endif | ||
|
||
shared_library('vsgi-scgi', 'vsgi-scgi.vala', | ||
dependencies: [glib, gobject, gio, soup, vsgi], | ||
vala_args: vala_defines, | ||
install: true, | ||
install_dir: '@0@/vsgi-@1@/servers'.format(get_option('libdir'), api_version)) |
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
Oops, something went wrong.