/*
    goahead-mbedtls.me -- MbedTLS Component for the MPR
 */

Me.load({
    targets: {
        mbedtls: {
            description: 'MbedTLS Support',
            configurable: true,
            ifdef:        [ 'ssl' ],
            conflicts:    [ 'openssl', 'matrixssl', 'nanossl' ]
            depends:      [ 'libgoahead-mbedtls' ],
            location:     '${SRC}/goahead-mbedtls',
            '-compiler': [
                '-Wall',
                '-Wshorten-64-to-32',
                '-W3',
            ],
            '+defines': [
                '-D_FILE_OFFSET_BITS=64'
            ]
        },

        'libgoahead-mbedtls': {
            description:  'GoAhead MbedTLS Interface',
            type:         'lib',
            static:       true,
            path:         '${BIN}/libgoahead-mbedtls${ARLIB}',
            ifdef:        [ 'mbedtls' ],
            sources:      [ '*.c' ],
            depends:      [ 'libmbedtls' ],
            '-compiler':  [
                '-Wall',
                '-Wshorten-64-to-32',
                '-W3',
            ],
            '+defines': [
                '-D_FILE_OFFSET_BITS=64'
            ]
        }
    },
    usage: {
        'mbedtls.compact':      'Build a compact edition of MbedTLS',
        'mbedtls.aesRomTables': 'Put AES tables in rom',
        'mbedtls.arc4':         'Enable/Disable ARC4 ciphers',
        'mbedtls.camellia':     'Enable/Disable Camellia ciphers',
        'mbedtls.cbc':          'Enable/Disable CBC ciphers',
        'mbedtls.ccm':          'Enable/Disable CCM ciphers',
        'mbedtls.des':          'Enable/Disable DES ciphers',
        'mbedtls.padlock':      'Enable/Disable Padlock support',
        'mbedtls.psk':          'Enable/Disable Pre-Shared Keys',
        'mbedtls.xtea':         'Enable/Disable XTEA',
    }
})
