Build: Add an option to copy the built library to the example directory
Former-commit-id: e9b2df26e19917355e3bbc486892f2aeead2ae0e
This commit is contained in:
parent
acdabbc432
commit
7e037e4d6f
|
|
@ -1,6 +1,8 @@
|
||||||
# Nazara build
|
# Nazara build
|
||||||
examples/bin/*.exe
|
examples/bin/*.exe
|
||||||
examples/bin/*.pdb
|
examples/bin/*.pdb
|
||||||
|
examples/bin/*.dll
|
||||||
|
examples/bin/*.so
|
||||||
tests/*.exe
|
tests/*.exe
|
||||||
tests/*.pdb
|
tests/*.pdb
|
||||||
lib/*
|
lib/*
|
||||||
|
|
|
||||||
|
|
@ -298,6 +298,14 @@ function NazaraBuild:Execute()
|
||||||
targetdir("../plugins/" .. toolTable.Name .. "/lib/" .. makeLibDir .. "/x64")
|
targetdir("../plugins/" .. toolTable.Name .. "/lib/" .. makeLibDir .. "/x64")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Copy the module binaries to the example folder
|
||||||
|
if (toolTable.CopyTargetToExampleDir) then
|
||||||
|
if (os.is("windows")) then
|
||||||
|
configuration({})
|
||||||
|
postbuildcommands({[[xcopy "%{path.translate(cfg.linktarget.relpath):sub(1, -5) .. ".dll"}" "..\..\..\examples\bin\" /E /Y]]})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
configuration({"vs*", "x32"})
|
configuration({"vs*", "x32"})
|
||||||
libdirs("../extlibs/lib/msvc/x86")
|
libdirs("../extlibs/lib/msvc/x86")
|
||||||
libdirs("../lib/msvc/x86")
|
libdirs("../lib/msvc/x86")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue