android-native: SDL3 APK build for the native client
build-android-native.sh downloads SDL 3.4.16 (sha256-checked), builds libSDL3.so and libmain.so (native_render + port_platform + embedded Python) at API 24, and wraps them in the SDLActivity shell under android-native/ (package org.metin2port.client). push-android-client.sh copies the 40250 Client directory into the app's files/ with run-as (--locale XX selects locale_XX.cfg). port_logic links with --no-dependent-libraries on ELF targets so the verbatim `#pragma comment(lib, ...)` lines do not break lld. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0b701d88c3
commit
fd051cc3ed
@@ -47,6 +47,11 @@ if(NOT MSVC)
|
||||
set(MT_PORT_WARNING_FLAGS -Wno-unknown-pragmas -Wno-format-security)
|
||||
endif()
|
||||
target_compile_options(port_logic PUBLIC ${MT_PORT_WARNING_FLAGS})
|
||||
# 40250 headers keep `#pragma comment(lib, "d3d8.lib")` etc. verbatim; clang turns them into ELF
|
||||
# .deplibs that lld then fails to resolve (ld64 on Apple ignores unknown ones).
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Android|Linux")
|
||||
target_link_options(port_logic INTERFACE LINKER:--no-dependent-libraries)
|
||||
endif()
|
||||
target_compile_features(port_logic PUBLIC cxx_std_20)
|
||||
# Armadillo nanomite markers (StdAfx.h `__asm _emit` jumps over a signature): x86-32 MSVC inline asm that no
|
||||
# target here accepts, and a no-op without the Armadillo wrapper, so they expand to nothing.
|
||||
|
||||
Reference in New Issue
Block a user