Changeset 1d6595e in tol


Ignore:
Timestamp:
Aug 5, 2010, 9:13:06 AM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
7e94347
Parents:
8dd0559
Message:

Refs #956
Builds tol_sdk copying headers recursively

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • windows/build_tools/build_tol_sdk/build_tol_sdk.tol

    r8dd0559 r1d6595e  
     1Text sourcePath = "../../../tol";
     2Text libPath = "../../../tol/win-VC9/release";
     3Text sdkPath = "../../tol-sdk";
     4Text sdkIncPath = sdkPath+"/tol";
     5Text sdkLibPath = sdkPath+"/lib";
     6Real OSDirMake(sdkIncPath);
     7Real OSDirMake(sdkLibPath);
    18
    2 Text path = "../../tol";
    3 Set root = GetDir("../../tol");
    4 
    5 Set dir = root;
    6 
    7 Set head = Select(dir[1],Real(Text s)
     9Set EvalSet(GetDir("root")[1],Real(Text file)
    810{
    9   Or(TextEndAt(s,".h"),TextEndAt(s,".hpp"))
    10 });
    11 
    12 Set sub = Select(dir[2],Real(Text s)
    13 {
    14   And(!TextBeginWith(s,"."),!TextBeginWith(s,"win"))
     11  OSFilCopy("root/"+file,sdkPath+"/"+file)
    1512});
    1613
    1714
     15Real PlainHeader(Text sourcePath)
     16{
     17  WriteLn("PlainHeader "+sourcePath);
     18  Set dir = GetDir(sourcePath);
     19  Set head = Select(dir[1],Real(Text s)
     20  {
     21    Or(TextEndAt(s,".h"),TextEndAt(s,".hpp"))
     22  });
     23  Set EvalSet(head,Real(Text file)
     24  {
     25    OSFilCopy(sourcePath+"/"+file,sdkIncPath+"/"+file)
     26  });
     27  Set sub = Select(dir[2],Real(Text s)
     28  {
     29    And(!TextBeginWith(s,"."),!TextBeginWith(s,"win"))
     30  });
     31  Set EvalSet(sub,Real(Text s)
     32  {
     33    PlainHeader(sourcePath+"/"+s)
     34  });
     35  True
     36};
     37 
     38 
     39Real PlainHeader(sourcePath);
     40Real OSFilCopy(libPath+"/tol.lib",sdkLibPath);
     41Real OSFilCopy(libPath+"/../config.tol",sourcePath);
     42
Note: See TracChangeset for help on using the changeset viewer.