From eec7f8fc05373f1ddedbf2aa11d40d8b376dd561 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sun, 22 Mar 2009 19:06:21 +0000 Subject: [PATCH] # Added libxml2 This was SVN commit r6761. --- build/premake/extern_libs.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build/premake/extern_libs.lua b/build/premake/extern_libs.lua index 4a3ac620c1..343d69a2ed 100644 --- a/build/premake/extern_libs.lua +++ b/build/premake/extern_libs.lua @@ -116,6 +116,20 @@ extern_lib_defs = { win_names = { "libpng13" }, unix_names = { "png" }, }, + libxml2 = { + add_func = function() + if OS == "windows" then + tinsert(package.includepaths, libraries_dir.."libxml2/include") + tinsert(package.libpaths, libraries_dir.."libxml2/lib") + tinsert(package.config["Debug" ].links, "libxml2") + tinsert(package.config["Testing"].links, "libxml2") + tinsert(package.config["Release"].links, "libxml2") + else + tinsert(package.includepaths, "/usr/include/libxml2") + tinsert(package.linkoptions, "-lxml2") + end + end, + }, openal = { win_names = { "openal32" }, unix_names = { "openal" },