"Fossies" - the Fresh Open Source Software Archive

Member "mariadb-connector-c-3.0.8-src/cmake/export.cmake" (18 Dec 2018, 1121 Bytes) of package /linux/misc/mariadb-connector-c-3.0.8-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) CMake source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "export.cmake": 3.0.2-src_vs_3.0.3-src.

    1 #
    2 #  Copyright (C) 2013-2016 MariaDB Corporation AB
    3 #
    4 #  Redistribution and use is allowed according to the terms of the New
    5 #  BSD license.
    6 #  For details see the COPYING-CMAKE-SCRIPTS file.
    7 #
    8 MACRO(CREATE_EXPORT_FILE op outfile version symbols alias_version)
    9   IF(WIN32)
   10     SET(EXPORT_CONTENT "EXPORTS\n")
   11     FOREACH(exp_symbol ${symbols})
   12       SET(EXPORT_CONTENT ${EXPORT_CONTENT} "${exp_symbol}\n")
   13     ENDFOREACH()
   14   ELSE()
   15     SET(EXPORT_CONTENT "VERSION {\n${version} {\nglobal:\n")
   16     FOREACH(exp_symbol ${symbols})
   17       SET(EXPORT_CONTENT "${EXPORT_CONTENT} ${exp_symbol}\\;\n")
   18     ENDFOREACH()
   19     SET(EXPORT_CONTENT "${EXPORT_CONTENT}local:\n *\\;\n}\\;\n")
   20     IF ("${alias_version}" STRGREATER "")
   21       SET(EXPORT_CONTENT "${EXPORT_CONTENT}${alias_version} {\n}\\;\n}\\;\n")
   22       FOREACH(exp_symbol ${symbols})
   23         SET(EXPORT_CONTENT "${EXPORT_CONTENT}\"${exp_symbol}@${alias_version}\" = ${exp_symbol}\\;\n")
   24       ENDFOREACH()
   25     ELSE()
   26       SET(EXPORT_CONTENT "${EXPORT_CONTENT}}\\;\n")
   27     ENDIF()
   28   ENDIF()
   29   FILE(${op} ${CMAKE_CURRENT_BINARY_DIR}/${outfile} ${EXPORT_CONTENT})
   30 ENDMACRO()