feat(clients): sa-token dev tool prints a service-account access token

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 04:35:05 +02:00
co-authored by Claude Sonnet 5.5
parent 40242ca09d
commit 0dcbc51383
2 changed files with 40 additions and 1 deletions
+7 -1
View File
@@ -28,7 +28,13 @@ GOOGLE_OBJS := $(patsubst $(ROOT)/%.cpp,$(GOOGLE_OBJDIR)/%.o,$(GOOGLE_SRCS))
# layout corrupts the heap).
-include $(GOOGLE_OBJS:.o=.d)
.PHONY: google google-test google-clean
.PHONY: google google-test google-clean google-token
# Dev tool: prints a service-account access token (see tools/google_sa_token.cpp).
google-token: build/google/sa-token
build/google/sa-token: $(ROOT)/tools/google_sa_token.cpp $(GOOGLE_LIB) $(CLIENTS_LIB) $(OPERABILITY_LIB)
@mkdir -p $(dir $@)
$(CXX) $(GOOGLE_CXXFLAGS) -I$(ROOT)/src $< $(GOOGLE_LIB) $(CLIENTS_LIB) $(OPERABILITY_LIB) -lwolfssl -o $@
google: $(GOOGLE_LIB)