blob: bf45b0dae3ecea9f19176db1c9829ed5a8d33798 [file] [log] [blame]
Marco Nelissen2fa59c82020-04-22 09:33:28 -07001cc_defaults {
2 name: "libsonivox-defaults",
Dan Willemsencd673372016-09-21 15:32:16 -07003 srcs: [
Dan Willemsencd673372016-09-21 15:32:16 -07004 "lib_src/eas_data.c",
5 "lib_src/eas_dlssynth.c",
6 "lib_src/eas_flog.c",
Dan Willemsencd673372016-09-21 15:32:16 -07007 "lib_src/eas_imelody.c",
8 "lib_src/eas_imelodydata.c",
9 "lib_src/eas_math.c",
10 "lib_src/eas_mdls.c",
11 "lib_src/eas_midi.c",
12 "lib_src/eas_mididata.c",
13 "lib_src/eas_mixbuf.c",
14 "lib_src/eas_mixer.c",
15 "lib_src/eas_ota.c",
16 "lib_src/eas_otadata.c",
17 "lib_src/eas_pan.c",
18 "lib_src/eas_pcm.c",
19 "lib_src/eas_pcmdata.c",
20 "lib_src/eas_public.c",
21 "lib_src/eas_reverb.c",
22 "lib_src/eas_reverbdata.c",
23 "lib_src/eas_rtttl.c",
24 "lib_src/eas_rtttldata.c",
25 "lib_src/eas_smf.c",
26 "lib_src/eas_smfdata.c",
27 "lib_src/eas_voicemgt.c",
28 "lib_src/eas_wtengine.c",
29 "lib_src/eas_wtsynth.c",
30 "lib_src/eas_xmf.c",
31 "lib_src/eas_xmfdata.c",
32 "lib_src/wt_22khz.c",
Dan Willemsencd673372016-09-21 15:32:16 -070033 "host_src/eas_config.c",
34 "host_src/eas_hostmm.c",
35 "host_src/eas_report.c",
Dan Willemsencd673372016-09-21 15:32:16 -070036 ],
37
38 cflags: [
39 "-O2",
40 "-DUNIFIED_DEBUG_MESSAGES",
41 "-DEAS_WT_SYNTH",
42 "-D_IMELODY_PARSER",
43 "-D_RTTTL_PARSER",
44 "-D_OTA_PARSER",
45 "-D_XMF_PARSER",
46 "-DNUM_OUTPUT_CHANNELS=2",
47 "-D_SAMPLE_RATE_22050",
48 "-DMAX_SYNTH_VOICES=64",
taeseok715.kim92585972019-02-12 19:13:29 +090049 "-D_16_BIT_SAMPLES",
Dan Willemsencd673372016-09-21 15:32:16 -070050 "-D_FILTER_ENABLED",
51 "-DDLS_SYNTHESIZER",
52 "-D_REVERB_ENABLED",
53
54 "-Wno-unused-parameter",
55 "-Werror",
56
57 // not using these options
58 // "-D_WAVE_PARSER",
59 // "-D_IMA_DECODER", // (needed for IMA-ADPCM wave files)
60 // "-D_CHORUS_ENABLED",
61 ],
62
63 local_include_dirs: [
64 "host_src",
65 "lib_src",
66 ],
67 export_include_dirs: ["include"],
68
69 shared_libs: [
70 "liblog",
Dan Willemsencd673372016-09-21 15:32:16 -070071 ],
72
73 arch: {
74 arm: {
75 instruction_set: "arm",
76
77 srcs: [
78 "lib_src/ARM-E_filter_gnu.s",
taeseok715.kim92585972019-02-12 19:13:29 +090079 //"lib_src/ARM-E_interpolate_loop_gnu.s",
80 //"lib_src/ARM-E_interpolate_noloop_gnu.s",
Dan Willemsencd673372016-09-21 15:32:16 -070081 "lib_src/ARM-E_mastergain_gnu.s",
taeseok715.kim92585972019-02-12 19:13:29 +090082 //"lib_src/ARM-E_voice_gain_gnu.s",
Dan Willemsencd673372016-09-21 15:32:16 -070083 ],
84
85 asflags: [
86 // In order to use #include instead of .include
87 "-xassembler-with-cpp",
88
89 "-Wa,--defsym,SAMPLE_RATE_22050=1",
90 "-Wa,--defsym,STEREO_OUTPUT=1",
91 "-Wa,--defsym,FILTER_ENABLED=1",
taeseok715.kim92585972019-02-12 19:13:29 +090092 "-Wa,--defsym,SAMPLES_16_BIT=1",
Dan Willemsencd673372016-09-21 15:32:16 -070093 ],
94
95 cflags: [
96 "-DNATIVE_EAS_KERNEL",
97 ],
98
99 // .s files not ported for Clang assembler yet.
100 clang_asflags: ["-no-integrated-as"],
101 },
102 arm64: {
103 // .s files not ported for Clang assembler yet.
104 clang_asflags: ["-no-integrated-as"],
105 },
106 },
Marco Nelissen66c4b512019-06-19 15:07:59 -0700107 sanitize: {
108 cfi: true,
109 misc_undefined: [
110 "bounds",
111 "unsigned-integer-overflow",
112 "signed-integer-overflow",
113 ],
114 }
Dan Willemsencd673372016-09-21 15:32:16 -0700115}
Marco Nelissen2fa59c82020-04-22 09:33:28 -0700116
117cc_library {
118 name: "libsonivoxwithoutjet",
119 defaults: ["libsonivox-defaults"],
Jiyong Park74bbfa92020-04-27 15:55:37 +0900120 apex_available: [
121 "//apex_available:platform",
122 "com.android.media",
123 ],
Jooyung Haneb1927a2020-05-11 17:21:02 +0900124 min_sdk_version: "29",
Marco Nelissen2fa59c82020-04-22 09:33:28 -0700125}
126
127cc_library {
128 name: "libsonivox",
129 defaults: ["libsonivox-defaults"],
130 srcs: [
131 "lib_src/jet.c",
132 ],
133
134 cflags: [
135 "-DJET_INTERFACE",
136 ],
137}
138
139