summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4f9af2)
raw | patch | inline | side by side (parent: d4f9af2)
author | ishmal <ishmal@users.sourceforge.net> | |
Fri, 18 May 2007 14:16:07 +0000 (14:16 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Fri, 18 May 2007 14:16:07 +0000 (14:16 +0000) |
build.xml | patch | blob | history | |
buildtool.cpp | patch | blob | history |
diff --git a/build.xml b/build.xml
index 4aad4e4377b383d89acb1cb02a8a1d5c504bf411..d5141970bf69370aa53b42706916ff206ffea1e0 100644 (file)
--- a/build.xml
+++ b/build.xml
########################################################################
-->
<target name="init"
- description="Create the build directory structure used by compile">
+ description=
+ "Do all prepatory tasks, like make directories and copy files">
<!-- example of the <pkg-config> task
query can be cflags, libs, or both
prefix overrides the value of prefix="" in the file
the result of this entry can be later used as ${gtkmm}
+ -->
+ <!--
<pkg-config name="gtkmm-2.4" path="${gtk}/lib/pkgconfig"
query="both" property="gtkmm" prefix="${gtk}"/>
-->
diff --git a/buildtool.cpp b/buildtool.cpp
index 17b81898725135147b68eddcc9debfd891d21989..5975f86e195fa0289c0a07eb1782bb7d23b0d9d8 100644 (file)
--- a/buildtool.cpp
+++ b/buildtool.cpp
subName.push_back((char)ch);
pos++;
}
- trace("subName:%s %s", subName.c_str(), prefix.c_str());
+ //trace("subName:%s %s", subName.c_str(), prefix.c_str());
if (subName == "prefix" && prefix.size()>0)
{
attrVal.append(prefix);
- trace("prefix override:%s", prefix.c_str());
+ //trace("prefix override:%s", prefix.c_str());
}
else
{
String subVal = attrs[subName];
- trace("subVal:%s", subVal.c_str());
+ //trace("subVal:%s", subVal.c_str());
attrVal.append(subVal);
}
}
TaskPkgConfig(MakeBase &par) : Task(par)
{
- type = TASK_PKG_CONFIG; name = "pkg-config";
+ type = TASK_PKG_CONFIG;
+ name = "pkg-config";
}
virtual ~TaskPkgConfig()
PkgConfig pkgconfig;
pkgconfig.setPath(path);
pkgconfig.setPrefix(prefix);
- if (!pkgconfig.query(name))
+ if (!pkgconfig.query(pkgName))
{
error("<pkg-config> query failed for '%s", name.c_str());
return false;
}
}
- //trace("ret: %s", ret.c_str());
+ status(" : %s", ret.c_str());
parent.setProperty(propName, ret);
return true;
}
if (!parent.getAttribute(elem, "name", s))
return false;
if (s.size()>0)
- name = s;
+ pkgName = s;
else
{
error("<pkg-config> requires 'name=\"package\"' attribute");
private:
- String name;
+ String pkgName;
String prefix;
String propName;
String pkg_config_path;
}
}
- status("## Target : %s", name.c_str());
+ status("## Target : %s : %s", name.c_str(),
+ target.getDescription().c_str());
//Now let's do the tasks
std::vector<Task *> &tasks = target.getTasks();