]> git.tdb.fi Git - libs/core.git/blob - Build
Use UInt64 for FileSize
[libs/core.git] / Build
1 package "mspcore"
2 {
3         version "2.0";
4         description "Mikkosoft Productions core library";
5
6         require "sigc++-2.0";
7         if_arch "!windows"
8         {
9                 build_info
10                 {
11                         library "pthread";
12                 };
13         };
14         if_arch "linux"
15         {
16                 build_info
17                 {
18                         library "dl";
19                 };
20         };
21
22         feature "zlib" "Support compression with zlib"
23         {
24                 default "yes";
25         };
26         if_feature "zlib"
27         {
28                 require "zlib";
29         };
30
31         library "mspcore"
32         {
33                 source "source/core";
34                 source "source/debug";
35                 source "source/time";
36                 source "source/strings";
37                 source "source/stringcodec";
38                 source "source/io";
39                 source "source/fs";
40                 install true;
41                 install_map
42                 {
43                         map "source" "include/msp";
44                 };
45         };
46
47         program "grep"
48         {
49                 source "examples/grep.cpp";
50                 use "mspcore";
51         };
52
53         program "transcode"
54         {
55                 source "examples/transcode.cpp";
56                 use "mspcore";
57         };
58
59         program "ls"
60         {
61                 source "examples/ls.cpp";
62                 use "mspcore";
63         };
64
65         program "syncdir"
66         {
67                 source "examples/syncdir.cpp";
68                 use "mspcore";
69         };
70
71         if_feature "zlib"
72         {
73                 program "z"
74                 {
75                         source "examples/z.cpp";
76                         use "mspcore";
77                 };
78         };
79
80         source_tarball
81         {
82                 source "License.txt";
83                 source "source/stringcodec/jisx0208.table";
84         };
85 };