1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

HackStudio: Allow customizing the actions of the Build & Run buttons

This commit introduces per-project settings that can be customized
through a JSON file placed in '.hackstudio/config.json' in the
project's root
This commit is contained in:
Marco Cutecchia 2022-03-18 23:17:22 +01:00 committed by Andreas Kling
parent 3e6c083754
commit 9096da19f1
7 changed files with 106 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include "ProjectConfig.h"
#include "ProjectFile.h"
#include <AK/LexicalPath.h>
#include <AK/Noncopyable.h>
@ -32,6 +33,9 @@ public:
String to_absolute_path(String const&) const;
bool project_is_serenity() const;
static constexpr StringView config_file_path = ".hackstudio/config.json";
NonnullOwnPtr<ProjectConfig> config() const;
private:
explicit Project(String const& root_path);