Android build system, NEON and non-NEON builds

后端 未结 6 2212
情话喂你
情话喂你 2020-12-01 08:26

I want to build my library for armv6, and there is some neon code that I enable at runtime if the device supports it. The neon code uses neon intrinsics, and to be able to c

6条回答
  •  青春惊慌失措
    2020-12-01 09:13

    Using this link http://www.kandroid.org/ndk/docs/CPU-ARM-NEON.html

    You can selectively build certain source files with NEON support using the .neon file suffix. Hopefully you can work out whether or not this applies to the ABI selection...

    You may be able to put your NEON code path in one file, and using the make file conditional as shown above select to build the correct file based on which ABI you are targeting

提交回复
热议问题