Skip to content

Commit

Permalink
android: remove i686 support fixes WPB-11504
Browse files Browse the repository at this point in the history
  • Loading branch information
z-dule committed Nov 21, 2024
1 parent 0f52002 commit 8f70ffe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
19 changes: 3 additions & 16 deletions mk/dist.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
# The target "dist_android" builds the following:
#
# o an Android AAR build/dist/android/avs.aar with the release code for
# armv7 and i386 architectures. 64 bit architectures will follow as
# soon as certain build troubles are sorted out.
# armv7, arm64 and x86_64 architectures.
#
# o a Zip archive build/dist/android/avs.zip with the NDK shared
# libraries for Android armv7 and i386 as well as for OSX x86_64, and
# libraries for Android armv7, arm64 as well as for OSX x86_64, and
# the class files in non-jar form.
#
# The targets "dist_ios" and "dist_osx" build the following:
Expand Down Expand Up @@ -52,7 +51,7 @@ ifeq ($(DIST_ARCH),)
DIST_ARCH := $(ALL_AVS_ARCH) osx
endif

DIST_ARCH_android := $(filter armv7 arm64 i386 x86_64 osx,$(DIST_ARCH))
DIST_ARCH_android := $(filter armv7 arm64 x86_64 osx,$(DIST_ARCH))
DIST_ARCH_ios := $(filter arm64,$(DIST_ARCH))
DIST_ARCH_iossim := $(filter arm64 x86_64,$(DIST_ARCH))
DIST_ARCH_osx := $(filter arm64 x86_64,$(DIST_ARCH))
Expand Down Expand Up @@ -170,10 +169,6 @@ ifneq ($(filter arm64,$(DIST_ARCH)),)
$(call build_arch,arm64,arm64-v8a,aarch64-linux-android)
endif

ifneq ($(filter i386,$(DIST_ARCH)),)
$(call build_arch,i386,x86,i686-linux-android)
endif

ifneq ($(filter x86_64,$(DIST_ARCH)),)
$(call build_arch,x86_64,x86_64,x86_64-linux-android)
endif
Expand Down Expand Up @@ -216,14 +211,6 @@ ifneq ($(filter arm64,$(DIST_ARCH)),)
@cp $(BUILD_BASE)/android-arm64/lib/libavs.so \
$(BUILD_DIST_AND)/zip/libs/arm64-v8a
endif
ifneq ($(filter i386,$(DIST_ARCH)),)
$(MAKE) contrib AVS_OS=android AVS_ARCH=i386 && \
$(MAKE) $(JOBS) avs AVS_OS=android AVS_ARCH=i386 && \
$(MAKE) android_shared AVS_OS=android AVS_ARCH=i386
@mkdir -p $(BUILD_DIST_AND)/zip/libs/x86
@cp $(BUILD_BASE)/android-i386/lib/libavs.so \
$(BUILD_DIST_AND)/zip/libs/x86
endif
ifneq ($(filter x86_64,$(DIST_ARCH)),)
$(MAKE) contrib AVS_OS=android AVS_ARCH=x86_64 && \
$(MAKE) $(JOBS) avs AVS_OS=android AVS_ARCH=x86_64 && \
Expand Down
3 changes: 0 additions & 3 deletions mk/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# AVS_OS=android AVS_ARCH=armv7
# AVS_ARCH=arm64
# AVS_ARCH=i386
# AVS_ARCH=x86_64
# AVS_OS=linux AVS_ARCH=x86_64
# AVS_ARCH=i386
Expand Down Expand Up @@ -373,7 +372,6 @@ AVS_OS_FAMILY := linux

CROSS_PREFIX_armv7 := armv7a-linux-androideabi27
CROSS_PREFIX_arm64 := aarch64-linux-android27
CROSS_PREFIX_i386 := i686-linux-android27
CROSS_PREFIX_x86_64 := x86_64-linux-android27
CROSS_PREFIX := $(CROSS_PREFIX_$(AVS_ARCH))

Expand Down Expand Up @@ -457,7 +455,6 @@ ifeq ($(AVS_ARCH),armv7)
CPPFLAGS += \
-march=armv7-a -mfpu=neon -mfloat-abi=softfp -mcpu=cortex-a8
else ifeq ($(AVS_ARCH),arm64)
else ifeq ($(AVS_ARCH),i386)
else ifeq ($(AVS_ARCH),x86_64)
else
$(error Unknown architecture $(AVS_ARCH) for Android.)
Expand Down
3 changes: 0 additions & 3 deletions mk/toolchain.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ TOOLCHAIN_STL := libc++

TOOLCHAIN_ARCH_armv7 := arm
TOOLCHAIN_ARCH_arm64 := arm64
TOOLCHAIN_ARCH_i386 := x86
TOOLCHAIN_ARCH_x86_64 := x86_64
TOOLCHAIN_ARCH := $(TOOLCHAIN_ARCH_$(AVS_ARCH))

TOOLCHAIN_TOOLCHAIN_armv7 := arm-linux-androideabi-$(TOOLCHAIN_GCC_VERSION)
TOOLCHAIN_TOOLCHAIN_arm64 := aarch64-linux-android-$(TOOLCHAIN_GCC_VERSION)
TOOLCHAIN_TOOLCHAIN_i386 := x86-$(TOOLCHAIN_GCC_VERSION)
TOOLCHAIN_TOOLCHAIN_x86_64 := x86_64-$(TOOLCHAIN_GCC_VERSION)
TOOLCHAIN_TOOLCHAIN := $(TOOLCHAIN_TOOLCHAIN_$(AVS_ARCH))

TC_ABI_armv7 := armeabi-v7a
TC_ABI_arm64 := arm64-v8a
TC_ABI_i386 := x86
TC_ABI_x86_64 := x86_64
TC_ABI := $(TC_ABI_$(AVS_ARCH))

Expand Down

0 comments on commit 8f70ffe

Please sign in to comment.