diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2007-05-18 14:16:07 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2007-05-18 14:16:07 +0000 |
| commit | 8a1e58dd4ee55a535c3c6b83536d534bc8487aeb (patch) | |
| tree | 18942e2e0ddedc7fd64bf0c38826f4bb705ad952 | |
| parent | Add initial attempt at embedded pkg-config (diff) | |
| download | inkscape-8a1e58dd4ee55a535c3c6b83536d534bc8487aeb.tar.gz inkscape-8a1e58dd4ee55a535c3c6b83536d534bc8487aeb.zip | |
Minor fixes
(bzr r3027)
| -rw-r--r-- | build.xml | 5 | ||||
| -rw-r--r-- | buildtool.cpp | 20 |
2 files changed, 15 insertions, 10 deletions
@@ -61,13 +61,16 @@ ######################################################################## --> <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 17b818987..5975f86e1 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -4755,16 +4755,16 @@ bool PkgConfig::parseLine(const String &lineBuf) 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); } } @@ -7092,7 +7092,8 @@ public: TaskPkgConfig(MakeBase &par) : Task(par) { - type = TASK_PKG_CONFIG; name = "pkg-config"; + type = TASK_PKG_CONFIG; + name = "pkg-config"; } virtual ~TaskPkgConfig() @@ -7104,7 +7105,7 @@ public: 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; @@ -7134,7 +7135,7 @@ public: } } - //trace("ret: %s", ret.c_str()); + status(" : %s", ret.c_str()); parent.setProperty(propName, ret); return true; } @@ -7146,7 +7147,7 @@ public: if (!parent.getAttribute(elem, "name", s)) return false; if (s.size()>0) - name = s; + pkgName = s; else { error("<pkg-config> requires 'name=\"package\"' attribute"); @@ -7203,7 +7204,7 @@ public: private: - String name; + String pkgName; String prefix; String propName; String pkg_config_path; @@ -8229,7 +8230,8 @@ bool Make::executeTarget(Target &target, } } - 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(); |
