Made AoE3Ed tools optional (and disabled by default), because they're incompatible with recent DevIL

This was SVN commit r6760.
This commit is contained in:
Ykkrosh 2009-03-22 17:57:11 +00:00
parent 8c1fc507ab
commit 54ab9db537

View File

@ -1,5 +1,6 @@
addoption("atlas", "Include Atlas scenario editor packages") addoption("atlas", "Include Atlas scenario editor packages")
addoption("collada", "Include COLLADA packages (requires FCollada library)") addoption("collada", "Include COLLADA packages (requires FCollada library)")
addoption("aoe3ed", "Include AoE3Ed")
addoption("icc", "Use Intel C++ Compiler (Linux only; should use either \"--cc icc\" or --without-pch too, and then set CXX=icpc before calling make)") addoption("icc", "Use Intel C++ Compiler (Linux only; should use either \"--cc icc\" or --without-pch too, and then set CXX=icpc before calling make)")
addoption("outpath", "Location for generated project files") addoption("outpath", "Location for generated project files")
addoption("without-tests", "Disable generation of test projects") addoption("without-tests", "Disable generation of test projects")
@ -51,6 +52,9 @@ else
major = 0+major -- coerce to number major = 0+major -- coerce to number
minor = 0+minor minor = 0+minor
has_broken_pch = (major < 4 or (major == 4 and minor < 2)) has_broken_pch = (major < 4 or (major == 4 and minor < 2))
if has_broken_pch then
print("WARNING: Detected GCC <4.2 -- disabling PCH for Atlas (will increase build times)")
end
end end
end end
@ -670,11 +674,9 @@ function setup_atlas_packages()
no_unused_warnings = 1, -- wxJS has far too many and we're never going to fix them, so just ignore them no_unused_warnings = 1, -- wxJS has far too many and we're never going to fix them, so just ignore them
}) })
setup_atlas_package("AtlasUI", "dll", atlas_src = {
{ -- src
"ActorEditor", "ActorEditor",
"ActorViewer", "ActorViewer",
"ArchiveViewer",
"ColourTester", "ColourTester",
"CustomControls/Buttons", "CustomControls/Buttons",
"CustomControls/Canvas", "CustomControls/Canvas",
@ -687,7 +689,6 @@ function setup_atlas_packages()
"CustomControls/VirtualDirTreeCtrl", "CustomControls/VirtualDirTreeCtrl",
"CustomControls/Windows", "CustomControls/Windows",
"ErrorReporter", "ErrorReporter",
"FileConverter",
"General", "General",
"General/VideoRecorder", "General/VideoRecorder",
"Misc", "Misc",
@ -700,8 +701,21 @@ function setup_atlas_packages()
"ScenarioEditor/Sections/Terrain", "ScenarioEditor/Sections/Terrain",
"ScenarioEditor/Sections/Trigger", "ScenarioEditor/Sections/Trigger",
"ScenarioEditor/Tools", "ScenarioEditor/Tools",
"ScenarioEditor/Tools/Common" "ScenarioEditor/Tools/Common",
},{ -- include }
atlas_extra_links = {
"AtlasObject",
"AtlasScript",
"wxJS",
}
if options["aoe3ed"] then
tinsert(atlas_src, "ArchiveViewer")
tinsert(atlas_src, "FileConverter")
tinsert(atlas_extra_links, "DatafileIO")
end
setup_atlas_package("AtlasUI", "dll", atlas_src,
{ -- include
"..", "..",
"CustomControls", "CustomControls",
"Misc" "Misc"
@ -716,26 +730,28 @@ function setup_atlas_packages()
"zlib" "zlib"
},{ -- extra_params },{ -- extra_params
pch = (not has_broken_pch), pch = (not has_broken_pch),
extra_links = { "AtlasObject", "AtlasScript", "wxJS", "DatafileIO" }, extra_links = atlas_extra_links,
extra_files = { "Misc/atlas.rc" } extra_files = { "Misc/atlas.rc" }
}) })
setup_atlas_package("DatafileIO", "lib", if options["aoe3ed"] then
{ -- src setup_atlas_package("DatafileIO", "lib",
"", { -- src
"BAR", "",
"DDT", "BAR",
"SCN", "DDT",
"Stream", "SCN",
"XMB" "Stream",
},{ -- include "XMB"
},{ -- extern_libs },{ -- include
"devil", },{ -- extern_libs
"xerces", "devil",
"zlib" "xerces",
},{ -- extra_params "zlib"
pch = 1, },{ -- extra_params
}) pch = 1,
})
end
end end
@ -761,7 +777,9 @@ function setup_atlas_frontend_package (package_name)
tinsert(package.buildflags, "no-main") tinsert(package.buildflags, "no-main")
else -- Non-Windows, = Unix else -- Non-Windows, = Unix
tinsert(package.links, "DatafileIO") if options["aoe3ed"] then
tinsert(package.links, "DatafileIO")
end
tinsert(package.links, "AtlasObject") tinsert(package.links, "AtlasObject")
end end