simplify gitignore
authorhgn <hgodden00@gmail.com>
Mon, 14 Nov 2022 01:36:01 +0000 (01:36 +0000)
committerhgn <hgodden00@gmail.com>
Mon, 14 Nov 2022 01:36:01 +0000 (01:36 +0000)
.gitignore
compile_commands.json [new file with mode: 0644]
src/template/vg.conf [new file with mode: 0644]

index 3431ab8d8ef7356d31f42ade36b14d192c07db6e..fc078ca4c3d7d78618722cc340b0668c4fd525dd 100755 (executable)
@@ -1,56 +1,64 @@
-# Gitignore for MMV project.
-#  Whitelist mode
-
-# Ignore all but directories
-*
-!*/
-
-build.linux/
-build.win32/
-restricted/
-.temp_textures/
-
-# ALLOW ============================
-!.gitattributes
-!.gitignore
-!.gitmodules
 
-# Dependencies _____________________
-#!*.so
-!*.a
-!*.dll
+*.o
+*.so
+*.dll
 
-# Code sources _____________________
-# C source files
-!*.c
-!*.h
+bin/
 
-# Blender projects
-!*.blend
 
-# GLSL shader source files
-!*.fs
-!*.vs
-!*.gls
-
-# Python source files
-!*.py
-
-# Build scripts
-!*.sh
-!*.bat
-
-# Compiled resources _______________
-# MMV proprietary files
-!*.vmd
-!*.vma
-!*.cfg
-!*.vmv
-!*.map
+# Gitignore for MMV project.
+#  Whitelist mode
 
-# Other game assets (3rd party)
-!*.bdf
-!*.png
-!*.ogg
-!*.txt
-!*.tga
+# Ignore all but directories
+#*
+#!*/
+#
+#build.linux/
+#build.win32/
+#restricted/
+#.temp_textures/
+#
+## ALLOW ============================
+#!.gitattributes
+#!.gitignore
+#!.gitmodules
+#
+## Dependencies _____________________
+##!*.so
+#!*.a
+#!*.dll
+#
+## Code sources _____________________
+## C source files
+#!*.c
+#!*.h
+#
+## Blender projects
+#!*.blend
+#
+## GLSL shader source files
+#!*.fs
+#!*.vs
+#!*.gls
+#
+## Python source files
+#!*.py
+#
+## Build scripts
+#!*.sh
+#!*.bat
+#
+## Compiled resources _______________
+## MMV proprietary files
+#!*.vmd
+#!*.vma
+#!*.cfg
+#!*.vmv
+#!*.map
+#
+## Other game assets (3rd party)
+#!*.bdf
+#!*.png
+#!*.ogg
+#!*.txt
+#!*.tga
diff --git a/compile_commands.json b/compile_commands.json
new file mode 100644 (file)
index 0000000..2ff6c01
--- /dev/null
@@ -0,0 +1,60 @@
+[
+  {
+    "arguments": [
+      "/usr/bin/gcc",
+      "-c",
+      "-D_REENTRANT",
+      "-std=c99",
+      "-O1",
+      "-fsanitize=address",
+      "-ggdb3",
+      "-fno-omit-frame-pointer",
+      "-Wall",
+      "-Wstrict-aliasing=3",
+      "-Wno-unused-function",
+      "-Wno-unused-variable",
+      "-Wno-unused-but-set-variable",
+      "-I.",
+      "-I/home/harry/Documents/vg/dep",
+      "-I/home/harry/Documents/vg/src",
+      "/home/harry/Documents/vg/dep/dr_soft/miniaudio_linux.o",
+      "-pthread",
+      "-Wl,-rpath=./",
+      "-o",
+      "build.linux/game",
+      "main.c"
+    ],
+    "directory": "/home/harry/Documents/carve",
+    "file": "/home/harry/Documents/carve/main.c",
+    "output": "/home/harry/Documents/carve/build.linux/game"
+  },
+  {
+    "arguments": [
+      "/usr/bin/gcc",
+      "-c",
+      "-D_REENTRANT",
+      "-std=c99",
+      "-O1",
+      "-fsanitize=address",
+      "-ggdb3",
+      "-fno-omit-frame-pointer",
+      "-Wall",
+      "-Wstrict-aliasing=3",
+      "-Wno-unused-function",
+      "-Wno-unused-variable",
+      "-Wno-unused-but-set-variable",
+      "-I.",
+      "-I/home/harry/Documents/vg/dep",
+      "-I/home/harry/Documents/vg/src",
+      "/home/harry/Documents/vg/dep/dr_soft/miniaudio_linux.o",
+      "-pthread",
+      "-Wl,-rpath=./",
+      "-o",
+      "build.linux/game",
+      "/home/harry/Documents/vg/dep/glad/glad.c"
+    ],
+    "directory": "/home/harry/Documents/carve",
+    "file": "/home/harry/Documents/vg/dep/glad/glad.c",
+    "output": "/home/harry/Documents/carve/build.linux/game"
+  }
+]
diff --git a/src/template/vg.conf b/src/template/vg.conf
new file mode 100644 (file)
index 0000000..896d68a
--- /dev/null
@@ -0,0 +1,2 @@
+vg_src="main.c"
+vg_target="game"