Commit 7c993b10 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Comply with qjs-wrapper v2.0

parent ba7c9205
CXXFLAGS=-pipe -Wall -Wextra -Wpedantic -Werror -Wno-overlength-strings -Wno-unused-parameter -Wformat -Wformat-security -Wformat-nonliteral -Wredundant-decls -Wuninitialized -Winit-self -Wcast-qual -Wstrict-overflow -Wmultichar -Wundef -fno-strict-aliasing -fexceptions -fstack-protector-strong -fstack-clash-protection -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -O3 -flto -fno-fat-lto-objects -Wshadow -Wconversion -fvisibility=hidden -fPIC
LIBS=-lmavsdk -lmavsdk_action -lmavsdk_mavlink_passthrough -lmavsdk_telemetry
LIB_NAME := libautopilotwrapper.so
SRCS := mavsdk_wrapper.cpp
OBJS := mavsdk_wrapper.o
all: $(LIB_NAME)
%.o:
$(LIB_NAME): $(OBJS)
$(CC) $(LDFLAGS) -shared -o $@ $^ $(LIBS)
install: all
mkdir -p "$(DESTDIR)$(prefix)/lib"
install -m644 $(LIB_NAME) "$(DESTDIR)$(prefix)/lib"
clean:
$(RM) -f $(OBJS) $(LIB_NAME)
# mavsdk-wrapper
This project is holding the source code for [qjs-wrapper](https://lab.nexedi.com/nexedi/qjs-wrapper) component that will wrap the functions from [MAVSDK](https://mavsdk.mavlink.io/main/en/index.html).
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment