File tree 3 files changed +33
-0
lines changed 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ option go_package = "github.com/arduino/arduino-cli/rpc";
6
6
7
7
import "common.proto" ;
8
8
import "board.proto" ;
9
+ import "compile.proto" ;
9
10
10
11
// The main Arduino Platform Service
11
12
service ArduinoCore {
@@ -23,6 +24,8 @@ service ArduinoCore {
23
24
24
25
// Requests details about a board
25
26
rpc BoardDetails (BoardDetailsReq ) returns (BoardDetailsResp );
27
+
28
+ rpc Compile (CompileReq ) returns (CompileResp );
26
29
}
27
30
28
31
// Configuration contains information to instantiate an Arduino Platform Service
Original file line number Diff line number Diff line change
1
+ package rpc
2
+
3
+ //go:generate protoc -I . -I .. --go_out=plugins=grpc:../../../.. compile.proto
Original file line number Diff line number Diff line change
1
+ syntax = "proto3" ;
2
+
3
+ package arduino ;
4
+
5
+ option go_package = "github.com/arduino/arduino-cli/rpc" ;
6
+
7
+ import "common.proto" ;
8
+
9
+ message CompileReq {
10
+ Instance instance = 1 ;
11
+ string fqbn = 2 ; // Fully Qualified Board Name, e.g.: arduino:avr:uno.
12
+ string sketchPath = 3 ;
13
+ bool showProperties = 4 ; // Show all build preferences used instead of compiling.
14
+ bool preprocess = 5 ; // Print preprocessed code to stdout.
15
+ string buildCachePath = 6 ; // Builds of 'core.a' are saved into this path to be cached and reused.
16
+ string buildPath = 7 ; // Path where to save compiled files.
17
+ repeated string buildProperties = 8 ; // List of custom build properties separated by commas. Or can be used multiple times for multiple properties.
18
+ string warnings = 9 ; // Used to tell gcc which warning level to use.
19
+ bool verbose = 10 ; // Turns on verbose mode.
20
+ bool quiet = 11 ; // Suppresses almost every output.
21
+ string vidPid = 12 ; // VID/PID specific build properties.
22
+ string exportFile = 13 ; // The compiled binary is written to this file
23
+ }
24
+
25
+ message CompileResp {
26
+ Result result = 1 ;
27
+ }
You can’t perform that action at this time.
0 commit comments