1 #include <msp/fs/utils.h>
2 #include "androidresourcefile.h"
8 AndroidResourceFile::AndroidResourceFile(Builder &b, const Component &c, const FS::Path &p):
9 FileTarget(b, c.get_package(), p)
11 string ext = FS::extpart(FS::basename(p));
12 if(ext==".png" || ext==".jpg")
13 resource_type = "drawable";
14 // TODO recognize various xml files; must inspect contents
16 resource_type = "raw";
18 install_location = "res/"+resource_type;