link_GLib.xcpjh


//////////////////// GLib //////////////////////
/*
GLib is a cross-platform software utility library that began as part of the GTK+ project. However,
before releasing version 2 of GTK+, the project's developers decided to separate non-GUI-specific 
code from the GTK+ platform, thus creating GLib as a separate product. GLib was released as a 
separate library so other developers, those who did not make use of the GUI-related portions of 
GTK+, could make use of the non-GUI portions of the library without the overhead of depending on 
the entire GUI library.

Since GLib is a cross-platform library, applications using it to interface with the operating 
system are usually portable across different operating systems without major changes

GLib package consists of 5 libraries: GObject Glib GModule GThread GIO
*/

@if (IsWindowsPlatform)
{    
    +cpp("Win32")
    {
        /I "$(GTKPLUS_WIN32_INCLUDE)/glib-2.0"
        /I "$(GTKPLUS_WIN32_LIB)/glib-2.0/include"         // for glibconfig.h
    }
    +cpp("x64")
    {
        /I "$(GTKPLUS_WIN64_INCLUDE)/glib-2.0"
        /I "$(GTKPLUS_WIN64_LIB)/glib-2.0/include"         // for glibconfig.h
    }

    +link("Win32")
    {
        "$(GTKPLUS_WIN32_LIB)/libgobject-2.0-0.lib"
        "$(GTKPLUS_WIN32_LIB)/libgio-2.0-0.lib"
        "$(GTKPLUS_WIN32_LIB)/libglib-2.0-0.lib"
        "$(GTKPLUS_WIN32_LIB)/libgmodule-2.0-0.lib"
        "$(GTKPLUS_WIN32_LIB)/libgthread-2.0-0.lib"
    }
    +link("x64")
    {
        "$(GTKPLUS_WIN64_LIB)/libgobject-2.0-0.lib"
        "$(GTKPLUS_WIN64_LIB)/libgio-2.0-0.lib"
        "$(GTKPLUS_WIN64_LIB)/libglib-2.0-0.lib"
        "$(GTKPLUS_WIN64_LIB)/libgmodule-2.0-0.lib"
        "$(GTKPLUS_WIN64_LIB)/libgthread-2.0-0.lib"
    }
}

@if (IsMacOSXPlatform)
{
    // installed when brew-install gtk+ is done above
    +cpp
    {
        `pkg-config --cflags glib-2.0`
    }
}