1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := components_os_crypt_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_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)) 12 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_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 components/os_crypt/os_crypt_posix.cc \ 28 components/os_crypt/os_crypt_switches.cc 29 30 31# Flags passed to both C and C++ files. 32MY_CFLAGS_Debug := \ 33 -fstack-protector \ 34 --param=ssp-buffer-size=4 \ 35 -Werror \ 36 -fno-exceptions \ 37 -fno-strict-aliasing \ 38 -Wall \ 39 -Wno-unused-parameter \ 40 -Wno-missing-field-initializers \ 41 -fvisibility=hidden \ 42 -pipe \ 43 -fPIC \ 44 -Wno-unused-local-typedefs \ 45 -fno-tree-sra \ 46 -fno-partial-inlining \ 47 -fno-early-inlining \ 48 -fno-tree-copy-prop \ 49 -fno-tree-loop-optimize \ 50 -fno-move-loop-invariants \ 51 -fno-caller-saves \ 52 -Wno-psabi \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fstack-protector \ 57 -fno-short-enums \ 58 -finline-limit=64 \ 59 -Wa,--noexecstack \ 60 -U_FORTIFY_SOURCE \ 61 -Wno-extra \ 62 -Wno-ignored-qualifiers \ 63 -Wno-type-limits \ 64 -Wno-unused-but-set-variable \ 65 -Os \ 66 -g \ 67 -fdata-sections \ 68 -ffunction-sections \ 69 -fomit-frame-pointer \ 70 -funwind-tables 71 72MY_DEFS_Debug := \ 73 '-DV8_DEPRECATION_WARNINGS' \ 74 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 75 '-D_FILE_OFFSET_BITS=64' \ 76 '-DNO_TCMALLOC' \ 77 '-DDISABLE_NACL' \ 78 '-DCHROMIUM_BUILD' \ 79 '-DUSE_LIBJPEG_TURBO=1' \ 80 '-DENABLE_WEBRTC=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_BROWSER_CDMS' \ 83 '-DENABLE_CONFIGURATION_POLICY' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DENABLE_EGLIMAGE=1' \ 87 '-DCLD_VERSION=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DENABLE_MANAGED_USERS=1' \ 90 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 91 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 92 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 93 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 94 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 95 '-DVIDEO_HOLE=1' \ 96 '-DUSE_OPENSSL=1' \ 97 '-DUSE_OPENSSL_CERTS=1' \ 98 '-D__STDC_CONSTANT_MACROS' \ 99 '-D__STDC_FORMAT_MACROS' \ 100 '-DANDROID' \ 101 '-D__GNU_SOURCE=1' \ 102 '-DUSE_STLPORT=1' \ 103 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 104 '-DCHROME_BUILD_ID=""' \ 105 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 106 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 107 '-D_DEBUG' 108 109 110# Include paths placed before CFLAGS/CPPFLAGS 111LOCAL_C_INCLUDES_Debug := \ 112 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 113 $(gyp_shared_intermediate_dir) \ 114 $(LOCAL_PATH) \ 115 $(PWD)/frameworks/wilhelm/include \ 116 $(PWD)/bionic \ 117 $(PWD)/external/stlport/stlport 118 119 120# Flags passed to only C++ (and not C) files. 121LOCAL_CPPFLAGS_Debug := \ 122 -fno-rtti \ 123 -fno-threadsafe-statics \ 124 -fvisibility-inlines-hidden \ 125 -Wsign-compare \ 126 -Wno-abi \ 127 -Wno-non-virtual-dtor \ 128 -Wno-sign-promo 129 130 131LOCAL_FDO_SUPPORT_Debug := false 132 133# Flags passed to both C and C++ files. 134MY_CFLAGS_Release := \ 135 -fstack-protector \ 136 --param=ssp-buffer-size=4 \ 137 -Werror \ 138 -fno-exceptions \ 139 -fno-strict-aliasing \ 140 -Wall \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -Wno-unused-local-typedefs \ 147 -fno-tree-sra \ 148 -fno-partial-inlining \ 149 -fno-early-inlining \ 150 -fno-tree-copy-prop \ 151 -fno-tree-loop-optimize \ 152 -fno-move-loop-invariants \ 153 -fno-caller-saves \ 154 -Wno-psabi \ 155 -ffunction-sections \ 156 -funwind-tables \ 157 -g \ 158 -fstack-protector \ 159 -fno-short-enums \ 160 -finline-limit=64 \ 161 -Wa,--noexecstack \ 162 -U_FORTIFY_SOURCE \ 163 -Wno-extra \ 164 -Wno-ignored-qualifiers \ 165 -Wno-type-limits \ 166 -Wno-unused-but-set-variable \ 167 -Os \ 168 -fno-ident \ 169 -fdata-sections \ 170 -ffunction-sections \ 171 -fomit-frame-pointer \ 172 -funwind-tables 173 174MY_DEFS_Release := \ 175 '-DV8_DEPRECATION_WARNINGS' \ 176 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 177 '-D_FILE_OFFSET_BITS=64' \ 178 '-DNO_TCMALLOC' \ 179 '-DDISABLE_NACL' \ 180 '-DCHROMIUM_BUILD' \ 181 '-DUSE_LIBJPEG_TURBO=1' \ 182 '-DENABLE_WEBRTC=1' \ 183 '-DUSE_PROPRIETARY_CODECS' \ 184 '-DENABLE_BROWSER_CDMS' \ 185 '-DENABLE_CONFIGURATION_POLICY' \ 186 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 187 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 188 '-DENABLE_EGLIMAGE=1' \ 189 '-DCLD_VERSION=1' \ 190 '-DENABLE_PRINTING=1' \ 191 '-DENABLE_MANAGED_USERS=1' \ 192 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 193 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 194 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 195 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 196 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 197 '-DVIDEO_HOLE=1' \ 198 '-DUSE_OPENSSL=1' \ 199 '-DUSE_OPENSSL_CERTS=1' \ 200 '-D__STDC_CONSTANT_MACROS' \ 201 '-D__STDC_FORMAT_MACROS' \ 202 '-DANDROID' \ 203 '-D__GNU_SOURCE=1' \ 204 '-DUSE_STLPORT=1' \ 205 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 206 '-DCHROME_BUILD_ID=""' \ 207 '-DNDEBUG' \ 208 '-DNVALGRIND' \ 209 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 210 '-D_FORTIFY_SOURCE=2' 211 212 213# Include paths placed before CFLAGS/CPPFLAGS 214LOCAL_C_INCLUDES_Release := \ 215 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 216 $(gyp_shared_intermediate_dir) \ 217 $(LOCAL_PATH) \ 218 $(PWD)/frameworks/wilhelm/include \ 219 $(PWD)/bionic \ 220 $(PWD)/external/stlport/stlport 221 222 223# Flags passed to only C++ (and not C) files. 224LOCAL_CPPFLAGS_Release := \ 225 -fno-rtti \ 226 -fno-threadsafe-statics \ 227 -fvisibility-inlines-hidden \ 228 -Wsign-compare \ 229 -Wno-abi \ 230 -Wno-non-virtual-dtor \ 231 -Wno-sign-promo 232 233 234LOCAL_FDO_SUPPORT_Release := false 235 236LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 237LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 238LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 239LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 240LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 241### Rules for final target. 242 243LOCAL_LDFLAGS_Debug := \ 244 -Wl,-z,now \ 245 -Wl,-z,relro \ 246 -Wl,--fatal-warnings \ 247 -Wl,-z,noexecstack \ 248 -fPIC \ 249 -Wl,-z,relro \ 250 -Wl,-z,now \ 251 -fuse-ld=gold \ 252 -nostdlib \ 253 -Wl,--no-undefined \ 254 -Wl,--exclude-libs=ALL \ 255 -Wl,--icf=safe \ 256 -Wl,--warn-shared-textrel \ 257 -Wl,-O1 \ 258 -Wl,--as-needed 259 260 261LOCAL_LDFLAGS_Release := \ 262 -Wl,-z,now \ 263 -Wl,-z,relro \ 264 -Wl,--fatal-warnings \ 265 -Wl,-z,noexecstack \ 266 -fPIC \ 267 -Wl,-z,relro \ 268 -Wl,-z,now \ 269 -fuse-ld=gold \ 270 -nostdlib \ 271 -Wl,--no-undefined \ 272 -Wl,--exclude-libs=ALL \ 273 -Wl,--icf=safe \ 274 -Wl,-O1 \ 275 -Wl,--as-needed \ 276 -Wl,--gc-sections \ 277 -Wl,--warn-shared-textrel 278 279 280LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 281 282LOCAL_STATIC_LIBRARIES := 283 284# Enable grouping to fix circular references 285LOCAL_GROUP_STATIC_LIBRARIES := true 286 287LOCAL_SHARED_LIBRARIES := \ 288 libstlport \ 289 libdl 290 291# Add target alias to "gyp_all_modules" target. 292.PHONY: gyp_all_modules 293gyp_all_modules: components_os_crypt_gyp 294 295# Alias gyp target name. 296.PHONY: os_crypt 297os_crypt: components_os_crypt_gyp 298 299include $(BUILD_STATIC_LIBRARY) 300