Changeset b6e5dacc in tol for toltcl/generic/toltcl.h


Ignore:
Timestamp:
Feb 10, 2015, 9:48:20 PM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
cc7ddc7
Parents:
950d323
Message:

refs #1812, refs #1818, compilación basada en CMake, eliminación de warnings, automatización de la regla install.

Configuración en Linux como:

cmake -DCMAKE_TOOLCHAIN_FILE=../linux-i686.toolchain.cmake -DTOL_PREFIX_PATH=/usr/local/tol32 -DCMAKE_BUILD_TYPE=Release -DTCL_LIBRARY=/usr/local/tcl8.5-i686/lib/libtcl8.5.so ..

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6456 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toltcl/generic/toltcl.h

    r950d323 rb6e5dacc  
    2727#include <tcl.h>
    2828
     29#if defined(__TOLTCL_MAJOR_VERSION__)
     30#define TOLTCL_MAJOR_VERSION    __TOLTCL_MAJOR_VERSION__
     31#else
     32#define TOLTCL_MAJOR_VERSION    3
     33#endif
     34
     35#if defined(__TOLTCL_MINOR_VERSION__)
     36#define TOLTCL_MINOR_VERSION    __TOLTCL_MINOR_VERSION__
     37#else
     38#define TOLTCL_MINOR_VERSION    2
     39#endif
     40
     41#define TOLTCL_TO_STRING0( x ) #x
     42#define TOLTCL_TO_STRING(  x )  TOLTCL_TO_STRING0( x )
     43
     44#ifdef PACKAGE_VERSION
     45 #define TOLTCL_VERSION PACKAGE_VERSION
     46#else
     47
     48#define TOLTCL_VERSION TOLTCL_TO_STRING( TOLTCL_MAJOR_VERSION ) "." TOLTCL_TO_STRING( TOLTCL_MINOR_VERSION )
     49#endif
     50
    2951/*
    3052 * Windows needs to know which symbols to export. Unix does not.
    3153 * BUILD_TOLTCL should be undefined for Unix.
    3254 */
    33 
    34 #define TOLTCL_MAJOR_VERSION    3
    35 #define TOLTCL_MINOR_VERSION    2
    36 #ifdef PACKAGE_VERSION
    37  #define TOLTCL_VERSION PACKAGE_VERSION
    38 #else
    39  #define TOLTCL_VERSION          "3.2"
    40 #endif
    4155
    4256#ifdef BUILD_TOLTCL
Note: See TracChangeset for help on using the changeset viewer.