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 := components_os_crypt_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 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 components/os_crypt/os_crypt_posix.cc \ 27 components/os_crypt/os_crypt_switches.cc 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 -fstack-protector \ 33 --param=ssp-buffer-size=4 \ 34 -Werror \ 35 -fno-strict-aliasing \ 36 -Wall \ 37 -Wno-unused-parameter \ 38 -Wno-missing-field-initializers \ 39 -fvisibility=hidden \ 40 -pipe \ 41 -fPIC \ 42 -Wno-unused-local-typedefs \ 43 -fno-tree-sra \ 44 -fno-caller-saves \ 45 -Wno-psabi \ 46 -fno-partial-inlining \ 47 -fno-early-inlining \ 48 -fno-tree-copy-prop \ 49 -fno-tree-loop-optimize \ 50 -fno-move-loop-invariants \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 54 -fstack-protector \ 55 -fno-short-enums \ 56 -finline-limit=64 \ 57 -Wa,--noexecstack \ 58 -U_FORTIFY_SOURCE \ 59 -Wno-extra \ 60 -Wno-ignored-qualifiers \ 61 -Wno-type-limits \ 62 -Wno-unused-but-set-variable \ 63 -Os \ 64 -g \ 65 -gdwarf-4 \ 66 -fdata-sections \ 67 -ffunction-sections \ 68 -fomit-frame-pointer \ 69 -funwind-tables 70 71 MY_DEFS_Debug := \ 72 '-DV8_DEPRECATION_WARNINGS' \ 73 '-D_FILE_OFFSET_BITS=64' \ 74 '-DNO_TCMALLOC' \ 75 '-DDISABLE_NACL' \ 76 '-DCHROMIUM_BUILD' \ 77 '-DUSE_LIBJPEG_TURBO=1' \ 78 '-DENABLE_WEBRTC=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_BROWSER_CDMS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DENABLE_EGLIMAGE=1' \ 85 '-DCLD_VERSION=1' \ 86 '-DENABLE_PRINTING=1' \ 87 '-DENABLE_MANAGED_USERS=1' \ 88 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 89 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 90 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 91 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 92 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 93 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 94 '-DVIDEO_HOLE=1' \ 95 '-DENABLE_LOAD_COMPLETION_HACKS=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 111 LOCAL_C_INCLUDES_Debug := \ 112 $(gyp_shared_intermediate_dir) \ 113 $(LOCAL_PATH) \ 114 $(PWD)/frameworks/wilhelm/include \ 115 $(PWD)/bionic \ 116 $(PWD)/external/stlport/stlport 117 118 119 # Flags passed to only C++ (and not C) files. 120 LOCAL_CPPFLAGS_Debug := \ 121 -fno-exceptions \ 122 -fno-rtti \ 123 -fno-threadsafe-statics \ 124 -fvisibility-inlines-hidden \ 125 -Wsign-compare \ 126 -Wno-abi \ 127 -std=gnu++11 \ 128 -Wno-narrowing \ 129 -Wno-literal-suffix \ 130 -Wno-non-virtual-dtor \ 131 -Wno-sign-promo 132 133 134 # Flags passed to both C and C++ files. 135 MY_CFLAGS_Release := \ 136 -fstack-protector \ 137 --param=ssp-buffer-size=4 \ 138 -Werror \ 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-caller-saves \ 149 -Wno-psabi \ 150 -fno-partial-inlining \ 151 -fno-early-inlining \ 152 -fno-tree-copy-prop \ 153 -fno-tree-loop-optimize \ 154 -fno-move-loop-invariants \ 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 174 MY_DEFS_Release := \ 175 '-DV8_DEPRECATION_WARNINGS' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DENABLE_WEBRTC=1' \ 182 '-DUSE_PROPRIETARY_CODECS' \ 183 '-DENABLE_BROWSER_CDMS' \ 184 '-DENABLE_CONFIGURATION_POLICY' \ 185 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 186 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DCLD_VERSION=1' \ 189 '-DENABLE_PRINTING=1' \ 190 '-DENABLE_MANAGED_USERS=1' \ 191 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 192 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 193 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 199 '-DUSE_OPENSSL=1' \ 200 '-DUSE_OPENSSL_CERTS=1' \ 201 '-D__STDC_CONSTANT_MACROS' \ 202 '-D__STDC_FORMAT_MACROS' \ 203 '-DANDROID' \ 204 '-D__GNU_SOURCE=1' \ 205 '-DUSE_STLPORT=1' \ 206 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 207 '-DCHROME_BUILD_ID=""' \ 208 '-DNDEBUG' \ 209 '-DNVALGRIND' \ 210 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 211 '-D_FORTIFY_SOURCE=2' 212 213 214 # Include paths placed before CFLAGS/CPPFLAGS 215 LOCAL_C_INCLUDES_Release := \ 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. 224 LOCAL_CPPFLAGS_Release := \ 225 -fno-exceptions \ 226 -fno-rtti \ 227 -fno-threadsafe-statics \ 228 -fvisibility-inlines-hidden \ 229 -Wsign-compare \ 230 -Wno-abi \ 231 -std=gnu++11 \ 232 -Wno-narrowing \ 233 -Wno-literal-suffix \ 234 -Wno-non-virtual-dtor \ 235 -Wno-sign-promo 236 237 238 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 239 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 240 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 241 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 242 ### Rules for final target. 243 244 LOCAL_SHARED_LIBRARIES := \ 245 libstlport \ 246 libdl 247 248 # Add target alias to "gyp_all_modules" target. 249 .PHONY: gyp_all_modules 250 gyp_all_modules: components_os_crypt_gyp 251 252 # Alias gyp target name. 253 .PHONY: os_crypt 254 os_crypt: components_os_crypt_gyp 255 256 include $(BUILD_STATIC_LIBRARY) 257