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