Update .gitignore
[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         build_info
8         {
9                 threads true;
10         };
11         if_arch "linux"
12         {
13                 build_info
14                 {
15                         library "dl";
16                 };
17         };
18
19         feature "zlib" "Support compression with zlib"
20         {
21                 default "yes";
22         };
23         if_feature "zlib"
24         {
25                 require "zlib";
26         };
27
28         library "mspcore"
29         {
30                 source "source/core";
31                 source "source/debug";
32                 source "source/time";
33                 source "source/strings";
34                 source "source/stringcodec";
35                 source "source/io";
36                 source "source/fs";
37                 if_arch "windows"
38                 {
39                         overlay "windows";
40                 };
41                 if_arch "!windows"
42                 {
43                         overlay "unix";
44                 };
45                 install true;
46                 install_map
47                 {
48                         map "source" "include/msp";
49                 };
50         };
51
52         program "grep"
53         {
54                 source "examples/grep.cpp";
55                 use "mspcore";
56         };
57
58         program "transcode"
59         {
60                 source "examples/transcode.cpp";
61                 use "mspcore";
62         };
63
64         program "ls"
65         {
66                 source "examples/ls.cpp";
67                 use "mspcore";
68         };
69
70         program "syncdir"
71         {
72                 source "examples/syncdir.cpp";
73                 use "mspcore";
74         };
75
76         if_feature "zlib"
77         {
78                 program "z"
79                 {
80                         source "examples/z.cpp";
81                         use "mspcore";
82                 };
83         };
84
85         source_tarball
86         {
87                 source "License.txt";
88                 source "source/stringcodec/jisx0208.table";
89         };
90 };