]> git.tdb.fi Git - builder.git/blob - source/androidresourcebundle.cpp
Save caches before starting the build
[builder.git] / source / androidresourcebundle.cpp
1 #include "androidmanifestfile.h"
2 #include "androidresourcebundle.h"
3 #include "component.h"
4 #include "sourcepackage.h"
5
6 using namespace std;
7
8 AndroidResourceBundle::AndroidResourceBundle(Builder &b, const Component &c, AndroidManifestFile &manifest, const list<FileTarget *> &resources):
9         FileTarget(b, c.get_package(), c.get_package().get_temp_directory()/c.get_name()/(c.get_name()+".ap_"))
10 {
11         component = &c;
12
13         add_dependency(manifest);
14         for(list<FileTarget *>::const_iterator i=resources.begin(); i!=resources.end(); ++i)
15                 add_dependency(**i);
16 }