source: tol/windows/build_tools/build_tol_sdk/build_tol_sdk.tol @ 1d6595e

1941-docker-image-to-testdevel
Last change on this file since 1d6595e was 1d6595e, checked in by Víctor de Buen <vdebuen@…>, 16 years ago

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

  • Property mode set to 100644
File size: 1005 bytes
Line 
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);
8
9Set EvalSet(GetDir("root")[1],Real(Text file)
10{
11  OSFilCopy("root/"+file,sdkPath+"/"+file)
12});
13
14
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 TracBrowser for help on using the repository browser.