summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dcadd21)
raw | patch | inline | side by side (parent: dcadd21)
| author | ishmal <ishmal@users.sourceforge.net> | |
| Sat, 2 Dec 2006 15:32:37 +0000 (15:32 +0000) | ||
| committer | ishmal <ishmal@users.sourceforge.net> | |
| Sat, 2 Dec 2006 15:32:37 +0000 (15:32 +0000) |
| build.xml | patch | blob | history | |
| buildtool.cpp | patch | blob | history |
diff --git a/build.xml b/build.xml
index cbebbe7b8d97bb15cd7d234287dfd15699705a10..c8ea0c17f07cdf64d0af41bc88a799de1640b803 100644 (file)
--- a/build.xml
+++ b/build.xml
<!-- set global properties for this build -->
<property name="version" value="0.45"/>
- <property name="arch" value="i686-pc-mingw32"/>
+ <property name="arch" value="i686-pc-mingw32-"/>
+ <!--<property name="archutil" value="${arch}"/>-->
+ <property name="archutil" value=""/>
<property name="src" location="src"/>
<property name="gtk" location="c:/gtk210"/>
<property name="lib" location="lib"/>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile from source to build -->
- <cc cc="${arch}-gcc" cxx="${arch}-g++"
+ <cc cc="${arch}gcc" cxx="${arch}g++"
destdir="${build}/obj">
<fileset dir="${src}">
<!-- THINGS TO EXCLUDE -->
</target>
<target name="lib" depends="compile">
- <staticlib command="${arch}-ar crsv"
+ <staticlib command="${archutil}ar crsv"
file="${build}/libinkscape.a">
<fileset dir="${build}/obj">
<exclude name="main,o"/>
</target>
<target name="link" depends="lib">
- <rc command="${arch}-windres"
+ <rc command="${archutil}windres"
file="${src}/inkscape.rc"
out="${build}/inkres.o">
<flags>
--include-dir=${src}
</flags>
</rc>
- <link command="${arch}-g++" out="${build}/inkscape.exe"
+ <link command="${arch}g++" out="${build}/inkscape.exe"
strip="true" symfile="${build}/inkscape.dbg"
- stripcommand="${arch}-strip"
- objcopycommand="${arch}-objcopy"
+ stripcommand="${archutil}strip"
+ objcopycommand="${archutil}objcopy"
>
<flags>
</flags>
diff --git a/buildtool.cpp b/buildtool.cpp
index e61caf9c7fc78d660546d44a22683405a896c933..747e9577ef09d9f6b604e199ec8622d310f7b572 100644 (file)
--- a/buildtool.cpp
+++ b/buildtool.cpp
return false;
}
val = s.substr(p);
- if (key.size()==0 || val.size()==0)
+ if (key.size()==0)
continue;
+ //allow property to be set, even if val=""
//trace("key:'%s' val:'%s'", key.c_str(), val.c_str());
//See if we wanted to overload this property
{
if (!getAttribute(elem, "location", val))
return false;
- if (val.size() > 0)
- {
- properties[attrVal] = val;
- }
+ //let the property exist, even if not defined
+ properties[attrVal] = val;
}
//See if we wanted to overload this property
std::map<String, String>::iterator iter =