Home | History | Annotate | Download | only in crypto
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := crypto_crypto_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_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.
     52 MY_CFLAGS_Debug := \
     53 	-fstack-protector \
     54 	--param=ssp-buffer-size=4 \
     55 	-Werror \
     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 	-fno-tree-sra \
     65 	-fuse-ld=gold \
     66 	-Wno-psabi \
     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 	-Os \
     79 	-g \
     80 	-fomit-frame-pointer \
     81 	-fdata-sections \
     82 	-ffunction-sections
     83 
     84 MY_DEFS_Debug := \
     85 	'-DV8_DEPRECATION_WARNINGS' \
     86 	'-D_FILE_OFFSET_BITS=64' \
     87 	'-DNO_TCMALLOC' \
     88 	'-DDISABLE_NACL' \
     89 	'-DCHROMIUM_BUILD' \
     90 	'-DUSE_LIBJPEG_TURBO=1' \
     91 	'-DUSE_PROPRIETARY_CODECS' \
     92 	'-DENABLE_CONFIGURATION_POLICY' \
     93 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     94 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     95 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     96 	'-DUSE_OPENSSL=1' \
     97 	'-DENABLE_EGLIMAGE=1' \
     98 	'-DCLD_VERSION=1' \
     99 	'-DENABLE_PRINTING=1' \
    100 	'-DENABLE_MANAGED_USERS=1' \
    101 	'-DCRYPTO_IMPLEMENTATION' \
    102 	'-D__STDC_CONSTANT_MACROS' \
    103 	'-D__STDC_FORMAT_MACROS' \
    104 	'-DANDROID' \
    105 	'-D__GNU_SOURCE=1' \
    106 	'-DUSE_STLPORT=1' \
    107 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    108 	'-DCHROME_BUILD_ID=""' \
    109 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    110 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    111 	'-D_DEBUG'
    112 
    113 
    114 # Include paths placed before CFLAGS/CPPFLAGS
    115 LOCAL_C_INCLUDES_Debug := \
    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 
    123 
    124 # Flags passed to only C++ (and not C) files.
    125 LOCAL_CPPFLAGS_Debug := \
    126 	-fno-rtti \
    127 	-fno-threadsafe-statics \
    128 	-fvisibility-inlines-hidden \
    129 	-Wsign-compare \
    130 	-Wno-abi \
    131 	-Wno-error=c++0x-compat \
    132 	-Wno-non-virtual-dtor \
    133 	-Wno-sign-promo
    134 
    135 
    136 # Flags passed to both C and C++ files.
    137 MY_CFLAGS_Release := \
    138 	-fstack-protector \
    139 	--param=ssp-buffer-size=4 \
    140 	-Werror \
    141 	-fno-exceptions \
    142 	-fno-strict-aliasing \
    143 	-Wall \
    144 	-Wno-unused-parameter \
    145 	-Wno-missing-field-initializers \
    146 	-fvisibility=hidden \
    147 	-pipe \
    148 	-fPIC \
    149 	-fno-tree-sra \
    150 	-fuse-ld=gold \
    151 	-Wno-psabi \
    152 	-ffunction-sections \
    153 	-funwind-tables \
    154 	-g \
    155 	-fstack-protector \
    156 	-fno-short-enums \
    157 	-finline-limit=64 \
    158 	-Wa,--noexecstack \
    159 	-U_FORTIFY_SOURCE \
    160 	-Wno-extra \
    161 	-Wno-ignored-qualifiers \
    162 	-Wno-type-limits \
    163 	-Os \
    164 	-fno-ident \
    165 	-fdata-sections \
    166 	-ffunction-sections \
    167 	-fomit-frame-pointer
    168 
    169 MY_DEFS_Release := \
    170 	'-DV8_DEPRECATION_WARNINGS' \
    171 	'-D_FILE_OFFSET_BITS=64' \
    172 	'-DNO_TCMALLOC' \
    173 	'-DDISABLE_NACL' \
    174 	'-DCHROMIUM_BUILD' \
    175 	'-DUSE_LIBJPEG_TURBO=1' \
    176 	'-DUSE_PROPRIETARY_CODECS' \
    177 	'-DENABLE_CONFIGURATION_POLICY' \
    178 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    179 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    180 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    181 	'-DUSE_OPENSSL=1' \
    182 	'-DENABLE_EGLIMAGE=1' \
    183 	'-DCLD_VERSION=1' \
    184 	'-DENABLE_PRINTING=1' \
    185 	'-DENABLE_MANAGED_USERS=1' \
    186 	'-DCRYPTO_IMPLEMENTATION' \
    187 	'-D__STDC_CONSTANT_MACROS' \
    188 	'-D__STDC_FORMAT_MACROS' \
    189 	'-DANDROID' \
    190 	'-D__GNU_SOURCE=1' \
    191 	'-DUSE_STLPORT=1' \
    192 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    193 	'-DCHROME_BUILD_ID=""' \
    194 	'-DNDEBUG' \
    195 	'-DNVALGRIND' \
    196 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    197 	'-D_FORTIFY_SOURCE=2'
    198 
    199 
    200 # Include paths placed before CFLAGS/CPPFLAGS
    201 LOCAL_C_INCLUDES_Release := \
    202 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    203 	$(LOCAL_PATH) \
    204 	$(LOCAL_PATH)/third_party/openssl/openssl/include \
    205 	$(PWD)/frameworks/wilhelm/include \
    206 	$(PWD)/bionic \
    207 	$(PWD)/external/stlport/stlport
    208 
    209 
    210 # Flags passed to only C++ (and not C) files.
    211 LOCAL_CPPFLAGS_Release := \
    212 	-fno-rtti \
    213 	-fno-threadsafe-statics \
    214 	-fvisibility-inlines-hidden \
    215 	-Wsign-compare \
    216 	-Wno-abi \
    217 	-Wno-error=c++0x-compat \
    218 	-Wno-non-virtual-dtor \
    219 	-Wno-sign-promo
    220 
    221 
    222 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    223 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    224 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    225 ### Rules for final target.
    226 
    227 LOCAL_LDFLAGS_Debug := \
    228 	-Wl,-z,now \
    229 	-Wl,-z,relro \
    230 	-Wl,-z,noexecstack \
    231 	-fPIC \
    232 	-Wl,-z,relro \
    233 	-Wl,-z,now \
    234 	-fuse-ld=gold \
    235 	-nostdlib \
    236 	-Wl,--no-undefined \
    237 	-Wl,--exclude-libs=ALL \
    238 	-Wl,--icf=safe \
    239 	-Wl,--fatal-warnings \
    240 	-Wl,--gc-sections \
    241 	-Wl,--warn-shared-textrel \
    242 	-Wl,-O1 \
    243 	-Wl,--as-needed
    244 
    245 
    246 LOCAL_LDFLAGS_Release := \
    247 	-Wl,-z,now \
    248 	-Wl,-z,relro \
    249 	-Wl,-z,noexecstack \
    250 	-fPIC \
    251 	-Wl,-z,relro \
    252 	-Wl,-z,now \
    253 	-fuse-ld=gold \
    254 	-nostdlib \
    255 	-Wl,--no-undefined \
    256 	-Wl,--exclude-libs=ALL \
    257 	-Wl,--icf=safe \
    258 	-Wl,-O1 \
    259 	-Wl,--as-needed \
    260 	-Wl,--gc-sections \
    261 	-Wl,--fatal-warnings \
    262 	-Wl,--warn-shared-textrel
    263 
    264 
    265 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    266 
    267 LOCAL_STATIC_LIBRARIES := \
    268 	cpufeatures
    269 
    270 # Enable grouping to fix circular references
    271 LOCAL_GROUP_STATIC_LIBRARIES := true
    272 
    273 LOCAL_SHARED_LIBRARIES := \
    274 	libstlport \
    275 	libdl
    276 
    277 # Add target alias to "gyp_all_modules" target.
    278 .PHONY: gyp_all_modules
    279 gyp_all_modules: crypto_crypto_gyp
    280 
    281 # Alias gyp target name.
    282 .PHONY: crypto
    283 crypto: crypto_crypto_gyp
    284 
    285 include $(BUILD_STATIC_LIBRARY)
    286