]> git.tdb.fi Git - libs/core.git/blob - Build
Allow startup info to be set externally
[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                 install true;
66                 install_map
67                 {
68                         map "source" "include/msp";
69                 };
70         };
71
72         program "grep"
73         {
74                 source "examples/grep.cpp";
75                 use "mspcore";
76         };
77
78         program "transcode"
79         {
80                 source "examples/transcode.cpp";
81                 use "mspcore";
82         };
83
84         program "ls"
85         {
86                 source "examples/ls.cpp";
87                 use "mspcore";
88         };
89
90         program "syncdir"
91         {
92                 source "examples/syncdir.cpp";
93                 use "mspcore";
94         };
95
96         if_feature "zlib"
97         {
98                 program "z"
99                 {
100                         source "examples/z.cpp";
101                         use "mspcore";
102                 };
103         };
104
105         source_tarball
106         {
107                 source "License.txt";
108                 source "source/stringcodec/jisx0208.table";
109         };
110 };