52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# VavCore Android.mk
|
|
# For use with Godot Android plugins or standalone Android builds
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
# Clear variables
|
|
include $(CLEAR_VARS)
|
|
|
|
# Module name
|
|
LOCAL_MODULE := VavCore
|
|
|
|
# C++ standard and features
|
|
LOCAL_CPP_FEATURES := rtti exceptions
|
|
LOCAL_CPPFLAGS := -std=c++17 -frtti -fexceptions
|
|
|
|
# Android-specific definitions
|
|
LOCAL_CFLAGS := -DANDROID -D__ANDROID_API__=29
|
|
|
|
# Include directories
|
|
LOCAL_C_INCLUDES := \
|
|
$(LOCAL_PATH)/include \
|
|
$(LOCAL_PATH)/src
|
|
|
|
# Common source files (cross-platform)
|
|
VAVCORE_COMMON_SOURCES := \
|
|
src/Common/VideoTypes.cpp \
|
|
src/Decoder/VideoDecoderFactory.cpp \
|
|
src/VavCore.cpp
|
|
|
|
# Android-specific source files
|
|
VAVCORE_ANDROID_SOURCES := \
|
|
src/Decoder/AndroidMediaCodecAV1Decoder.cpp \
|
|
src/Decoder/AV1Decoder.cpp \
|
|
src/FileIO/WebMFileReader.cpp
|
|
|
|
# All source files
|
|
LOCAL_SRC_FILES := \
|
|
$(VAVCORE_COMMON_SOURCES) \
|
|
$(VAVCORE_ANDROID_SOURCES)
|
|
|
|
# Android system libraries
|
|
LOCAL_LDLIBS := \
|
|
-llog \
|
|
-lmediandk
|
|
|
|
# Build as shared library
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
# Alternative: Build as static library
|
|
# Uncomment the following lines and comment out BUILD_SHARED_LIBRARY above
|
|
# LOCAL_MODULE := VavCore-static
|
|
# include $(BUILD_STATIC_LIBRARY)
|