]> git.tdb.fi Git - builder.git/commitdiff
Fix some usages of get_current_arch() inside Builder
authorMikko Rasa <tdb@tdb.fi>
Thu, 19 Feb 2009 08:22:21 +0000 (08:22 +0000)
committerMikko Rasa <tdb@tdb.fi>
Thu, 19 Feb 2009 08:22:21 +0000 (08:22 +0000)
Fix a mistake in Readme.txt
Remove the binary package for ODE since it provides a .pc file now

Readme.txt
builderrc
source/builder.cpp

index 7b3f4a09d1ba1c74dd67c2085b626cd7ea1c690a..7af03bc3fd6b41a48809ffb43e69634e4c09d731 100644 (file)
@@ -65,7 +65,7 @@ For a simple example, look at Builder's own Build file.
 
 The latest releases can be found at http://www.tdb.fi/builder.shtml
 
-Bug reports, feature reports etc. may be sent to tdb@tdb.fi
+Bug reports, feature requests etc. may be sent to tdb@tdb.fi
 
 Read-only SVN access is available at http://svn.tdb.fi/builder
 
index b12826656a36b959ed3e2678161848b17105fb3c..c6dc66d31bac613b4e3f61e11209289f6af95fd6 100644 (file)
--- a/builderrc
+++ b/builderrc
@@ -35,14 +35,6 @@ binary_package "fmod4"
        need_path true;
 };
 
-binary_package "ode"
-{
-       build_info
-       {
-               library "ode";
-       };
-};
-
 binary_package "xlib"
 {
        build_info
index 9be7f6c8eec3cbf57c5dc67d9556ec7a5c8c68a2..dda6c6148df51a7c726f1b1bf0e1258d9c48104e 100644 (file)
@@ -181,7 +181,7 @@ Gets a package by name, possibly creating it.
 */
 Package *Builder::get_package(const string &name)
 {
-       PackageMap::iterator i=packages.find(format("%s/%s", name, current_arch));
+       PackageMap::iterator i=packages.find(format("%s/%s", name, current_arch->get_name()));
        if(i==packages.end())
                i=packages.find(name);
        if(i!=packages.end())
@@ -240,7 +240,7 @@ Target *Builder::get_header(const string &include, const string &from, const lis
        if(cxx_ver.empty())
        {
                StringList argv;
-               argv.push_back(get_current_arch().get_tool("CXX"));
+               argv.push_back(current_arch->get_tool("CXX"));
                argv.push_back("--version");
                cxx_ver=Regex("[0-9]\\.[0-9.]+").match(run_command(argv))[0].str;
                while(!cxx_ver.empty() && !FS::is_dir(FS::Path("/usr/include/c++")/cxx_ver))
@@ -307,7 +307,7 @@ Target *Builder::get_library(const string &lib, const list<string> &path, LibMod
                syspath.push_back("/usr/lib");
        }
        else
-               syspath.push_back("/usr/"+get_current_arch().get_prefix()+"/lib");
+               syspath.push_back("/usr/"+current_arch->get_prefix()+"/lib");
 
        if(verbose>=5)
                cout<<"Looking for library "<<lib<<" with path "<<join(path.begin(), path.end())<<'\n';