link_Pango.xcpjh


//////////////////// Pango //////////////////////
/*
Pango is a text layout engine library which works with the HarfBuzz shaping engine for 
displaying multi-language text.

It uses the LGPL license and therefore may be used in proprietary software as long as there is a 
clear separation in the binaries (using shared libraries).
*/

@if (IsWindowsPlatform)
{    
    +cpp("Win32")
    {
        /I "$(GTKPLUS_WIN32_INCLUDE)/pango-1.0"
    }
    +cpp("x64")
    {
        /I "$(GTKPLUS_WIN64_INCLUDE)/pango-1.0"
    }
    +link("Win32")
    {
        "$(GTKPLUS_WIN32_LIB)/libpango-1.0-0.lib"
        "$(GTKPLUS_WIN32_LIB)/libpangocairo-1.0-0.lib"
        "$(GTKPLUS_WIN32_LIB)/libpangoft2-1.0-0.lib"
        "$(GTKPLUS_WIN32_LIB)/libpangowin32-1.0-0.lib"
    }
    +link("x64")
    {
        "$(GTKPLUS_WIN64_LIB)/libpango-1.0-0.lib"
        "$(GTKPLUS_WIN64_LIB)/libpangocairo-1.0-0.lib"
        "$(GTKPLUS_WIN64_LIB)/libpangoft2-1.0-0.lib"
        "$(GTKPLUS_WIN64_LIB)/libpangowin32-1.0-0.lib"
    }
}

@if (IsMacOSXPlatform)
{
    // expects brew install pango to succeed
    +cpp
    {
        //-I"/usr/local/include/pango-1.0/"
        `pkg-config --cflags pango`
    }
    +link
    {
        //`pkg-config --libs pango`
        `pkg-config --libs pangocairo`
    }
}