blob: eaa0856b8716e53f092a8f32119ee0457c34c45d [file] [log] [blame]
Android Chromium Automerger513a0392014-04-01 19:42:47 +00001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libsrtp_libsrtp_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25 third_party/libsrtp/srtp/srtp/ekt.c \
26 third_party/libsrtp/srtp/srtp/srtp.c \
27 third_party/libsrtp/srtp/crypto/cipher/aes.c \
28 third_party/libsrtp/srtp/crypto/cipher/aes_cbc.c \
29 third_party/libsrtp/srtp/crypto/cipher/aes_icm.c \
30 third_party/libsrtp/srtp/crypto/cipher/cipher.c \
31 third_party/libsrtp/srtp/crypto/cipher/null_cipher.c \
32 third_party/libsrtp/srtp/crypto/hash/auth.c \
33 third_party/libsrtp/srtp/crypto/hash/hmac.c \
34 third_party/libsrtp/srtp/crypto/hash/null_auth.c \
35 third_party/libsrtp/srtp/crypto/hash/sha1.c \
36 third_party/libsrtp/srtp/crypto/kernel/alloc.c \
37 third_party/libsrtp/srtp/crypto/kernel/crypto_kernel.c \
38 third_party/libsrtp/srtp/crypto/kernel/err.c \
39 third_party/libsrtp/srtp/crypto/kernel/key.c \
40 third_party/libsrtp/srtp/crypto/math/datatypes.c \
41 third_party/libsrtp/srtp/crypto/math/gf2_8.c \
42 third_party/libsrtp/srtp/crypto/math/stat.c \
43 third_party/libsrtp/srtp/crypto/replay/rdb.c \
44 third_party/libsrtp/srtp/crypto/replay/rdbx.c \
45 third_party/libsrtp/srtp/crypto/replay/ut_sim.c \
46 third_party/libsrtp/srtp/crypto/rng/ctr_prng.c \
47 third_party/libsrtp/srtp/crypto/rng/prng.c \
48 third_party/libsrtp/srtp/crypto/rng/rand_source.c
49
50
51# Flags passed to both C and C++ files.
52MY_CFLAGS_Debug := \
53 -fstack-protector \
54 --param=ssp-buffer-size=4 \
55 \
56 -fno-exceptions \
57 -fno-strict-aliasing \
58 -Wno-unused-parameter \
59 -Wno-missing-field-initializers \
60 -fvisibility=hidden \
61 -pipe \
62 -fPIC \
63 -Wno-format \
64 -EL \
65 -mhard-float \
66 -ffunction-sections \
67 -funwind-tables \
68 -g \
69 -fstack-protector \
70 -fno-short-enums \
71 -finline-limit=64 \
72 -Wa,--noexecstack \
73 -U_FORTIFY_SOURCE \
74 -Wno-extra \
75 -Wno-ignored-qualifiers \
76 -Wno-type-limits \
77 -Wno-unused-but-set-variable \
78 -Wno-address \
79 -Wno-format-security \
80 -Wno-return-type \
81 -Wno-sequence-point \
82 -Os \
83 -g \
84 -fomit-frame-pointer \
85 -fdata-sections \
86 -ffunction-sections \
87 -funwind-tables
88
89MY_DEFS_Debug := \
90 '-DHAVE_STDLIB_H' \
91 '-DHAVE_STRING_H' \
92 '-DV8_DEPRECATION_WARNINGS' \
93 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
94 '-D_FILE_OFFSET_BITS=64' \
95 '-DNO_TCMALLOC' \
96 '-DDISABLE_NACL' \
97 '-DHAVE_INT16_T' \
98 '-DHAVE_INT32_T' \
99 '-DHAVE_INT8_T' \
100 '-DHAVE_UINT16_T' \
101 '-DHAVE_UINT32_T' \
102 '-DHAVE_UINT64_T' \
103 '-DHAVE_UINT8_T' \
104 '-DHAVE_STDINT_H' \
105 '-DHAVE_INTTYPES_H' \
106 '-DHAVE_NETINET_IN_H' \
107 '-DINLINE=inline' \
108 '-DCPU_RISC' \
109 '-DCHROMIUM_BUILD' \
110 '-DUSE_LIBJPEG_TURBO=1' \
111 '-DENABLE_WEBRTC=1' \
112 '-DUSE_PROPRIETARY_CODECS' \
113 '-DENABLE_CONFIGURATION_POLICY' \
114 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
115 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
116 '-DENABLE_EGLIMAGE=1' \
117 '-DCLD_VERSION=1' \
118 '-DENABLE_PRINTING=1' \
119 '-DENABLE_MANAGED_USERS=1' \
120 '-DUSE_OPENSSL=1' \
121 '-DUSE_OPENSSL_CERTS=1' \
122 '-DANDROID' \
123 '-D__GNU_SOURCE=1' \
124 '-DUSE_STLPORT=1' \
125 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
126 '-DCHROME_BUILD_ID=""' \
127 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
128 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
129 '-D_DEBUG'
130
131
132# Include paths placed before CFLAGS/CPPFLAGS
133LOCAL_C_INCLUDES_Debug := \
134 $(LOCAL_PATH)/third_party/libsrtp/config \
135 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \
136 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \
137 $(PWD)/frameworks/wilhelm/include \
138 $(PWD)/bionic \
139 $(PWD)/external/stlport/stlport
140
141
142# Flags passed to only C++ (and not C) files.
143LOCAL_CPPFLAGS_Debug := \
144 -fno-rtti \
145 -fno-threadsafe-statics \
146 -fvisibility-inlines-hidden \
147 -Wno-deprecated \
148 -Wno-uninitialized \
149 -Wno-non-virtual-dtor \
150 -Wno-sign-promo \
151 -Wno-non-virtual-dtor
152
153
154# Flags passed to both C and C++ files.
155MY_CFLAGS_Release := \
156 -fstack-protector \
157 --param=ssp-buffer-size=4 \
158 \
159 -fno-exceptions \
160 -fno-strict-aliasing \
161 -Wno-unused-parameter \
162 -Wno-missing-field-initializers \
163 -fvisibility=hidden \
164 -pipe \
165 -fPIC \
166 -Wno-format \
167 -EL \
168 -mhard-float \
169 -ffunction-sections \
170 -funwind-tables \
171 -g \
172 -fstack-protector \
173 -fno-short-enums \
174 -finline-limit=64 \
175 -Wa,--noexecstack \
176 -U_FORTIFY_SOURCE \
177 -Wno-extra \
178 -Wno-ignored-qualifiers \
179 -Wno-type-limits \
180 -Wno-unused-but-set-variable \
181 -Wno-address \
182 -Wno-format-security \
183 -Wno-return-type \
184 -Wno-sequence-point \
185 -Os \
186 -fno-ident \
187 -fdata-sections \
188 -ffunction-sections \
189 -fomit-frame-pointer \
190 -funwind-tables
191
192MY_DEFS_Release := \
193 '-DHAVE_STDLIB_H' \
194 '-DHAVE_STRING_H' \
195 '-DV8_DEPRECATION_WARNINGS' \
196 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
197 '-D_FILE_OFFSET_BITS=64' \
198 '-DNO_TCMALLOC' \
199 '-DDISABLE_NACL' \
200 '-DHAVE_INT16_T' \
201 '-DHAVE_INT32_T' \
202 '-DHAVE_INT8_T' \
203 '-DHAVE_UINT16_T' \
204 '-DHAVE_UINT32_T' \
205 '-DHAVE_UINT64_T' \
206 '-DHAVE_UINT8_T' \
207 '-DHAVE_STDINT_H' \
208 '-DHAVE_INTTYPES_H' \
209 '-DHAVE_NETINET_IN_H' \
210 '-DINLINE=inline' \
211 '-DCPU_RISC' \
212 '-DCHROMIUM_BUILD' \
213 '-DUSE_LIBJPEG_TURBO=1' \
214 '-DENABLE_WEBRTC=1' \
215 '-DUSE_PROPRIETARY_CODECS' \
216 '-DENABLE_CONFIGURATION_POLICY' \
217 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
218 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
219 '-DENABLE_EGLIMAGE=1' \
220 '-DCLD_VERSION=1' \
221 '-DENABLE_PRINTING=1' \
222 '-DENABLE_MANAGED_USERS=1' \
223 '-DUSE_OPENSSL=1' \
224 '-DUSE_OPENSSL_CERTS=1' \
225 '-DANDROID' \
226 '-D__GNU_SOURCE=1' \
227 '-DUSE_STLPORT=1' \
228 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
229 '-DCHROME_BUILD_ID=""' \
230 '-DNDEBUG' \
231 '-DNVALGRIND' \
232 '-DDYNAMIC_ANNOTATIONS_ENABLED=0'
233
234
235# Include paths placed before CFLAGS/CPPFLAGS
236LOCAL_C_INCLUDES_Release := \
237 $(LOCAL_PATH)/third_party/libsrtp/config \
238 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \
239 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \
240 $(PWD)/frameworks/wilhelm/include \
241 $(PWD)/bionic \
242 $(PWD)/external/stlport/stlport
243
244
245# Flags passed to only C++ (and not C) files.
246LOCAL_CPPFLAGS_Release := \
247 -fno-rtti \
248 -fno-threadsafe-statics \
249 -fvisibility-inlines-hidden \
250 -Wno-deprecated \
251 -Wno-uninitialized \
252 -Wno-non-virtual-dtor \
253 -Wno-sign-promo \
254 -Wno-non-virtual-dtor
255
256
257LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
258LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
259LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
260LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
261### Rules for final target.
262
263LOCAL_LDFLAGS_Debug := \
264 -Wl,--fatal-warnings \
265 -Wl,-z,now \
266 -Wl,-z,relro \
267 -Wl,-z,noexecstack \
268 -fPIC \
269 -EL \
270 -Wl,--no-keep-memory \
271 -nostdlib \
272 -Wl,--no-undefined \
273 -Wl,--exclude-libs=ALL \
274 -Wl,--gc-sections \
275 -Wl,--warn-shared-textrel \
276 -Wl,-O1 \
277 -Wl,--as-needed
278
279
280LOCAL_LDFLAGS_Release := \
281 -Wl,--fatal-warnings \
282 -Wl,-z,now \
283 -Wl,-z,relro \
284 -Wl,-z,noexecstack \
285 -fPIC \
286 -EL \
287 -Wl,--no-keep-memory \
288 -nostdlib \
289 -Wl,--no-undefined \
290 -Wl,--exclude-libs=ALL \
291 -Wl,-O1 \
292 -Wl,--as-needed \
293 -Wl,--gc-sections \
294 -Wl,--warn-shared-textrel
295
296
297LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
298
299LOCAL_STATIC_LIBRARIES :=
300
301# Enable grouping to fix circular references
302LOCAL_GROUP_STATIC_LIBRARIES := true
303
304LOCAL_SHARED_LIBRARIES := \
305 libstlport \
306 libdl
307
308# Add target alias to "gyp_all_modules" target.
309.PHONY: gyp_all_modules
310gyp_all_modules: third_party_libsrtp_libsrtp_gyp
311
312# Alias gyp target name.
313.PHONY: libsrtp
314libsrtp: third_party_libsrtp_libsrtp_gyp
315
316include $(BUILD_STATIC_LIBRARY)