Browse Source

init d app

221V 1 month ago
parent
commit
09e9b944a6
4 changed files with 41 additions and 0 deletions
  1. 14 0
      .gitignore
  2. 6 0
      Makefile
  3. 15 0
      dub.json
  4. 6 0
      source/app.d

+ 14 - 0
.gitignore

@@ -0,0 +1,14 @@
+.dub
+__dummy.html
+/dopp
+dopp.so
+dopp.dylib
+dopp.dll
+dopp.a
+dopp.lib
+dopp-test-*
+*.exe
+*.pdb
+*.o
+*.obj
+*.lst

+ 6 - 0
Makefile

@@ -0,0 +1,6 @@
+
+d:
+	dub build --compiler ldc2 --build release --force
+
+default: d
+.PHONY: d

+ 15 - 0
dub.json

@@ -0,0 +1,15 @@
+{
+	"authors": [
+		"221V"
+	],
+	"copyright": "Copyright © 2025, 221V",
+	"description": "dopp = DEF compiler / D preprocessor",
+	"license": "MIT",
+	"name": "dopp",
+	"mainSourceFile": "source/app.d",
+	"sourceFiles": ["source/app.d"],
+	"targetName": "dopp",
+	"targetType": "executable",
+	"dflags": ["-w", "-O", "-static"],
+	"dependencies": {}
+}

+ 6 - 0
source/app.d

@@ -0,0 +1,6 @@
+import std.stdio;
+
+void main()
+{
+	writeln("Edit source/app.d to start your project.");
+}