开发者

APP_ABI := armeabi armeabi-v7a vs. generating map files. How in script figure out which build is linked?

开发者 https://www.devze.com 2023-02-20 23:48 出处:网络
I have something like this: <arg value=\"APP_ABI=armeabiarmeabi-v7a\"/> <property name=\"linker.mapfile\" value=\"-Xlinker -Map=@{mapfile}\" />

I have something like this:

 <arg value="APP_ABI=armeabi  armeabi-v7a"/>

 <property name="linker.mapfile" value="-Xlinker -Map=@{mapfile}" />

 <arg value="LOCAL_LDFLAGS=@{linkerflags} ${linker.mapfile} />

Both map files are generated, however they are saved to this same place (second map overwrite first). I need to find a way to re开发者_如何学Ccognize which build is linked. Which variable should I add to mapfile path?


Could you use TARGET_ARCH_ABI for this? That's usually defined per build with the regular Make-based ndk-build. Not sure about the ant syntax, maybe something like this will do it:

<property name="linker.mapfile"
   value="-Xlinker -Map=@{mapfile}-${TARGET_ARCH_ABI}" />
0

精彩评论

暂无评论...
验证码 换一张
取 消