forked from google/guetzli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
53 lines (47 loc) · 1.44 KB
/
premake5.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
45
46
47
48
49
50
51
52
53
workspace "guetzli"
configurations { "Release", "Debug" }
language "C++"
flags { "C++11" }
includedirs { ".", "third_party/butteraugli" }
filter "action:vs*"
platforms { "x86_64", "x86" }
filter "platforms:x86"
architecture "x86"
filter "platforms:x86_64"
architecture "x86_64"
-- workaround for #41
filter "action:gmake"
symbols "On"
filter "configurations:Debug"
symbols "On"
filter "configurations:Release"
optimize "Full"
filter {}
project "guetzli_static"
kind "StaticLib"
files
{
"guetzli/*.cc",
"guetzli/*.h",
"third_party/butteraugli/butteraugli/butteraugli.cc",
"third_party/butteraugli/butteraugli/butteraugli.h"
}
removefiles "guetzli/guetzli.cc"
filter "action:gmake"
linkoptions { "`pkg-config --static --libs libpng || libpng-config --static --ldflags`" }
buildoptions { "`pkg-config --static --cflags libpng || libpng-config --static --cflags`" }
project "guetzli"
kind "ConsoleApp"
filter "action:gmake"
linkoptions { "`pkg-config --libs libpng || libpng-config --ldflags`" }
buildoptions { "`pkg-config --cflags libpng || libpng-config --cflags`" }
filter "action:vs*"
links { "shlwapi" }
filter {}
files
{
"guetzli/*.cc",
"guetzli/*.h",
"third_party/butteraugli/butteraugli/butteraugli.cc",
"third_party/butteraugli/butteraugli/butteraugli.h"
}