-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake4.lua
More file actions
77 lines (64 loc) · 1.66 KB
/
Copy pathpremake4.lua
File metadata and controls
77 lines (64 loc) · 1.66 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
solution( "BooruSurfer2" )
configurations{ "debug", "release" }
project( "Server" )
kind( "ConsoleApp" )
targetname( "BooruSurfer" )
language( "C++" )
location( "build" )
files( { "./src/**.h", "./src/**.cpp" } )
-- Enable C++14 support
buildoptions{ "-std=c++14 -pthread" }
-- Warnings
buildoptions{ "-Wall" }
links( {
"tidy"
, "jansson"
, "png"
, "sqlite3"
-- Poco libraries and dependencies
, "PocoNetSSL"
, "PocoCrypto"
, "PocoNet"
, "PocoUtil"
, "PocoJSON"
, "PocoXML"
, "PocoFoundation"
, "Ws2_32"
, "wsock32"
, "ssl"
, "crypto"
, "iphlpapi"
-- Windows thumbnail
, "Shell32"
, "Uuid"
, "Gdi32"
, "Ole32"
, "Windowscodecs"
, "boost_system-mgw52-mt-1_61"
, "boost_filesystem-mgw52-mt-1_61.dll"
} )
defines { "POCO_STATIC" }
configuration( "debug" )
build_dir = "debug"
targetdir( "bin/" .. build_dir )
defines( { "DEBUG" } )
flags { "Symbols" }
configuration( "release" )
build_dir = "release"
targetdir( "bin/" .. build_dir )
defines( { "RELEASE" } )
flags { "Optimize" }
-- Copy data files
os.mkdir( "bin/" .. build_dir .. "/data" )
files = os.matchfiles( "data/*.*" );
for k, f in pairs( files ) do
os.copyfile( f, "bin/" .. build_dir .. "/data/" .. path.getname(f) );
end
-- Copy resource files
os.mkdir( "bin/" .. build_dir .. "/data" )
files = os.matchfiles( "resources/*.*" );
for k, f in pairs( files ) do
os.copyfile( f, "bin/" .. build_dir .. "/resources/" .. path.getname(f) );
end
--Compile Scss
os.execute( "sass styles/main.scss bin/" .. build_dir .. "/resources/main.css" );