blob: 58d7c3160b958ac6b1d453fa0cf1c3d365eaf41b [file] [log] [blame]
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +01001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := crypto_crypto_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_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26 crypto/hmac.cc \
27 crypto/secure_util.cc \
28 crypto/curve25519.cc \
29 crypto/curve25519-donna.c \
30 crypto/ghash.cc \
31 crypto/ec_private_key_openssl.cc \
32 crypto/ec_signature_creator.cc \
33 crypto/ec_signature_creator_openssl.cc \
34 crypto/encryptor.cc \
35 crypto/encryptor_openssl.cc \
36 crypto/hkdf.cc \
37 crypto/hmac_openssl.cc \
38 crypto/p224_spake.cc \
39 crypto/openssl_util.cc \
40 crypto/p224.cc \
41 crypto/random.cc \
42 crypto/rsa_private_key.cc \
43 crypto/rsa_private_key_openssl.cc \
44 crypto/secure_hash_openssl.cc \
45 crypto/sha2.cc \
46 crypto/signature_creator_openssl.cc \
47 crypto/signature_verifier_openssl.cc \
48 crypto/symmetric_key_openssl.cc
49
50
51# Flags passed to both C and C++ files.
52MY_CFLAGS := \
53 -fstack-protector \
54 --param=ssp-buffer-size=4 \
55 \
56 -fno-exceptions \
57 -fno-strict-aliasing \
58 -Wall \
59 -Wno-unused-parameter \
60 -Wno-missing-field-initializers \
61 -fvisibility=hidden \
62 -pipe \
63 -fPIC \
64 -EL \
65 -mhard-float \
66 -mips32r2 \
67 -Wa,-mips32r2 \
68 --sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
69 -ffunction-sections \
70 -funwind-tables \
71 -g \
72 -fstack-protector \
73 -fno-short-enums \
74 -finline-limit=64 \
75 -Wa,--noexecstack \
76 -U_FORTIFY_SOURCE \
77 -Wno-extra \
78 -Wno-ignored-qualifiers \
79 -Wno-type-limits \
80 -Os \
81 -g \
82 -fomit-frame-pointer \
83 -fdata-sections \
84 -ffunction-sections
85
86MY_CFLAGS_C :=
87
88MY_DEFS := \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010089 '-DANGLE_DX11' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010090 '-D_FILE_OFFSET_BITS=64' \
91 '-DNO_TCMALLOC' \
92 '-DDISABLE_NACL' \
93 '-DCHROMIUM_BUILD' \
94 '-DUSE_LIBJPEG_TURBO=1' \
95 '-DUSE_PROPRIETARY_CODECS' \
96 '-DENABLE_GPU=1' \
97 '-DUSE_OPENSSL=1' \
98 '-DENABLE_EGLIMAGE=1' \
99 '-DENABLE_LANGUAGE_DETECTION=1' \
100 '-DCRYPTO_IMPLEMENTATION' \
101 '-D__STDC_CONSTANT_MACROS' \
102 '-D__STDC_FORMAT_MACROS' \
103 '-DANDROID' \
104 '-D__GNU_SOURCE=1' \
105 '-DUSE_STLPORT=1' \
106 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
107 '-DCHROME_BUILD_ID=""' \
108 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
109 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
110 '-D_DEBUG'
111
112LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
113
114# Include paths placed before CFLAGS/CPPFLAGS
115LOCAL_C_INCLUDES := \
116 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
117 $(LOCAL_PATH) \
118 $(LOCAL_PATH)/third_party/openssl/openssl/include \
119 $(PWD)/frameworks/wilhelm/include \
120 $(PWD)/bionic \
121 $(PWD)/external/stlport/stlport
122
123LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
124
125# Flags passed to only C++ (and not C) files.
126LOCAL_CPPFLAGS := \
127 -fno-rtti \
128 -fno-threadsafe-statics \
129 -fvisibility-inlines-hidden \
130 -Wsign-compare \
131 -Wno-uninitialized \
132 -Wno-error=c++0x-compat \
133 -Wno-non-virtual-dtor \
134 -Wno-sign-promo
135
136### Rules for final target.
137
138LOCAL_LDFLAGS := \
139 -Wl,-z,now \
140 -Wl,-z,relro \
141 -Wl,-z,noexecstack \
142 -fPIC \
143 -EL \
144 -Wl,--no-keep-memory \
145 --sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
146 \
147 -nostdlib \
148 -Wl,--no-undefined \
149 -Wl,--exclude-libs=ALL \
150 -Wl,--gc-sections \
151 -Wl,-O1 \
152 -Wl,--as-needed
153
154
155LOCAL_STATIC_LIBRARIES :=
156
157# Enable grouping to fix circular references
158LOCAL_GROUP_STATIC_LIBRARIES := true
159
160LOCAL_SHARED_LIBRARIES := \
161 libstlport \
162 libdl
163
164# Add target alias to "gyp_all_modules" target.
165.PHONY: gyp_all_modules
166gyp_all_modules: crypto_crypto_gyp
167
168# Alias gyp target name.
169.PHONY: crypto
170crypto: crypto_crypto_gyp
171
172include $(BUILD_STATIC_LIBRARY)