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