Skip to content

Commit bf021ed

Browse files
committed
Refactor GodotProjectContext and add helper functions for project scanning
- Reorganized methods in GodotProjectContext for better readability. - Introduced new helper functions for parsing autoloads and converting database rows to dictionaries. - Implemented file watcher functionality to monitor project changes. - Added metrics handling for scan results. - Created new source files for context helpers, materializers, and metrics. - Updated register_types to improve initialization function signature. - Adjusted binary files for project context and scanner rules.
1 parent 33e3ae8 commit bf021ed

37 files changed

Lines changed: 4105 additions & 3638 deletions

File tree

.sconsign.dblite

113 KB
Binary file not shown.

SConstruct

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ platform = ARGUMENTS.get("platform", "")
1616
build_target = ARGUMENTS.get("target", "")
1717
arch = ARGUMENTS.get("arch", "")
1818
build_doctest = str(ARGUMENTS.pop("doctest", "0")).lower() in {"1", "true", "yes"}
19+
build_compiledb = str(ARGUMENTS.pop("compiledb", "1")).lower() in {
20+
"1", "true", "yes", "on"
21+
}
1922

2023
if not platform:
2124
raise RuntimeError("Missing required SCons argument: platform=windows|linux|macos")
@@ -156,6 +159,17 @@ library = env.SharedLibrary(
156159

157160
default_targets = [library]
158161

162+
if build_compiledb:
163+
env.Tool("compilation_db")
164+
165+
compile_commands = env.CompilationDatabase(
166+
target="compile_commands.json",
167+
source=library,
168+
)
169+
170+
default_targets.append(compile_commands)
171+
env.Alias("compiledb", compile_commands)
172+
159173
if build_doctest:
160174
native_test_sources = [
161175
"tests/native/test_main.cpp",
Binary file not shown.

compile_commands.json

Lines changed: 168 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)