1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_ashmem_ashmem_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 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_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_SRC_FILES := \ 25 third_party/ashmem/ashmem-dev.c 26 27 28# Flags passed to both C and C++ files. 29MY_CFLAGS_Debug := \ 30 -fstack-protector \ 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 -fno-tree-sra \ 41 -fno-caller-saves \ 42 -Wno-psabi \ 43 -fno-partial-inlining \ 44 -fno-early-inlining \ 45 -fno-tree-copy-prop \ 46 -fno-tree-loop-optimize \ 47 -fno-move-loop-invariants \ 48 -ffunction-sections \ 49 -funwind-tables \ 50 -g \ 51 -fstack-protector \ 52 -fno-short-enums \ 53 -finline-limit=64 \ 54 -Wa,--noexecstack \ 55 -U_FORTIFY_SOURCE \ 56 -Wno-extra \ 57 -Wno-ignored-qualifiers \ 58 -Wno-type-limits \ 59 -Wno-unused-but-set-variable \ 60 -Wno-address \ 61 -Wno-format-security \ 62 -Wno-return-type \ 63 -Wno-sequence-point \ 64 -Os \ 65 -g \ 66 -gdwarf-4 \ 67 -fdata-sections \ 68 -ffunction-sections \ 69 -fomit-frame-pointer \ 70 -funwind-tables 71 72MY_DEFS_Debug := \ 73 '-DV8_DEPRECATION_WARNINGS' \ 74 '-D_FILE_OFFSET_BITS=64' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISABLE_NACL' \ 77 '-DCHROMIUM_BUILD' \ 78 '-DUSE_LIBJPEG_TURBO=1' \ 79 '-DENABLE_WEBRTC=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_BROWSER_CDMS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DENABLE_EGLIMAGE=1' \ 86 '-DCLD_VERSION=1' \ 87 '-DENABLE_PRINTING=1' \ 88 '-DENABLE_MANAGED_USERS=1' \ 89 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 90 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 91 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 97 '-DUSE_OPENSSL=1' \ 98 '-DUSE_OPENSSL_CERTS=1' \ 99 '-DANDROID' \ 100 '-D__GNU_SOURCE=1' \ 101 '-DUSE_STLPORT=1' \ 102 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 103 '-DCHROME_BUILD_ID=""' \ 104 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 105 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 106 '-D_DEBUG' 107 108 109# Include paths placed before CFLAGS/CPPFLAGS 110LOCAL_C_INCLUDES_Debug := \ 111 $(gyp_shared_intermediate_dir) \ 112 $(PWD)/frameworks/wilhelm/include \ 113 $(PWD)/bionic \ 114 $(PWD)/external/stlport/stlport 115 116 117# Flags passed to only C++ (and not C) files. 118LOCAL_CPPFLAGS_Debug := \ 119 -fno-exceptions \ 120 -fno-rtti \ 121 -fno-threadsafe-statics \ 122 -fvisibility-inlines-hidden \ 123 -Wno-deprecated \ 124 -Wno-abi \ 125 -std=gnu++11 \ 126 -Wno-narrowing \ 127 -Wno-literal-suffix \ 128 -Wno-non-virtual-dtor \ 129 -Wno-sign-promo \ 130 -Wno-non-virtual-dtor 131 132 133# Flags passed to both C and C++ files. 134MY_CFLAGS_Release := \ 135 -fstack-protector \ 136 --param=ssp-buffer-size=4 \ 137 -fno-strict-aliasing \ 138 -Wno-unused-parameter \ 139 -Wno-missing-field-initializers \ 140 -fvisibility=hidden \ 141 -pipe \ 142 -fPIC \ 143 -Wno-unused-local-typedefs \ 144 -Wno-format \ 145 -fno-tree-sra \ 146 -fno-caller-saves \ 147 -Wno-psabi \ 148 -fno-partial-inlining \ 149 -fno-early-inlining \ 150 -fno-tree-copy-prop \ 151 -fno-tree-loop-optimize \ 152 -fno-move-loop-invariants \ 153 -ffunction-sections \ 154 -funwind-tables \ 155 -g \ 156 -fstack-protector \ 157 -fno-short-enums \ 158 -finline-limit=64 \ 159 -Wa,--noexecstack \ 160 -U_FORTIFY_SOURCE \ 161 -Wno-extra \ 162 -Wno-ignored-qualifiers \ 163 -Wno-type-limits \ 164 -Wno-unused-but-set-variable \ 165 -Wno-address \ 166 -Wno-format-security \ 167 -Wno-return-type \ 168 -Wno-sequence-point \ 169 -Os \ 170 -fno-ident \ 171 -fdata-sections \ 172 -ffunction-sections \ 173 -fomit-frame-pointer \ 174 -funwind-tables 175 176MY_DEFS_Release := \ 177 '-DV8_DEPRECATION_WARNINGS' \ 178 '-D_FILE_OFFSET_BITS=64' \ 179 '-DNO_TCMALLOC' \ 180 '-DDISABLE_NACL' \ 181 '-DCHROMIUM_BUILD' \ 182 '-DUSE_LIBJPEG_TURBO=1' \ 183 '-DENABLE_WEBRTC=1' \ 184 '-DUSE_PROPRIETARY_CODECS' \ 185 '-DENABLE_BROWSER_CDMS' \ 186 '-DENABLE_CONFIGURATION_POLICY' \ 187 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 188 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 189 '-DENABLE_EGLIMAGE=1' \ 190 '-DCLD_VERSION=1' \ 191 '-DENABLE_PRINTING=1' \ 192 '-DENABLE_MANAGED_USERS=1' \ 193 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 194 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 195 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 196 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 197 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 198 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 199 '-DVIDEO_HOLE=1' \ 200 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 201 '-DUSE_OPENSSL=1' \ 202 '-DUSE_OPENSSL_CERTS=1' \ 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 212 213# Include paths placed before CFLAGS/CPPFLAGS 214LOCAL_C_INCLUDES_Release := \ 215 $(gyp_shared_intermediate_dir) \ 216 $(PWD)/frameworks/wilhelm/include \ 217 $(PWD)/bionic \ 218 $(PWD)/external/stlport/stlport 219 220 221# Flags passed to only C++ (and not C) files. 222LOCAL_CPPFLAGS_Release := \ 223 -fno-exceptions \ 224 -fno-rtti \ 225 -fno-threadsafe-statics \ 226 -fvisibility-inlines-hidden \ 227 -Wno-deprecated \ 228 -Wno-abi \ 229 -std=gnu++11 \ 230 -Wno-narrowing \ 231 -Wno-literal-suffix \ 232 -Wno-non-virtual-dtor \ 233 -Wno-sign-promo \ 234 -Wno-non-virtual-dtor 235 236 237LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(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_SHARED_LIBRARIES := \ 244 libstlport \ 245 libdl 246 247# Add target alias to "gyp_all_modules" target. 248.PHONY: gyp_all_modules 249gyp_all_modules: third_party_ashmem_ashmem_gyp 250 251# Alias gyp target name. 252.PHONY: ashmem 253ashmem: third_party_ashmem_ashmem_gyp 254 255include $(BUILD_STATIC_LIBRARY) 256