]> git.tdb.fi Git - builder.git/blobdiff - source/sourcepackage.cpp
Reorder functions
[builder.git] / source / sourcepackage.cpp
index cb4f978aedba7c6e61c5fb4f8719e67e05f0123f..2cefeb871065e76434d10642fa57dd7928f61b9f 100644 (file)
@@ -37,12 +37,7 @@ SourcePackage::SourcePackage(Builder &b, const string &n, const FS::Path &f):
        source_tarball = &components.back();
 }
 
-void SourcePackage::set_build_type(const BuildType &t)
-{
-       build_type = &t;
-}
-
-FS::Path SourcePackage::get_temp_dir() const
+FS::Path SourcePackage::get_temp_directory() const
 {
        string subdir = builder.get_current_arch().get_name();
        if(build_type)
@@ -58,7 +53,7 @@ FS::Path SourcePackage::get_temp_dir() const
                return source_dir/temp/subdir;
 }
 
-FS::Path SourcePackage::get_out_dir() const
+FS::Path SourcePackage::get_output_directory() const
 {
        const Architecture &arch = builder.get_current_arch();
        if(arch.is_native())
@@ -88,6 +83,11 @@ bool SourcePackage::match_feature(const string &cond) const
        }
 }
 
+void SourcePackage::set_build_type(const BuildType &t)
+{
+       build_type = &t;
+}
+
 void SourcePackage::do_prepare()
 {
        BuildInfo final_build_info;