Merge branch 'fs-master'
[libs/core.git] / Build
1 /* $Id$ */
2
3 package "mspcore"
4 {
5         version "1.1";
6         description "Mikkosoft Productions core library";
7
8         require "sigc++-2.0";
9         if "arch!=win32"
10         {
11                 build_info
12                 {
13                         library "pthread";
14                 };
15         };
16         if "arch=linux"
17         {
18                 build_info
19                 {
20                         library "dl";
21                 };
22         };
23
24         feature "exception_backtrace" "Generate a backtrace when an exception is thrown.";
25
26         headers "msp/core"
27         {
28                 source "source/core";
29                 install true;
30         };
31
32         headers "msp/time"
33         {
34                 source "source/time";
35                 install true;
36         };
37
38         headers "msp/debug"
39         {
40                 source "source/debug";
41                 install true;
42         };
43
44         headers "msp/strings"
45         {
46                 source "source/strings";
47                 install true;
48         };
49
50         headers "msp/stringcodec"
51         {
52                 source "source/stringcodec";
53                 install true;
54         };
55
56         headers "msp/io"
57         {
58                 source "source/io";
59                 install true;
60         };
61
62         headers "msp/fs"
63         {
64                 source "source/fs";
65                 install true;
66         };
67
68         library "mspcore"
69         {
70                 source "source/core";
71                 source "source/debug";
72                 source "source/time";
73                 source "source/strings";
74                 source "source/stringcodec";
75                 source "source/io";
76                 source "source/fs";
77                 install true;
78         };
79
80         program "grep"
81         {
82                 source "grep.cpp";
83                 build_info
84                 {
85                         library "mspcore";
86                 };
87         };
88
89         program "transcode"
90         {
91                 source "transcode.cpp";
92                 build_info
93                 {
94                         library "mspcore";
95                 };
96         };
97
98         tarball "@src"
99         {
100                 source "License.txt";
101                 source "source/stringcodec/jisx0208.table";
102         };
103 };