Changeset f81e259 in tol


Ignore:
Timestamp:
Apr 2, 2011, 11:00:49 AM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
668d386
Parents:
3a7b685
Message:

Refs #1153
New methods CppTools.Path and CppTools.Check

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/general/TolPackage/client.tol

    r3a7b685 rf81e259  
    837837    DownloadPackage(vsi->te_url,vsi->co_name_version,True,localRoot)
    838838  }))
     839};
     840
     841////////////////////////////////////////////////////////////////////////////////
     842  Text CppTools.Path(NameBlock package)
     843////////////////////////////////////////////////////////////////////////////////
     844{
     845  Text packageName = package::_.autodoc.name;
     846  Text dllPath.rel = GetAbsolutePath("CppTools/"+ GetHardSoftPlattform(0));
     847  Text dllPath.deb = dllPath.rel+"_dbg";
     848  Text dllFile.rel = dllPath.rel+"/"+packageName+"."+GetSharedLibExt(0);
     849  Text dllFile.deb = dllPath.deb+"/"+packageName+"."+GetSharedLibExt(0);
     850  If(!TextEndAt(Version,"{DEBUG}"),dllFile.rel,
     851  {
     852    If(OSDirExist(dllFile.deb),dllFile.deb,
     853    {
     854      WriteLn("Cannot find debug library "+dllFile.deb+
     855              ".\n Trying to load "+dllFile.rel);
     856      dllFile.rel
     857    })
     858  })
     859};
     860
     861////////////////////////////////////////////////////////////////////////////////
     862  Real CppTools.Check(NameBlock package, Text dllFile, Text chechMethod)
     863////////////////////////////////////////////////////////////////////////////////
     864{
     865  Text packageName = package::_.autodoc.name;
     866  Real ok = ObjectExist("Code","package::CppTools::"+chechMethod);
     867  WriteLn("["+packageName+"] Loading library "+dllFile+
     868          " -> "<<If(ok,"OK","FAIL"),If(ok,"S","E"));
     869  ok
    839870}
    840871
     872
    841873]];
    842874
Note: See TracChangeset for help on using the changeset viewer.