mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
makefile: add support for building androidgcs
This commit is contained in:
parent
bc2080fec7
commit
6b4f60b263
36
Makefile
36
Makefile
@ -484,6 +484,13 @@ else
|
|||||||
OPENOCD ?= openocd
|
OPENOCD ?= openocd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(shell [ -d "$(ANDROID_SDK_DIR)" ] && echo "exists"), exists)
|
||||||
|
ANDROID := $(ANDROID_SDK_DIR)/tools/android
|
||||||
|
else
|
||||||
|
# not installed, hope it's in the path...
|
||||||
|
ANDROID ?= android
|
||||||
|
endif
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
#
|
#
|
||||||
# GCS related components
|
# GCS related components
|
||||||
@ -541,6 +548,35 @@ uavobjects_clean:
|
|||||||
$(V0) @echo " CLEAN $@"
|
$(V0) @echo " CLEAN $@"
|
||||||
$(V1) [ ! -d "$(UAVOBJ_OUT_DIR)" ] || $(RM) -r "$(UAVOBJ_OUT_DIR)"
|
$(V1) [ ! -d "$(UAVOBJ_OUT_DIR)" ] || $(RM) -r "$(UAVOBJ_OUT_DIR)"
|
||||||
|
|
||||||
|
################################
|
||||||
|
#
|
||||||
|
# Android GCS related components
|
||||||
|
#
|
||||||
|
################################
|
||||||
|
|
||||||
|
ANDROIDGCS_OUT_DIR := $(BUILD_DIR)/androidgcs
|
||||||
|
#$(warning $(call toprel, $(ANDROIDGCS_OUT_DIR)/bin))
|
||||||
|
|
||||||
|
ifeq ($(V), 1)
|
||||||
|
ANDROID_VERBOSE := -verbose
|
||||||
|
else
|
||||||
|
ANDROID_VERBOSE :=
|
||||||
|
endif
|
||||||
|
.PHONY: androidgcs
|
||||||
|
androidgcs: uavobjects_java
|
||||||
|
$(V1) mkdir -p $(ANDROIDGCS_OUT_DIR)
|
||||||
|
$(V1) $(ANDROID) update project --target 'Google Inc.:Google APIs:16' --name androidgcs --path ./androidgcs
|
||||||
|
$(V1) ant -f ./androidgcs/build.xml \
|
||||||
|
$(ANDROID_VERBOSE) \
|
||||||
|
-Dout.dir="../$(call toprel, $(ANDROIDGCS_OUT_DIR)/bin)" \
|
||||||
|
-Dgen.absolute.dir="$(ANDROIDGCS_OUT_DIR)/gen" \
|
||||||
|
debug
|
||||||
|
|
||||||
|
.PHONY: androidgcs_clean
|
||||||
|
androidgcs_clean:
|
||||||
|
$(V0) @echo " CLEAN $@"
|
||||||
|
$(V1) [ ! -d "$(ANDROIDGCS_OUT_DIR)" ] || $(RM) -r "$(ANDROIDGCS_OUT_DIR)"
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
#
|
#
|
||||||
# Flight related components
|
# Flight related components
|
||||||
|
@ -58,4 +58,4 @@
|
|||||||
|
|
||||||
<service android:name="org.openpilot.androidgcs.telemetry.OPTelemetryService"></service>
|
<service android:name="org.openpilot.androidgcs.telemetry.OPTelemetryService"></service>
|
||||||
</application>
|
</application>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user