Compare commits
2 Commits
52ea1ea63a
...
e4a039bb87
| Author | SHA1 | Date |
|---|---|---|
|
|
e4a039bb87 | |
|
|
7beac1b0b0 |
|
|
@ -57,7 +57,7 @@ function m.generateproject(liboutdir, intdir)
|
|||
end
|
||||
|
||||
function m.link()
|
||||
externalincludedirs
|
||||
includedirs
|
||||
{
|
||||
path.join(rootdir, "flac/include"),
|
||||
path.join(rootdir, "flac/src/libFLAC/include"),
|
||||
|
|
|
|||
|
|
@ -79,6 +79,11 @@ function m.generateproject(liboutdir, intdir)
|
|||
path.join(rootdir, "freetype/builds/windows/ftdebug.c"),
|
||||
}
|
||||
|
||||
removefiles
|
||||
{
|
||||
path.join(rootdir, "freetype/src/base/ftdebug.c"),
|
||||
}
|
||||
|
||||
filter"system:linux"
|
||||
files{path.join(rootdir, "freetype/builds/unix/ftsystem.c")}
|
||||
|
||||
|
|
@ -89,7 +94,7 @@ function m.generateproject(liboutdir, intdir)
|
|||
end
|
||||
|
||||
function m.link()
|
||||
externalincludedirs{path.join(rootdir, "freetype/include")}
|
||||
includedirs{path.join(rootdir, "freetype/include")}
|
||||
links {"freetype"}
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
local m = {}
|
||||
|
||||
local rootdir = path.join(path.getabsolute(path.getdirectory(_SCRIPT)), "../")
|
||||
local sfml = require("../build-sfml")
|
||||
local sfml = require("build-sfml")
|
||||
|
||||
function m.generateproject(liboutdir, intdir)
|
||||
project"imgui-sfml"
|
||||
|
|
@ -11,29 +11,28 @@ function m.generateproject(liboutdir, intdir)
|
|||
objdir(intdir)
|
||||
warnings"Off"
|
||||
|
||||
defines{"IMGUI_USER_CONFIG=\"imconfig-SFML.h\""}
|
||||
|
||||
sfml.link()
|
||||
|
||||
includedirs
|
||||
{
|
||||
path.join(rootdir, "imgui-sfml"),
|
||||
path.join(rootdir, "imgui"),
|
||||
}
|
||||
defines{"IMGUI_USER_CONFIG=\"imconfig-SFML.h\"", "SFML_STATIC"}
|
||||
|
||||
files
|
||||
{
|
||||
path.join(rootdir, "imgui-sfml/imgui-SFML.cpp"),
|
||||
}
|
||||
|
||||
includedirs
|
||||
{
|
||||
path.join(rootdir, "imgui-sfml"),
|
||||
path.join(rootdir, "imgui"),
|
||||
path.join(rootdir, "SFML/include"),
|
||||
}
|
||||
|
||||
links {"sfml"}
|
||||
end
|
||||
|
||||
function m.config() -- use this in build imgui instead of link() to avoid circular dependency
|
||||
|
||||
defines { "IMGUI_USER_CONFIG=\"imconfig-SFML.h\"" }
|
||||
|
||||
externalincludedirs { path.join(rootdir, "imgui-sfml") }
|
||||
|
||||
sfml.link()
|
||||
includedirs { path.join(rootdir, "imgui-sfml"), path.join(rootdir, "SFML/include") }
|
||||
end
|
||||
|
||||
function m.link()
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ function m.generateproject(liboutdir, intdir)
|
|||
objdir(intdir)
|
||||
warnings"Off"
|
||||
|
||||
imguisfml.config() -- needed so imgui can be aware of imconfig-sfml.h
|
||||
|
||||
includedirs
|
||||
{
|
||||
|
|
@ -25,12 +24,14 @@ function m.generateproject(liboutdir, intdir)
|
|||
path.join(rootdir, "imgui/imgui_tables.cpp"),
|
||||
path.join(rootdir, "imgui/imgui_widgets.cpp"),
|
||||
}
|
||||
|
||||
imguisfml.config() -- needed so imgui can be aware of imconfig-sfml.h
|
||||
end
|
||||
|
||||
function m.link()
|
||||
links {"imgui"}
|
||||
|
||||
externalincludedirs { path.join(rootdir, "imgui") }
|
||||
includedirs { path.join(rootdir, "imgui") }
|
||||
end
|
||||
|
||||
return m
|
||||
|
|
@ -22,7 +22,7 @@ end
|
|||
|
||||
function m.link()
|
||||
links{"ogg"}
|
||||
externalincludedirs{path.join(rootdir, "ogg/include")}
|
||||
includedirs{path.join(rootdir, "ogg/include")}
|
||||
end
|
||||
|
||||
return m
|
||||
|
|
@ -15,12 +15,6 @@ function m.generateproject(liboutdir, intdir)
|
|||
objdir(intdir)
|
||||
warnings"Off"
|
||||
|
||||
|
||||
freetype.link()
|
||||
ogg.link()
|
||||
flac.link()
|
||||
vorbis.link()
|
||||
|
||||
defines
|
||||
{
|
||||
"SFML_STATIC",
|
||||
|
|
@ -49,7 +43,6 @@ function m.generateproject(liboutdir, intdir)
|
|||
path.join(rootdir, "SFML/extlibs/headers/vulkan"),
|
||||
|
||||
}
|
||||
|
||||
files
|
||||
{
|
||||
path.join(rootdir, "SFML/include/SFML/**.hpp"),
|
||||
|
|
@ -58,6 +51,11 @@ function m.generateproject(liboutdir, intdir)
|
|||
path.join(rootdir, "SFML/src/SFML/**.cpp"),
|
||||
}
|
||||
|
||||
freetype.link()
|
||||
ogg.link()
|
||||
flac.link()
|
||||
vorbis.link()
|
||||
|
||||
filter"system:windows"
|
||||
removefiles
|
||||
{
|
||||
|
|
@ -73,6 +71,8 @@ function m.generateproject(liboutdir, intdir)
|
|||
path.join(rootdir, "SFML/src/SFML/Window/DRM/**"),
|
||||
path.join(rootdir, "SFML/src/SFML/Window/Android/**"),
|
||||
path.join(rootdir, "SFML/src/SFML/System/Android/**"),
|
||||
path.join(rootdir, "SFML/src/SFML/Main/MainAndroid.cpp"),
|
||||
path.join(rootdir, "SFML/src/SFML/Main/MainiOS.cpp"),
|
||||
}
|
||||
|
||||
filter"system:linux"
|
||||
|
|
@ -97,7 +97,7 @@ end
|
|||
|
||||
function m.link()
|
||||
defines{"SFML_STATIC"}
|
||||
externalincludedirs
|
||||
includedirs
|
||||
{
|
||||
path.join(rootdir, "SFML/include"),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ end
|
|||
function m.link()
|
||||
links {"vorbis"}
|
||||
ogg.link()
|
||||
externalincludedirs
|
||||
includedirs
|
||||
{
|
||||
path.join(rootdir, "vorbis/include"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue