From 3dd767bb10e6fee9cbffeb185d1a9685810c17b5 Mon Sep 17 00:00:00 2001 From: hgn Date: Mon, 14 Nov 2022 01:36:01 +0000 Subject: [PATCH] simplify gitignore --- .gitignore | 110 ++++++++++++++++++++++-------------------- compile_commands.json | 60 +++++++++++++++++++++++ src/template/vg.conf | 2 + 3 files changed, 121 insertions(+), 51 deletions(-) create mode 100644 compile_commands.json create mode 100644 src/template/vg.conf diff --git a/.gitignore b/.gitignore index 3431ab8..fc078ca 100755 --- a/.gitignore +++ b/.gitignore @@ -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 index 0000000..2ff6c01 --- /dev/null +++ b/compile_commands.json @@ -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 index 0000000..896d68a --- /dev/null +++ b/src/template/vg.conf @@ -0,0 +1,2 @@ +vg_src="main.c" +vg_target="game" -- 2.25.1