Procházet zdrojové kódy

Update project meta files

* Updates clang-format settings
* Updates cmake-format settings
* Updates gitignore file
PatTheMav před 2 roky
rodič
revize
4b2c5dd6e4
3 změnil soubory, kde provedl 52 přidání a 14 odebrání
  1. 1 0
      .clang-format
  2. 27 3
      .cmake-format.json
  3. 24 11
      .gitignore

+ 1 - 0
.clang-format

@@ -57,6 +57,7 @@ ForEachMacros:
   - 'json_object_foreach'
   - 'json_object_foreach_safe'
   - 'json_array_foreach'
+  - 'HASH_ITER'
 IncludeBlocks: Preserve
 IndentCaseLabels: false
 IndentPPDirectives: None

+ 27 - 3
.cmake-format.json

@@ -1,4 +1,10 @@
 {
+  "format": {
+    "line_width": 120,
+    "tab_size": 2,
+    "enable_sort": true,
+    "autosort": true
+  },
   "additional_commands": {
     "find_qt": {
       "flags": [],
@@ -8,9 +14,27 @@
         "COMPONENTS_MACOS": "+",
         "COMPONENTS_LINUX": "+"
       }
+    },
+    "set_target_properties_obs": {
+      "pargs": 1,
+      "flags": [],
+      "kwargs": {
+        "PROPERTIES": {
+          "kwargs": {
+            "PREFIX": 1,
+            "OUTPUT_NAME": 1,
+            "FOLDER": 1,
+            "VERSION": 1,
+            "SOVERSION": 1,
+            "AUTOMOC": 1,
+            "AUTOUIC": 1,
+            "AUTORCC": 1,
+            "AUTOUIC_SEARCH_PATHS": 1,
+            "BUILD_RPATH": 1,
+            "INSTALL_RPATH": 1
+          }
+        }
+      }
     }
-  },
-  "format": {
-    "line_width": 100
   }
 }

+ 24 - 11
.gitignore

@@ -1,13 +1,26 @@
-*~
-.DS_Store
-/build/
-/build_*/
-/release/
-/installer/Output/
+# Exclude everything
+/*
+
+# Except for default project files
+!/.github
+!/build-aux
+!/cmake
+!/data
+!/src
+!.clang-format
+!.cmake-format.json
+!.gitignore
+!buildspec.json
+!CMakeLists.txt
+!CMakePresets.json
+!LICENSE
+!README.md
 
-.vscode
-.idea
+# Exclude lock files
+*.lock.json
+
+# Exclude macOS legacy resource forks
+.DS_Store
 
-# ignore generated files
-*.generated.*
-**/.Brewfile.lock.json
+# Exclude CMake build number cache
+/cmake/.CMakeBuildNumber