]> git.tdb.fi Git - libs/core.git/blob - Build
Make Console references static instead of extern
[libs/core.git] / Build
1 package "mspcore"
2 {
3         version "3.0";
4         description "Mikkosoft Productions core library";
5
6         require "sigc++-2.0";
7         build_info
8         {
9                 threads true;
10                 standard CXX "c++11";
11         };
12         if_arch "linux"
13         {
14                 build_info
15                 {
16                         library "dl";
17                 };
18         };
19         if_arch "android"
20         {
21                 build_info
22                 {
23                         library "android";
24                         library "log";
25                 };
26         };
27
28         if_arch "darwin"
29         {
30                 build_info
31                 {
32                         library "Foundation.framework";
33                 };
34         };
35
36         if_arch "windows"
37         {
38                 build_info
39                 {
40                         library "advapi32";
41                         library "shell32";
42                 };
43         };
44
45         feature "zlib" "Support compression with zlib"
46         {
47                 default "yes";
48         };
49         if_feature "zlib"
50         {
51                 require "zlib";
52         };
53
54         feature "exception_trace" "Support exception backtraces";
55
56         library "mspcore"
57         {
58                 source "source/core";
59                 source "source/debug";
60                 source "source/time";
61                 source "source/strings";
62                 source "source/stringcodec";
63                 source "source/io";
64                 source "source/fs";
65                 if_arch "windows"
66                 {
67                         overlay "windows";
68                 };
69                 if_arch "darwin"
70                 {
71                         overlay "osx";
72                 };
73                 if_arch "android"
74                 {
75                         overlay "android";
76                         build_info
77                         {
78                                 keep_symbol "ANativeActivity_onCreate";
79                         };
80                 };
81                 if_arch "!windows"
82                 {
83                         overlay "unix";
84                 };
85                 overlay "generic";
86                 install true;
87                 install_map
88                 {
89                         map "source" "include/msp";
90                 };
91         };
92
93         program "grep"
94         {
95                 source "examples/grep.cpp";
96                 use "mspcore";
97         };
98
99         program "transcode"
100         {
101                 source "examples/transcode.cpp";
102                 use "mspcore";
103         };
104
105         program "ls"
106         {
107                 source "examples/ls.cpp";
108                 use "mspcore";
109         };
110
111         program "syncdir"
112         {
113                 source "examples/syncdir.cpp";
114                 use "mspcore";
115         };
116
117         if_feature "zlib"
118         {
119                 program "z"
120                 {
121                         source "examples/z.cpp";
122                         use "mspcore";
123                 };
124         };
125
126         source_tarball
127         {
128                 source "License.txt";
129                 source "source/stringcodec/jisx0208.table";
130         };
131 };