diff options
| author | ruki <[email protected]> | 2024-04-01 23:26:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-01 23:26:10 +0800 |
| commit | 1448d3b62a118991019559d5b068063b51f53a9f (patch) | |
| tree | 485e62b343c31d4e4d9e6c5d2ceb9fe9fdc5bf0f /tests/projects/other/native_module/modules/binary | |
| parent | 15eb20076e2334387155c85b491c73da04e4a084 (diff) | |
add binary bar module
Diffstat (limited to 'tests/projects/other/native_module/modules/binary')
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/projects/other/native_module/modules/binary/.gitignore b/tests/projects/other/native_module/modules/binary/.gitignore new file mode 100644 index 000000000..152105761 --- /dev/null +++ b/tests/projects/other/native_module/modules/binary/.gitignore @@ -0,0 +1,8 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + + diff --git a/tests/projects/other/native_module/modules/binary/src/main.cpp b/tests/projects/other/native_module/modules/binary/src/main.cpp new file mode 100644 index 000000000..7c435d251 --- /dev/null +++ b/tests/projects/other/native_module/modules/binary/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/other/native_module/modules/binary/xmake.lua b/tests/projects/other/native_module/modules/binary/xmake.lua new file mode 100644 index 000000000..7b3ea4032 --- /dev/null +++ b/tests/projects/other/native_module/modules/binary/xmake.lua @@ -0,0 +1,7 @@ +add_rules("mode.debug", "mode.release") + +target("bar") + set_kind("binary") + add_files("src/*.cpp") + + |
