Code

library tweaks
authorishmal <ishmal@users.sourceforge.net>
Fri, 17 Nov 2006 00:20:20 +0000 (00:20 +0000)
committerishmal <ishmal@users.sourceforge.net>
Fri, 17 Nov 2006 00:20:20 +0000 (00:20 +0000)
build.xml
build28.xml
buildtool.cpp

index f40afe4f0dd8553c4feca60c59641a6686021f86..1ffee9d10fc0383018dd82f6f8bc9ba832a56c16 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -85,7 +85,7 @@
                <exclude name="removeoverlap/remove_rectangle_overlap-test.h"/>\r
            </fileset>\r
         <flags>\r
-            -Wall -O3\r
+            -Wall -g -O3\r
                        -mms-bitfields\r
         </flags>\r
         <defines>\r
            -lgc -mwindows -lws2_32 -lintl -lm\r
           </libs>\r
        </link>\r
-       <strip file="${build}/inkscape.exe"/>\r
+       <!--<strip file="${build}/inkscape.exe"/>-->\r
   </target>\r
 \r
   <target name="dist" depends="link,i18n"\r
     <copy file="${gtk}/bin/libxml2.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/xmlparse.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/jpeg62.dll" todir="${dist}"/>\r
-    <copy file="${gtk}/bin/libintl-2.dll" todir="${dist}"/>\r
-    <copy file="${gtk}/bin/libintl-2.dll" tofile="${dist}/intl.dll"/>\r
-    <copy file="${gtk}/bin/libpng13.dlll" todir="${dist}"/>\r
+    <copy file="${gtk}/bin/libpng13.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/msvcr70.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/msvcr71.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/zlib1.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/iconv.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/popt1.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/liblcms-1.dll" todir="${dist}"/>\r
+    <copy file="${gtk}/bin/intl.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/intl.dll" tofile="${dist}/libintl-2.dll"/>\r
 \r
     <!-- MSGFMT files -->\r
index dcd2813f7c622637408e3aeec28c32a81c12121e..fcae72ee9607bd972fecc6bdeab6c4776a2575c0 100644 (file)
     <copy file="${gtk}/bin/libxml2.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/xmlparse.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/jpeg62.dll" todir="${dist}"/>\r
-    <copy file="${gtk}/bin/libintl-2.dll" todir="${dist}"/>\r
-    <copy file="${gtk}/bin/libintl-2.dll" tofile="${dist}/intl.dll"/>\r
-    <copy file="${gtk}/bin/libpng13.dlll" todir="${dist}"/>\r
+    <copy file="${gtk}/bin/libpng13.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/msvcr70.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/msvcr71.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/zlib1.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/iconv.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/popt1.dll" todir="${dist}"/>\r
     <copy file="${gtk}/bin/liblcms-1.dll" todir="${dist}"/>\r
+    <copy file="${gtk}/bin/intl.dll" todir="${dist}"/>\r
+    <copy file="${gtk}/bin/intl.dll" tofile="${dist}/libintl-2.dll"/>\r
 \r
     <!-- MSGFMT files -->\r
     <copy todir="${dist}"> <fileset dir="${build}/po"/> </copy>\r
index bcec40c93227b0cf31b1799ffb008e867c36d443..11d6b7fa990d52b6da5c9660af73142777238d36 100644 (file)
@@ -4416,21 +4416,18 @@ std::vector<DepRec> DepTool::loadDepFile(const String &depFile)
             std::vector<DepRec>::iterator iter;
             for (iter = result.begin() ; iter != result.end() ; iter++)
                 {
-                if (iter->path > depObject.path)
+                String vpath = iter->path;
+                vpath.append("/");
+                vpath.append(iter->name);
+                String opath = depObject.path;
+                opath.append("/");
+                opath.append(depObject.name);
+                if (vpath > opath)
                     {
                     inserted = true;
                     iter = result.insert(iter, depObject);
                     break;
                     }
-                else if (iter->path == depObject.path)
-                    {
-                    if (iter->name > depObject.name)
-                        {
-                        inserted = true;
-                        iter = result.insert(iter, depObject);
-                        break;
-                        }
-                    }
                 }
             if (!inserted)
                 result.push_back(depObject);