Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ Run the appropriate script for your platform:
```
./configure.bat
```
Run
```
python tools/dev_tools.py configure configure
```
Select your build system (e.g. Visual Studio, XCode, Ninja, Make,...) and press return.

This will create the CMakeUserPresets.json

3. Build the project with CMake:
Create a build directory, configure the project, and build it:
Expand Down
2 changes: 1 addition & 1 deletion tools/src/package_managers_initializers/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def generate_cmake_user_presets(inherit_from="",toolchain_file=None):
"jobs": cpus,
})

cmake_user_presets_path = os.path.join(__file__,"..","..","..","..", "CMakeUserPresets.json")
cmake_user_presets_path = os.path.abspath(os.path.join(__file__,"..","..","..","..", "CMakeUserPresets.json"))
import json
with open(cmake_user_presets_path, 'w') as f:
json.dump(cmake_presets_json, f, indent=2)
Expand Down
2 changes: 1 addition & 1 deletion tools/src/project_management/configure_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ def list_generators():
for gen in generator_list:
console.print(f" - {gen}")
if __name__ == "__main__":
cli()
cli()
4 changes: 2 additions & 2 deletions tools/src/project_management/project_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class ProjectConfig:
@classmethod
def load(cls, file_path: str) -> 'ProjectConfig':
"""Load configuration from a JSON file."""
if not os.path.exists(file_path):
if not os.path.exists(os.path.abspath(file_path)):
raise FileNotFoundError(f"Configuration file not found: {file_path}")

with open(file_path, 'r') as f:
with open(os.path.abspath(file_path), 'r') as f:
data = json.load(f)

return cls(
Expand Down
95 changes: 0 additions & 95 deletions tools/src/wizard/wizard.py

This file was deleted.

Loading