-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpremake5_woff2.lua
More file actions
61 lines (50 loc) · 1.83 KB
/
premake5_woff2.lua
File metadata and controls
61 lines (50 loc) · 1.83 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
-- Support for WOFF/WOFF2 font files
project "libwoff2"
kind "StaticLib"
language "C++"
cppdialect "C++11"
if (is_msvc) then
local prj = project()
prj.filename = "libwoff2_" .. vc_with_ver
if (msvc_useProps) then
wxUseProps(true)
end
end
makesettings { "include config.gcc" }
-- Intermediate directory
if (is_msvc) then
objdir ("%{wks.location}" .. "/obj/%{prj.name}/" .. vc_with_ver)
else
objdir ("%{wks.location}" .. "/obj/%{prj.name}/$(wxCompilerPrefix)")
end
defines {
"_LIB",
"WOFF2_DUMMY"
}
targetname "libwoff2"
targetsuffix ""
if (is_msvc) then
targetdir ("%{wks.location}" .. "/lib/" .. vc_with_ver .. "/%{cfg.platform}/%{cfg.buildcfg}")
else
targetdir ("%{wks.location}" .. "/lib/$(wxCompilerPrefix)" .. "/%{cfg.platform}/%{cfg.buildcfg}")
end
filter { "configurations:Debug*" }
filter { "configurations:Release*" }
filter {}
files { "thirdparty/woff2/src/woff2_dec.cc", "thirdparty/woff2/src/woff2_common.cc",
"thirdparty/woff2/src/woff2_out.cc",
"thirdparty/woff2/src/table_tags.cc", "thirdparty/woff2/src/variable_length.cc",
"thirdparty/woff2/src/buffer.h", "thirdparty/woff2/src/port.h",
"thirdparty/woff2/src/round.h", "thirdparty/woff2/src/store_bytes.h",
"thirdparty/woff2/src/table_tags.h", "thirdparty/woff2/src/variable_length.h",
"thirdparty/woff2/src/woff2_common.h",
"thirdparty/woff2/brotli/dec/*.c", "thirdparty/woff2/brotli/dec/*.h",
"thirdparty/woff2/brotli/common/*.c", "thirdparty/woff2/brotli/common/*.h"
}
includedirs { "thirdparty/woff2/include", "thirdparty/woff2/src", "thirdparty/woff2/brotli/include" }
vpaths {
["Header Files"] = { "**.h", "**.inc" },
["Source Files"] = { "**.cc", "**.c" }
}
characterset "Unicode"
location(BUILDDIR)