Changeset 9497a50 in tol for tol/init.cpp


Ignore:
Timestamp:
Dec 14, 2010, 3:50:22 PM (16 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
4e10a23
Parents:
c3ac31e
Message:

TOLSDKPath in UNIX

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/init.cpp

    rc3ac31e r9497a50  
    906906  static char aux_  [128];
    907907  static bool init_ = false;
     908
    908909  if(!init_)
    909910  {
    … …  
    11241125             "El camino del programa TOL que esta siendo ejecutado en este momento."
    11251126       "Es util, por ejemplo, para llamar a TOL usando el sistema operativo."));
    1126   #ifdef UNIX
    1127   #else
    1128   BText binPath = GetFilePath(_tolSessionPath_);
    1129   _tolSdkPath_ = GetStandardAbsolutePath(binPath+"../tol_sdk_win/");
    1130   #endif
    1131   tolSdkPath_ = new BSystemText("TOLSdkPath", _tolSdkPath_,
    1132     I2("The path of the TOL headers.",
    1133              "El camino de las cabeceras de TOL."));
    11341127
    11351128  TOLHasBeenInitialized_ = true;
    … …  
    11611154    InitTOLFile(initTolPath.Name());
    11621155  }
     1156  #ifdef UNIX
     1157  // OJO: si tol se ejecuta desde el raiz del fuente entonces el
     1158  // stdlib se asume relativo a ese sitio y entonces el include que se
     1159  // forma aqui no es correcto.
     1160  BText stdlibPath = GetFilePath( initTolPath.Name() );
     1161  _tolSdkPath_ = GetStandardAbsolutePath( stdlibPath + "../../../include/" );
     1162  #else
     1163  BText binPath = GetFilePath( _tolSessionPath_ );
     1164  _tolSdkPath_ = GetStandardAbsolutePath( binPath+"../tol_sdk_win/" );
     1165  #endif
     1166  tolSdkPath_ = new BSystemText("TOLSDKPath", _tolSdkPath_,
     1167    I2("The path of the TOL headers.",
     1168             "El camino de las cabeceras de TOL."));
    11631169}
    11641170
Note: See TracChangeset for help on using the changeset viewer.