diff options
| -rwxr-xr-x | tests/projects/nim/console_with_c/src/main | bin | 92184 -> 0 bytes | |||
| -rw-r--r-- | tests/projects/nim/console_with_packages/src/main.nim | 3 | ||||
| -rw-r--r-- | tests/projects/nim/console_with_packages/xmake.lua | 8 |
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/projects/nim/console_with_c/src/main b/tests/projects/nim/console_with_c/src/main Binary files differdeleted file mode 100755 index 84f0819ac..000000000 --- a/tests/projects/nim/console_with_c/src/main +++ /dev/null diff --git a/tests/projects/nim/console_with_packages/src/main.nim b/tests/projects/nim/console_with_packages/src/main.nim new file mode 100644 index 000000000..a3368303a --- /dev/null +++ b/tests/projects/nim/console_with_packages/src/main.nim @@ -0,0 +1,3 @@ +proc zlibVersion(): cstring {.cdecl, importc} + +echo zlibVersion() diff --git a/tests/projects/nim/console_with_packages/xmake.lua b/tests/projects/nim/console_with_packages/xmake.lua new file mode 100644 index 000000000..924ee9632 --- /dev/null +++ b/tests/projects/nim/console_with_packages/xmake.lua @@ -0,0 +1,8 @@ +add_rules("mode.debug", "mode.release") + +add_requires("zlib") + +target("test") + set_kind("binary") + add_files("src/main.nim") + add_packages("zlib") |
