mirror of
https://github.com/harshabose/simple_skyline_sonata.git
synced 2025-12-24 13:57:54 +08:00
added delivery targets to Makefile
This commit is contained in:
26
Makefile
26
Makefile
@@ -392,6 +392,19 @@ run-fpv-drone: check-cgo-enabled
|
||||
cd $(BUILD_DIR)/fpv/drone && \
|
||||
$(CGO_RUNTIME_ENV) ./skyline_sonata.fpv.drone
|
||||
|
||||
build-delivery-drone: check check-cgo-enabled
|
||||
echo "Building fpv drone binary with CGO support..."
|
||||
rm -rf $(BUILD_DIR)/delivery/drone
|
||||
mkdir -p $(BUILD_DIR)/delivery/drone
|
||||
cd $(CMD_DIR)/delivery/drone && \
|
||||
$(CGO_RUNTIME_ENV) go build -tags cgo_enabled -o $(BUILD_DIR)/delivery/drone/skyline_sonata.delivery.drone $(LDFLAGS) . || (echo "Build failed"; exit 1)
|
||||
echo "Delivery drone binary built successfully at $(BUILD_DIR)/delivery/drone"
|
||||
|
||||
run-delivery-drone: check-cgo-enabled
|
||||
echo "Running delivery drone with CGO support..."
|
||||
cd $(BUILD_DIR)/delivery/drone && \
|
||||
$(CGO_RUNTIME_ENV) ./skyline_sonata.delivery.drone
|
||||
|
||||
# Non-CGO build targets
|
||||
build-fpv-gcs: check
|
||||
echo "Building fpv gcs binary without CGO..."
|
||||
@@ -406,6 +419,19 @@ run-fpv-gcs:
|
||||
cd $(BUILD_DIR)/fpv/gcs && \
|
||||
$(RUNTIME_ENV) ./skyline_sonata.fpv.gcs
|
||||
|
||||
build-delivery-gcs: check
|
||||
echo "Building delivery gcs binary without CGO..."
|
||||
rm -rf $(BUILD_DIR)/delivery/gcs
|
||||
mkdir -p $(BUILD_DIR)/delivery/gcs
|
||||
cd $(CMD_DIR)/delivery/gcs && \
|
||||
$(RUNTIME_ENV) CGO_ENABLED=0 go build -o $(BUILD_DIR)/delivery/gcs/skyline_sonata.delivery.gcs $(LDFLAGS) . || (echo "Build failed"; exit 1)
|
||||
echo "Delivery gcs binary built successfully at $(BUILD_DIR)/delivery/gcs"
|
||||
|
||||
run-delivery-gcs:
|
||||
echo "Running delivery gcs without CGO..."
|
||||
cd $(BUILD_DIR)/delivery/gcs && \
|
||||
$(RUNTIME_ENV) ./skyline_sonata.delivery.gcs
|
||||
|
||||
build-simple-rtsp-server:
|
||||
echo "Building simple rtsp server"
|
||||
rm -rf $(BUILD_DIR)/rtsp/server
|
||||
|
||||
Reference in New Issue
Block a user