summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-22 22:38:54 +0800
committerruki <[email protected]>2021-02-22 22:38:54 +0800
commit3a579c246f983da7a91bc870a8395a6227ac93c7 (patch)
tree11b74074a26f86e4e6ee20c8fbbe53f48e8a5d20 /tests/projects
parentf78a823f3cc8f1b1d71bbd8882a1881c99834aa6 (diff)
add manifest rule
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/c++/manifest/src/main.cpp9
-rw-r--r--tests/projects/c++/manifest/src/main.manifest10
-rw-r--r--tests/projects/c++/manifest/xmake.lua6
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/projects/c++/manifest/src/main.cpp b/tests/projects/c++/manifest/src/main.cpp
new file mode 100644
index 000000000..db2361659
--- /dev/null
+++ b/tests/projects/c++/manifest/src/main.cpp
@@ -0,0 +1,9 @@
+#include <iostream>
+
+using namespace std;
+
+int main(int argc, char** argv)
+{
+ cout << "hello world!" << endl;
+ return 0;
+}
diff --git a/tests/projects/c++/manifest/src/main.manifest b/tests/projects/c++/manifest/src/main.manifest
new file mode 100644
index 000000000..1c06b6190
--- /dev/null
+++ b/tests/projects/c++/manifest/src/main.manifest
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
+<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level='asInvoker' uiAccess='false' />
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
diff --git a/tests/projects/c++/manifest/xmake.lua b/tests/projects/c++/manifest/xmake.lua
new file mode 100644
index 000000000..121530a0c
--- /dev/null
+++ b/tests/projects/c++/manifest/xmake.lua
@@ -0,0 +1,6 @@
+add_rules("mode.debug", "mode.release")
+target("test")
+ set_kind("binary")
+ add_files("src/*.cpp")
+ add_files("src/*.manifest")
+