]> git.tdb.fi Git - builder.git/blobdiff - source/binarycomponent.cpp
Refuse to create an empty data pack
[builder.git] / source / binarycomponent.cpp
index 2cd6f853ca42db8472e7c4193c1e5f633d5f605f..f1aaa0eb006b22a5366a1b5bc12766e08806b45e 100644 (file)
@@ -54,7 +54,7 @@ void BinaryComponent::create_targets() const
        const Toolchain &pkg_tools = package.get_toolchain();
 
        list<Target *> objs;
-       SourceList source_filenames = collect_source_files();
+       list<FS::Path> source_filenames = collect_source_files();
        for(auto i=source_filenames.begin(); i!=source_filenames.end(); ++i)
        {
                string ext = FS::extpart(FS::basename(*i));
@@ -70,7 +70,7 @@ void BinaryComponent::create_targets() const
                        if(processing_unit!=Tool::ONE_FILE)
                        {
                                FS::Path source_dir = FS::dirname(*i);
-                               SourceList::iterator j = i;
+                               auto j = i;
                                for(++j; j!=source_filenames.end(); )
                                {
                                        if((processing_unit!=Tool::DIRECTORY || FS::dirname(*j)==source_dir) &&