-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
54 lines (40 loc) · 1.36 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 "ImageEditor"
language "C++"
cppdialect "C++17"
architecture "x86_64"
configurations { "Debug", "Release" }
warnings "Extra"
filter { "configurations:Debug" }
defines { "_DEBUG" }
symbols "On"
filter { "configurations:Release" }
optimize "On"
filter { "configurations:Release", "system:Windows" }
linkoptions { "-static", "-static-libgcc", "-static-libstdc++" }
links { "pthread" }
filter { }
targetdir ("bin/%{prj.name}/%{cfg.longname}")
objdir ("obj/%{prj.name}/%{cfg.longname}")
project "ImageEditor"
kind "ConsoleApp"
files "ImageEditor/**"
includedirs {
"ImageEditor/src",
"../Difu/bin/Difu/%{cfg.longname}/include",
"Dependencies/Raylib/%{cfg.system}/include",
"Dependencies/fmt/%{cfg.system}/include",
"Dependencies/entt/include",
"Dependencies/nfd/include",
}
libdirs {
"../Difu/bin/Difu/%{cfg.longname}",
"Dependencies/Raylib/%{cfg.system}/lib",
"Dependencies/fmt/%{cfg.system}/lib",
"Dependencies/nfd/lib"
}
prebuildcommands {
"~/Dev/c++/ResourceManager/bin/ResourceManager/Debug/ResourceManager ImageEditor/Globals.txt -o ImageEditor/src/Globals.hpp -p rl",
}
links { "Difu", "raylib", "fmt", "nfd" } -- , "m", "dl", "rt", "X11"
linkoptions { "`pkg-config gtk+-3.0 --libs`" }
filter {}