]> git.tdb.fi Git - libs/core.git/blob - Build
aea04a16e0a12b39f8e30d3b945cfffa058d14c6
[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 "darwin"
42                 {
43                         overlay "osx";
44                 };
45                 if_arch "!windows"
46                 {
47                         overlay "unix";
48                 };
49                 install true;
50                 install_map
51                 {
52                         map "source" "include/msp";
53                 };
54         };
55
56         program "grep"
57         {
58                 source "examples/grep.cpp";
59                 use "mspcore";
60         };
61
62         program "transcode"
63         {
64                 source "examples/transcode.cpp";
65                 use "mspcore";
66         };
67
68         program "ls"
69         {
70                 source "examples/ls.cpp";
71                 use "mspcore";
72         };
73
74         program "syncdir"
75         {
76                 source "examples/syncdir.cpp";
77                 use "mspcore";
78         };
79
80         if_feature "zlib"
81         {
82                 program "z"
83                 {
84                         source "examples/z.cpp";
85                         use "mspcore";
86                 };
87         };
88
89         source_tarball
90         {
91                 source "License.txt";
92                 source "source/stringcodec/jisx0208.table";
93         };
94 };