mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
Use bin/gio/modules when building with visual studio
This commit is contained in:
parent
6dedc0364a
commit
144a87a643
@ -1022,9 +1022,18 @@ get_gio_module_dir (void)
|
|||||||
gchar *install_dir;
|
gchar *install_dir;
|
||||||
|
|
||||||
install_dir = g_win32_get_package_installation_directory_of_module (gio_dll);
|
install_dir = g_win32_get_package_installation_directory_of_module (gio_dll);
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
/* On Visual Studio builds we have all the libraries and binaries in bin
|
||||||
|
* so better load the gio modules from bin instead of lib
|
||||||
|
*/
|
||||||
|
module_dir = g_build_filename (install_dir,
|
||||||
|
"bin", "gio", "modules",
|
||||||
|
NULL);
|
||||||
|
#else
|
||||||
module_dir = g_build_filename (install_dir,
|
module_dir = g_build_filename (install_dir,
|
||||||
"lib", "gio", "modules",
|
"lib", "gio", "modules",
|
||||||
NULL);
|
NULL);
|
||||||
|
#endif
|
||||||
g_free (install_dir);
|
g_free (install_dir);
|
||||||
#else
|
#else
|
||||||
module_dir = GIO_MODULE_DIR;
|
module_dir = GIO_MODULE_DIR;
|
||||||
|
Loading…
Reference in New Issue
Block a user