]> git.tdb.fi Git - libs/core.git/blob - Build
Additional adjustments for Poller
[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         if_arch "android"
19         {
20                 build_info
21                 {
22                         library "android";
23                         library "log";
24                 };
25         };
26
27         if_arch "darwin"
28         {
29                 build_info
30                 {
31                         library "Foundation.framework";
32                 };
33         };
34
35         feature "zlib" "Support compression with zlib"
36         {
37                 default "yes";
38         };
39         if_feature "zlib"
40         {
41                 require "zlib";
42         };
43
44         feature "exception_trace" "Support exception backtraces";
45
46         library "mspcore"
47         {
48                 source "source/core";
49                 source "source/debug";
50                 source "source/time";
51                 source "source/strings";
52                 source "source/stringcodec";
53                 source "source/io";
54                 source "source/fs";
55                 if_arch "windows"
56                 {
57                         overlay "windows";
58                 };
59                 if_arch "darwin"
60                 {
61                         overlay "osx";
62                 };
63                 if_arch "android"
64                 {
65                         overlay "android";
66                         build_info
67                         {
68                                 keep_symbol "ANativeActivity_onCreate";
69                         };
70                 };
71                 if_arch "!windows"
72                 {
73                         overlay "unix";
74                 };
75                 overlay "generic";
76                 install true;
77                 install_map
78                 {
79                         map "source" "include/msp";
80                 };
81         };
82
83         program "grep"
84         {
85                 source "examples/grep.cpp";
86                 use "mspcore";
87         };
88
89         program "transcode"
90         {
91                 source "examples/transcode.cpp";
92                 use "mspcore";
93         };
94
95         program "ls"
96         {
97                 source "examples/ls.cpp";
98                 use "mspcore";
99         };
100
101         program "syncdir"
102         {
103                 source "examples/syncdir.cpp";
104                 use "mspcore";
105         };
106
107         if_feature "zlib"
108         {
109                 program "z"
110                 {
111                         source "examples/z.cpp";
112                         use "mspcore";
113                 };
114         };
115
116         source_tarball
117         {
118                 source "License.txt";
119                 source "source/stringcodec/jisx0208.table";
120         };
121 };