-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenie.lua
46 lines (39 loc) · 1016 Bytes
/
genie.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-- configuration :
useJEMalloc = true
solution("folly")
location("build")
targetdir(path.join(path.getabsolute('.'),'build','bin'))
debugdir(path.join(path.getabsolute('.'),'build','bin'))
configurations({'debug','release'})
configuration('debug')
flags('Symbols')
configuration('release')
flags('OptimizeSpeed')
configuration('')
flags('StaticRuntime')
startproject('test')
project('folly')
kind('StaticLib')
language('C++')
files('folly/**')
if useJEMalloc then
defines({'FOLLY_USE_JEMALLOC', 'USE_STATIC'})
end
includedirs({'folly', 'boost', '.', 'jemalloc/include'})
if useJEMalloc then
project('jemalloc')
kind('StaticLib')
language('C')
files('jemalloc/**')
defines('USE_STATIC')
includedirs({'jemalloc', 'jemalloc/include', 'jemalloc/include/jemalloc', 'jemalloc/include/msvc_compat', 'jemalloc/src'})
end
project('test')
kind('ConsoleApp')
language('C++')
files('test/**')
includedirs({'folly', 'boost', '.'})
links({'folly'})
if useJEMalloc then
links('jemalloc')
end