| 1 | Text sourcePath = "../../../tol";
|
|---|
| 2 | Text libPath = "../../../tol/win-VC9/release";
|
|---|
| 3 | Text sdkPath = "../../tol_sdk_win";
|
|---|
| 4 | Text sdkIncPath = sdkPath+"/tol";
|
|---|
| 5 | Text sdkLibPath = sdkPath+"/lib";
|
|---|
| 6 | Real OSDirMake(sdkIncPath);
|
|---|
| 7 | Real OSDirMake(sdkLibPath);
|
|---|
| 8 |
|
|---|
| 9 | Set EvalSet(GetDir("root")[1],Real(Text file)
|
|---|
| 10 | {
|
|---|
| 11 | OSFilCopy("root/"+file,sdkPath+"/"+file)
|
|---|
| 12 | });
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | Real 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 |
|
|---|
| 39 | Real PlainHeader(sourcePath);
|
|---|
| 40 | Real OSFilCopy(libPath+"/tol.lib",sdkLibPath);
|
|---|
| 41 | Real OSFilCopy(libPath+"/../config.h",sdkIncPath);
|
|---|
| 42 |
|
|---|
| 43 | Real PackArchive::PackFull("ZipArchive", sdkPath);
|
|---|
| 44 | Real OSFilMove(sdkPath+".zip","../../ActiveTOL/lib");
|
|---|
| 45 |
|
|---|