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