Skip to content

Commit d935c9b

Browse files
authored
Modify Android x86 profile settings and options
Updated Android x86 profile settings and added configuration for file functions macros.
1 parent 26778b2 commit d935c9b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

conan_profiles/android-x86

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@ include(base/android)
22

33
[settings]
44
arch=x86
5-
os.api_level=24
5+
os.api_level=21
6+
7+
[conf]
8+
# remove after switching to API level >= 24
9+
{% set file_funcs_macros = ['fseeko=fseek', 'ftello=ftell'] %}
10+
flac/*:tools.build:defines={{ file_funcs_macros }}
11+
luajit/*:tools.build:defines={{ file_funcs_macros }}
12+
opusfile/*:tools.build:defines={{ file_funcs_macros }}
613

714
[options]
815
# Workaround for linker error:
916
# "relocation R_386_32 cannot be used against local symbol; recompile with -fPIC"
1017
# Force mpg123 to build as shared to avoid non-PIC ASM objects on Android x86
1118
mpg123/*:shared=True
1219

20+

0 commit comments

Comments
 (0)