Add and update some project settings

This commit is contained in:
Thomas Jensen 2021-03-03 22:25:06 +01:00
parent 97a2e2d76d
commit f27bac6465
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
5 changed files with 89 additions and 3 deletions

4
.gitattributes vendored
View File

@ -10,5 +10,7 @@ tools/VERIFICATION.txt text eol=crlf
# the test cases
/test/*.txt text eol=lf
# special test case for testing ISO encoding
# some files which are currently in ISO-8859-15 encoding
/boxes.vim text working-tree-encoding=ISO_8859-15
/src/lexer.l text working-tree-encoding=ISO_8859-15
/test/111_manual_encoding_iso.txt text working-tree-encoding=ISO_8859-15

2
.gitignore vendored
View File

@ -19,6 +19,8 @@
*.o
*.a
/src/boxes.h
/cmake-build-debug/
/test/*.tmp
# Legacy locations of generated files (no longer in use)
/src/boxes

27
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,27 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/src",
"${workspaceFolder}/src/misc",
"${workspaceFolder}/out",
"${workspaceFolder}/pcre2-10.36/src"
],
"defines": [
"_DEBUG",
"DEBUG",
"REGEXP_DEBUG",
"PARSER_DEBUG",
"LEXER_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\MinGW\\bin\\gcc.exe",
"cStandard": "c99",
"cppStandard": "gnu++14",
"intelliSenseMode": "windows-gcc-x86"
}
],
"version": 4
}

53
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,53 @@
{
"files.exclude": {
"**/.git": true,
"**/.idea": true,
"**/_site": true,
"**/_support": true,
"**/cmake-build-debug": true,
"**/coverage": true,
"**/out": true
},
"editor.autoClosingBrackets": "never",
"editor.dragAndDrop": false,
"editor.formatOnSave": false,
"editor.renderWhitespace": "selection",
"editor.rulers": [120],
"editor.wordWrapColumn": 120,
"files.associations": {
"*.h.in": "c",
"*.1.in": "troff"
},
"files.encoding": "utf8",
"todo-tree.highlights.defaultHighlight": {
"foreground": "red",
"rulerLane": "full"
},
"todo-tree.filtering.excludeGlobs": [
"**/out/**",
"**/build/**",
"**/.vscode/**",
"**/.github/**",
"**/_site/**",
"**/_support/**",
"**/pcre2-*/**"
],
"todo-tree.general.statusBar": "total",
"todo-tree.general.tags": ["TODO", "FIXME", "CHECK"],
"todo-tree.regex.regex": "(//|#|<!--|\"|/\\*|^\\s*\\*)\\s*($TAGS)",
"todo-tree.tree.expanded": true,
"todo-tree.tree.showCountsInTree": true,
"[lex]": {
"files.encoding": "iso885915"
},
"[makefile]": {
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.renderWhitespace": "boundary"
},
"[viml]": {
"files.encoding": "iso885915"
}
}

View File

@ -49,10 +49,12 @@ $(OUT_DIR):
mkdir $(OUT_DIR)
build: flags_$(BOXES_PLATFORM) | $(OUT_DIR)
$(MAKE) -C $(OUT_DIR) -f $(SRC_DIR)/Makefile BOXES_PLATFORM=$(BOXES_PLATFORM) ALL_OBJ="$(ALL_OBJ)" CFLAGS_ADDTL="-O $(CFLAGS_ADDTL)" STRIP=true flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)
$(MAKE) -C $(OUT_DIR) -f $(SRC_DIR)/Makefile BOXES_PLATFORM=$(BOXES_PLATFORM) ALL_OBJ="$(ALL_OBJ)" \
CFLAGS_ADDTL="-O $(CFLAGS_ADDTL)" STRIP=true flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)
debug: flags_$(BOXES_PLATFORM) | $(OUT_DIR)
$(MAKE) -C $(OUT_DIR) -f $(SRC_DIR)/Makefile BOXES_PLATFORM=$(BOXES_PLATFORM) ALL_OBJ="$(ALL_OBJ)" CFLAGS_ADDTL="-g $(CFLAGS_ADDTL)" STRIP=false flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)
$(MAKE) -C $(OUT_DIR) -f $(SRC_DIR)/Makefile BOXES_PLATFORM=$(BOXES_PLATFORM) ALL_OBJ="$(ALL_OBJ)" \
CFLAGS_ADDTL="-g $(CFLAGS_ADDTL)" STRIP=false flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)
boxes: $(ALL_OBJ) | check_dir
$(CC) $(LDFLAGS) $^ -o $@ -lunistring -lpcre2-32