Skip to content

Commit

Permalink
fix: JSON schema Chromium compatibility (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Apr 14, 2023
1 parent c1a6a2e commit 2092eca
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
16 changes: 15 additions & 1 deletion evm-config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"electron",
"electron:dist",
"mksnapshot",
"node:headers"
"node:headers",
"chrome"
]
},
"extends": {
Expand Down Expand Up @@ -143,6 +144,19 @@
"extends"
]
},
{
"properties": {
"defaultTarget": {
"type": "string",
"pattern": "chrome"
}
},
"required": [
"defaultTarget",
"env",
"root"
]
},
{
"required": [
"root",
Expand Down
1 change: 1 addition & 0 deletions example-configs/evm.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ gen:
env:
GIT_CACHE_PATH: /Users/user_name/.git_cache
CHROMIUM_BUILDTOOLS_PATH: /path/to/your/developer/folder/src/build-tools
$schema: file:///Users/user_name/.electron_build_tools/evm-config.schema.json
12 changes: 12 additions & 0 deletions example-configs/evm.chromium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root: /path/to/chromium/
defaultTarget: chrome
gen:
args:
# path to goma for faster builds (https://notgoma.com)
- import("/Users/user_name/.electron_build_tools/third_party/goma.gn")
- is_debug = false
out: Default
env:
GIT_CACHE_PATH: /Users/user_name/.git_cache
CHROMIUM_BUILDTOOLS_PATH: /path/to/your/developer/folder/src/build-tools
$schema: file:///Users/user_name/.electron_build_tools/evm-config.schema.json

0 comments on commit 2092eca

Please sign in to comment.