-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
106 lines (106 loc) · 3.29 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "@my-scope/firmware",
"version": "0.1.0",
"description": "vscode test",
"main": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/my-github-id/firmware.git"
},
"bugs": {
"url": "https://github.com/my-github-id/firmware/issues/"
},
"homepage": "https://github.com/my-github-id/firmware/",
"keywords": [
"xpack"
],
"author": {
"name": "my name",
"email": "[email protected]",
"url": "https://my-url"
},
"contributors": [
{
"name": "Liviu Ionescu",
"email": "[email protected]",
"url": "https://github.com/ilg-ul/"
}
],
"license": "MIT",
"config": {},
"dependencies": {},
"devDependencies": {
"@xpack-dev-tools/cmake": "3.19.8-1.1",
"@xpack-dev-tools/ninja-build": "1.10.2-3.1",
"@xpack-dev-tools/arm-none-eabi-gcc": "10.2.1-1.1.2",
"@xpack-dev-tools/windows-build-tools": "4.2.1-2.1"
},
"xpack": {"minimumXpmRequired": "0.10.2",
"properties": {
"buildFolderRelativePath": "{{ 'build' | path_join: configuration.name | to_filename | downcase }}",
"toolchainFileName": "toolchain-gcc.cmake",
"commandPrepare": "cmake -S meta -B {{ properties.buildFolderRelativePath }} -G Ninja -D CMAKE_BUILD_TYPE={{ properties.buildType }} -D CMAKE_EXPORT_COMPILE_COMMANDS=ON",
"commandPrepareWithToolchain": "{{ properties.commandPrepare }} -D CMAKE_TOOLCHAIN_FILE={{ properties.toolchainFileName }}",
"commandReconfigure": "{{ properties.commandPrepare }}",
"commandBuild": "cmake --build {{ properties.buildFolderRelativePath }} --verbose",
"commandClean": "cmake --build {{ properties.buildFolderRelativePath }} --target clean",
"commandExecuteHello": "{{ properties.buildFolderRelativePath }}{{ path.sep }}hello-world"
},
"actions": {
"prepare-all": [
"xpm run prepare --config Debug",
"xpm run prepare --config Release"
],
"build-all": [
"xpm run build --config Debug",
"xpm run build --config Release"
],
"clean-all": [
"xpm run clean --config Debug",
"xpm run clean --config Release"
],
"execute-all": [
"xpm run execute --config Debug",
"xpm run execute --config Release"
],
"test": [
"xpm run prepare-all",
"xpm run build-all",
"xpm run execute-all"
]
},
"buildConfigurations": {
"Debug": {
"properties": {
"buildType": "Debug"
},
"actions": {
"prepare": "{{ properties.commandPrepareWithToolchain }}",
"build": [
"{{ properties.commandReconfigure }}",
"{{ properties.commandBuild }}"
],
"clean": "{{ properties.commandClean }}",
"execute": "{{ properties.commandExecuteHello }}"
}
},
"Release": {
"properties": {
"buildType": "Release"
},
"actions": {
"prepare": "{{ properties.commandPrepareWithToolchain }}",
"build": [
"{{ properties.commandReconfigure }}",
"{{ properties.commandBuild }}"
],
"clean": "{{ properties.commandClean }}",
"execute": "{{ properties.commandExecuteHello }}"
}
}
}
}
}