link_OpenSSL.xcpjh


//////////////////// OpenSSL //////////////////////

@if (IsLinuxPlatform)
{
    $OPENSSL_INCLUDE = "/usr/include/openssl"
    $OPENSSL_LIB = "/usr/lib"

    +cpp
    {
        -DCEDA_USING_OPENSSL
        /* -I"$(OPENSSL_INCLUDE)" */
    }
    +link
    {
        /* -L"$(OPENSSL_LIB)" */ 
        -lssl -lcrypto
    }
}

@if (IsMacOSXPlatform)
{
    $OPENSSL_INCLUDE = "/usr/local/ssl/include"
    $OPENSSL_LIB = "/usr/local/ssl/lib"

    +cpp
    {
        -DCEDA_USING_OPENSSL
        -I"$(OPENSSL_INCLUDE)"
    }
    +link
    {
        -L"$(OPENSSL_LIB)"
        -lssl -lcrypto
    }
}

@if (IsiOSPlatform)
{
    $OPENSSL_INCLUDE = "$(HOME)/developer/_root_/ThirdParty.Ceda/OpenSSL-for-iPhone/include"
    $OPENSSL_LIB = "$(HOME)/developer/_root_/ThirdParty.Ceda/OpenSSL-for-iPhone/lib"
}
@if (IsiOSSimPlatform)
{
    $OPENSSL_INCLUDE = "$(HOME)/developer/_root_/ThirdParty.Ceda/OpenSSL-for-iPhone/include"
    $OPENSSL_LIB = "$(HOME)/developer/_root_/ThirdParty.Ceda/OpenSSL-for-iPhone/lib"
}

@if (IsiOSPlatform || IsiOSSimPlatform)
{
    +cpp
    {
        -DCEDA_USING_OPENSSL
        -I"$(OPENSSL_INCLUDE)"
    }
    +link("Dynamic-Link Library", "Application", "Console Application")
    {
        -L"$(OPENSSL_LIB)" 
        -lssl -lcrypto
        //libssl.a
        //libcrypto.a
    }
}

@if (IsWindowsPlatform)
{
    $OPENSSL_INCLUDE = "$(PATH_TO_ROOT)/ThirdParty.Ceda/OpenSSL/1.0.1e/include"
    $OPENSSL_LIB32 = "$(PATH_TO_ROOT)/ThirdParty.Ceda/OpenSSL/1.0.1e/lib32"
    $OPENSSL_LIB64 = "$(PATH_TO_ROOT)/ThirdParty.Ceda/OpenSSL/1.0.1e/lib64"

    +cpp
    {
        /D "CEDA_USING_OPENSSL"
        /I "$(OPENSSL_INCLUDE)"
    }
    +link("Win32")
    {
        "$(OPENSSL_LIB32)/VC/static/libeay32MT.lib"
        "$(OPENSSL_LIB32)/VC/static/ssleay32MT.lib"
    }
    +link("x64")
    {
        "$(OPENSSL_LIB64)/VC/static/libeay32MT.lib"
        "$(OPENSSL_LIB64)/VC/static/ssleay32MT.lib"
    }
}