-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpremake5_zint.lua
More file actions
57 lines (45 loc) · 1.26 KB
/
premake5_zint.lua
File metadata and controls
57 lines (45 loc) · 1.26 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
-- Barcode library zint
project "libzint"
kind "StaticLib"
language "C++"
cppdialect "C++11"
if (is_msvc) then
local prj = project()
prj.filename = "libzint_" .. 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 {
"ZINT_NO_PNG",
"_LIB"
}
targetname "libzint"
targetsuffix ""
-- Target directory
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/zint/backend/*.c",
"thirdparty/zint/backend/*.h",
"thirdparty/zint/backend/fonts/*.h"
}
includedirs { "thirdparty/zint/backend" }
vpaths {
["Header Files"] = { "**.h", "**.inc" },
["Source Files"] = { "**.cpp", "**.c", "**.def", "**.rc" }
}
characterset "Unicode"
location(BUILDDIR)