Skip to content

Commit

Permalink
Makefile: update go-piper with piper 2023.11.6-3
Browse files Browse the repository at this point in the history
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
  • Loading branch information
M0Rf30 committed Nov 7, 2023
1 parent 562ac62 commit a9384a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ endif
ifeq ($(findstring tts,$(GO_TAGS)),tts)
# OPTIONAL_TARGETS+=go-piper/libpiper_binding.a
# OPTIONAL_TARGETS+=backend-assets/espeak-ng-data
CGO_CXXFLAGS+=-I$(shell pwd)/go-piper/piper/src/cpp -I$(shell pwd)/go-piper/piper/build/pi/include
CGO_LDFLAGS+=-L$(shell pwd)/go-piper/piper/build/pi/lib -lfmt
OPTIONAL_GRPC+=backend-assets/grpc/piper
endif

Expand Down Expand Up @@ -503,7 +505,7 @@ backend-assets/grpc/stablediffusion: backend-assets/grpc
fi

backend-assets/grpc/piper: backend-assets/grpc backend-assets/espeak-ng-data go-piper/libpiper_binding.a
CGO_LDFLAGS="$(CGO_LDFLAGS)" LIBRARY_PATH=$(shell pwd)/go-piper \
CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" LIBRARY_PATH=$(shell pwd)/go-piper \
$(GOCMD) build -ldflags "$(LD_FLAGS)" -tags "$(GO_TAGS)" -o backend-assets/grpc/piper ./cmd/grpc/piper/

backend-assets/grpc/whisper: backend-assets/grpc whisper.cpp/libwhisper.a
Expand Down

0 comments on commit a9384a6

Please sign in to comment.