-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (27 loc) · 1.16 KB
/
Copy pathRakefile
File metadata and controls
30 lines (27 loc) · 1.16 KB
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
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task default: %i[spec]
desc "Generate protobuf stubs"
task :proto do
ok = system("protoc",
"--proto_path=protocol/protobufs",
"--ruby_out=lib/livekit/proto",
"--twirp_ruby_out=lib/livekit/proto",
"-Iprotocol",
"./protocol/protobufs/livekit_agent.proto",
"./protocol/protobufs/livekit_agent_dispatch.proto",
"./protocol/protobufs/livekit_egress.proto",
"./protocol/protobufs/livekit_ingress.proto",
"./protocol/protobufs/livekit_sip.proto",
"./protocol/protobufs/livekit_metrics.proto",
"./protocol/protobufs/livekit_models.proto",
"./protocol/protobufs/livekit_room.proto",
"./protocol/protobufs/livekit_rtc.proto",
"./protocol/protobufs/livekit_webhook.proto",
"./protocol/protobufs/livekit_connector.proto",
"./protocol/protobufs/livekit_connector_twilio.proto",
"./protocol/protobufs/livekit_connector_whatsapp.proto",
"./protocol/protobufs/logger/options.proto")
abort("protoc failed to generate protobuf stubs") unless ok
end