d940f4a695ce976c886be6341c08d85ed9a5bade
[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         feature "zlib" "Support compression with zlib"
28         {
29                 default "yes";
30         };
31         if_feature "zlib"
32         {
33                 require "zlib";
34         };
35
36         library "mspcore"
37         {
38                 source "source/core";
39                 source "source/debug";
40                 source "source/time";
41                 source "source/strings";
42                 source "source/stringcodec";
43                 source "source/io";
44                 source "source/fs";
45                 if_arch "windows"
46                 {
47                         overlay "windows";
48                 };
49                 if_arch "darwin"
50                 {
51                         overlay "osx";
52                 };
53                 if_arch "android"
54                 {
55                         overlay "android";
56                         build_info
57                         {
58                                 keep_symbol "ANativeActivity_onCreate";
59                         };
60                 };
61                 if_arch "!windows"
62                 {
63                         overlay "unix";
64                 };
65                 overlay "generic";
66                 install true;
67                 install_map
68                 {
69                         map "source" "include/msp";
70                 };
71         };
72
73         program "grep"
74         {
75                 source "examples/grep.cpp";
76                 use "mspcore";
77         };
78
79         program "transcode"
80         {
81                 source "examples/transcode.cpp";
82                 use "mspcore";
83         };
84
85         program "ls"
86         {
87                 source "examples/ls.cpp";
88                 use "mspcore";
89         };
90
91         program "syncdir"
92         {
93                 source "examples/syncdir.cpp";
94                 use "mspcore";
95         };
96
97         if_feature "zlib"
98         {
99                 program "z"
100                 {
101                         source "examples/z.cpp";
102                         use "mspcore";
103                 };
104         };
105
106         source_tarball
107         {
108                 source "License.txt";
109                 source "source/stringcodec/jisx0208.table";
110         };
111 };