-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
45 lines (35 loc) · 1.33 KB
/
premake5.lua
File metadata and controls
45 lines (35 loc) · 1.33 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
term.pushColor(term.yellow)
print("WARNING: IF YOU SEE THIS MESSAGE AND YOU ARE TRYING TO INCLUDE THE PNG PROJECT, YOU ARE ACTUALLY INCLUDING THE WORKSPACE FILE.")
print(" -> If so, make sure to include the png folder instead.")
term.popColor()
workspace "png"
architecture "x64"
configurations { "Debug", "Release", }
startproject "png-dev"
include "png"
project "png-dev"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
location "build"
targetdir "%{prj.location}/%{cfg.buildcfg}"
-- You can remove fmt from include directories by defining 'PNG_NO_LOGGING',
-- which tells png to not include any sort of logging in header files
-- defines "PNG_NO_LOGGING"
includedirs { "include", "libs/fmt/include", }
-- If you do not want to link with fmt,
-- you must define 'PNG_NO_LOGGING' when building png as a static lib
-- zlib is a required dependency since it is needed to de/inflate Images
links { "png", "fmt", "zlib", }
files "src/main.cpp"
filter "toolset:gcc"
buildoptions { "-Wall", "-Wextra", "-Wpedantic", "-Werror", }
filter "toolset:msc"
buildoptions { "/Wall", "/WX", }
filter "system:linux"
links { "pthread", "tbb", }
filter "configurations:Debug"
defines "PNG_DEBUG"
symbols "On"
filter "configurations:Release"
optimize "Speed"