From 1a96b0dce52b59c64b9bc2ca4e4221a0c38f4911 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Wed, 21 Jul 2021 22:10:32 +0200 Subject: [PATCH] Switched to library --- .gitignore | 1 + dub.json | 2 +- source/{ => libtun/testing}/app.d | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) rename source/{ => libtun/testing}/app.d (92%) diff --git a/.gitignore b/.gitignore index 253352d..7f70d41 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ libtun-test-* *.o *.obj *.lst +dub.json diff --git a/dub.json b/dub.json index 04e82c4..cca6b8d 100644 --- a/dub.json +++ b/dub.json @@ -6,7 +6,7 @@ "description": "TUN adapter for D", "license": "GPLv3", "name": "libtun", - "targetType": "executable", + "targetType": "library", "preBuildCommands": ["gcc source/libtun/tunctl.c -o tunctl.o -c"], "lflags": ["tunctl.o"] } \ No newline at end of file diff --git a/source/app.d b/source/libtun/testing/app.d similarity index 92% rename from source/app.d rename to source/libtun/testing/app.d index 5768c52..db05122 100644 --- a/source/app.d +++ b/source/libtun/testing/app.d @@ -1,3 +1,5 @@ +module libtun.testing.app; + import std.stdio; import libtun.adapter;