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 := base_allocator_allocator_extension_thunks_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 base/allocator/allocator_extension_thunks.cc 27 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 --param=ssp-buffer-size=4 \ 32 -fno-strict-aliasing \ 33 -Wno-unused-parameter \ 34 -Wno-missing-field-initializers \ 35 -fvisibility=hidden \ 36 -pipe \ 37 -fPIC \ 38 -Wno-unused-local-typedefs \ 39 -Wno-format \ 40 -msse2 \ 41 -mfpmath=sse \ 42 -mmmx \ 43 -m32 \ 44 -ffunction-sections \ 45 -funwind-tables \ 46 -g \ 47 -fno-short-enums \ 48 -finline-limit=64 \ 49 -Wa,--noexecstack \ 50 -U_FORTIFY_SOURCE \ 51 -Wno-extra \ 52 -Wno-ignored-qualifiers \ 53 -Wno-type-limits \ 54 -Wno-unused-but-set-variable \ 55 -fno-stack-protector \ 56 -Wno-address \ 57 -Wno-format-security \ 58 -Wno-return-type \ 59 -Wno-sequence-point \ 60 -O2 \ 61 -g \ 62 -gdwarf-4 \ 63 -fdata-sections \ 64 -ffunction-sections \ 65 -fomit-frame-pointer \ 66 -funwind-tables 67 68 MY_DEFS_Debug := \ 69 '-DV8_DEPRECATION_WARNINGS' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DENABLE_WEBRTC=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_BROWSER_CDMS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DCLD_VERSION=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-DENABLE_MANAGED_USERS=1' \ 85 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 86 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 87 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 88 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 89 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 90 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 91 '-DVIDEO_HOLE=1' \ 92 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 93 '-DUSE_OPENSSL=1' \ 94 '-DUSE_OPENSSL_CERTS=1' \ 95 '-DANDROID' \ 96 '-D__GNU_SOURCE=1' \ 97 '-DUSE_STLPORT=1' \ 98 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 99 '-DCHROME_BUILD_ID=""' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' 103 104 105 # Include paths placed before CFLAGS/CPPFLAGS 106 LOCAL_C_INCLUDES_Debug := \ 107 $(gyp_shared_intermediate_dir) \ 108 $(LOCAL_PATH) \ 109 $(PWD)/frameworks/wilhelm/include \ 110 $(PWD)/bionic \ 111 $(PWD)/external/stlport/stlport 112 113 114 # Flags passed to only C++ (and not C) files. 115 LOCAL_CPPFLAGS_Debug := \ 116 -fno-exceptions \ 117 -fno-rtti \ 118 -fno-threadsafe-statics \ 119 -fvisibility-inlines-hidden \ 120 -Wno-deprecated \ 121 -std=gnu++11 \ 122 -Wno-narrowing \ 123 -Wno-literal-suffix \ 124 -Wno-non-virtual-dtor \ 125 -Wno-sign-promo \ 126 -Wno-non-virtual-dtor 127 128 129 # Flags passed to both C and C++ files. 130 MY_CFLAGS_Release := \ 131 --param=ssp-buffer-size=4 \ 132 -fno-strict-aliasing \ 133 -Wno-unused-parameter \ 134 -Wno-missing-field-initializers \ 135 -fvisibility=hidden \ 136 -pipe \ 137 -fPIC \ 138 -Wno-unused-local-typedefs \ 139 -Wno-format \ 140 -msse2 \ 141 -mfpmath=sse \ 142 -mmmx \ 143 -m32 \ 144 -ffunction-sections \ 145 -funwind-tables \ 146 -g \ 147 -fno-short-enums \ 148 -finline-limit=64 \ 149 -Wa,--noexecstack \ 150 -U_FORTIFY_SOURCE \ 151 -Wno-extra \ 152 -Wno-ignored-qualifiers \ 153 -Wno-type-limits \ 154 -Wno-unused-but-set-variable \ 155 -fno-stack-protector \ 156 -Wno-address \ 157 -Wno-format-security \ 158 -Wno-return-type \ 159 -Wno-sequence-point \ 160 -Os \ 161 -fno-ident \ 162 -fdata-sections \ 163 -ffunction-sections \ 164 -fomit-frame-pointer \ 165 -funwind-tables 166 167 MY_DEFS_Release := \ 168 '-DV8_DEPRECATION_WARNINGS' \ 169 '-D_FILE_OFFSET_BITS=64' \ 170 '-DNO_TCMALLOC' \ 171 '-DDISABLE_NACL' \ 172 '-DCHROMIUM_BUILD' \ 173 '-DUSE_LIBJPEG_TURBO=1' \ 174 '-DENABLE_WEBRTC=1' \ 175 '-DUSE_PROPRIETARY_CODECS' \ 176 '-DENABLE_BROWSER_CDMS' \ 177 '-DENABLE_CONFIGURATION_POLICY' \ 178 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 179 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 180 '-DENABLE_EGLIMAGE=1' \ 181 '-DCLD_VERSION=1' \ 182 '-DENABLE_PRINTING=1' \ 183 '-DENABLE_MANAGED_USERS=1' \ 184 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 185 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 186 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 187 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 188 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 189 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 190 '-DVIDEO_HOLE=1' \ 191 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 192 '-DUSE_OPENSSL=1' \ 193 '-DUSE_OPENSSL_CERTS=1' \ 194 '-DANDROID' \ 195 '-D__GNU_SOURCE=1' \ 196 '-DUSE_STLPORT=1' \ 197 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 198 '-DCHROME_BUILD_ID=""' \ 199 '-DNDEBUG' \ 200 '-DNVALGRIND' \ 201 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 202 203 204 # Include paths placed before CFLAGS/CPPFLAGS 205 LOCAL_C_INCLUDES_Release := \ 206 $(gyp_shared_intermediate_dir) \ 207 $(LOCAL_PATH) \ 208 $(PWD)/frameworks/wilhelm/include \ 209 $(PWD)/bionic \ 210 $(PWD)/external/stlport/stlport 211 212 213 # Flags passed to only C++ (and not C) files. 214 LOCAL_CPPFLAGS_Release := \ 215 -fno-exceptions \ 216 -fno-rtti \ 217 -fno-threadsafe-statics \ 218 -fvisibility-inlines-hidden \ 219 -Wno-deprecated \ 220 -std=gnu++11 \ 221 -Wno-narrowing \ 222 -Wno-literal-suffix \ 223 -Wno-non-virtual-dtor \ 224 -Wno-sign-promo \ 225 -Wno-non-virtual-dtor 226 227 228 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 229 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 230 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 231 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 232 ### Rules for final target. 233 234 LOCAL_SHARED_LIBRARIES := \ 235 libstlport \ 236 libdl 237 238 # Add target alias to "gyp_all_modules" target. 239 .PHONY: gyp_all_modules 240 gyp_all_modules: base_allocator_allocator_extension_thunks_gyp 241 242 # Alias gyp target name. 243 .PHONY: allocator_extension_thunks 244 allocator_extension_thunks: base_allocator_allocator_extension_thunks_gyp 245 246 include $(BUILD_STATIC_LIBRARY) 247