]> git.tdb.fi Git - builder.git/blobdiff - source/androidmanifestfile.cpp
Replace some sets with vectors as well
[builder.git] / source / androidmanifestfile.cpp
index 1653e0a2afda80b8b1152f3cfa1f2bb10b33043d..527bfac874c59a2657d48c3c446d6e8de23b48e6 100644 (file)
@@ -1,9 +1,11 @@
+#include <msp/core/algorithm.h>
 #include "androidapplicationcomponent.h"
 #include "androidmanifestfile.h"
 #include "builder.h"
 #include "sourcepackage.h"
 
 using namespace std;
+using namespace Msp;
 
 AndroidManifestFile::AndroidManifestFile(Builder &b, const AndroidApplicationComponent &a):
        FileTarget(b, a.get_package(), a.get_package().get_temp_directory()/a.get_name()/"AndroidManifest.xml"),
@@ -20,7 +22,13 @@ void AndroidManifestFile::set_native_library(SharedLibrary *lib)
        native_lib = lib;
 }
 
+void AndroidManifestFile::set_orientation(const string &ori)
+{
+       orientation = ori;
+}
+
 void AndroidManifestFile::add_permission(const string &perm)
 {
-       permissions.insert(perm);
+       if(!any_equals(permissions, perm))
+               permissions.push_back(perm);
 }