X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpackagemanager.h;h=48c3c16fd4fcbdb486368fa2dfed5147af7f7b8b;hb=5ed38947b3fabd977a7f68b512115fe1456ea096;hp=2fbaca1c37c03dc0afafb3fa36d63402ec1535f3;hpb=9e3a8d36093be89242db0c472ffd8fe5c61ab0ec;p=builder.git diff --git a/source/packagemanager.h b/source/packagemanager.h index 2fbaca1..48c3c16 100644 --- a/source/packagemanager.h +++ b/source/packagemanager.h @@ -28,6 +28,8 @@ private: SearchPath binpkg_files; bool no_externals; PackageMap packages; + Package *main_pkg; + std::set not_found; bool env_set; public: @@ -49,6 +51,10 @@ public: /** Returns a package from the cache. */ Package *get_package(const std::string &); + /** Returns the package that was added first. This should be considered + the primary build target. */ + Package &get_main_package() const; + const PackageMap &get_packages() const { return packages; } /** Locates a package and loads it if necessary. */