zlib.target.darwin-mips.mk revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_zlib_zlib_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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/zlib/adler32.c \ 26 third_party/zlib/compress.c \ 27 third_party/zlib/crc32.c \ 28 third_party/zlib/deflate.c \ 29 third_party/zlib/gzclose.c \ 30 third_party/zlib/gzlib.c \ 31 third_party/zlib/gzread.c \ 32 third_party/zlib/gzwrite.c \ 33 third_party/zlib/infback.c \ 34 third_party/zlib/inffast.c \ 35 third_party/zlib/inflate.c \ 36 third_party/zlib/inftrees.c \ 37 third_party/zlib/trees.c \ 38 third_party/zlib/uncompr.c \ 39 third_party/zlib/zutil.c 40 41 42# Flags passed to both C and C++ files. 43MY_CFLAGS_Debug := \ 44 -fstack-protector \ 45 --param=ssp-buffer-size=4 \ 46 \ 47 -fno-exceptions \ 48 -fno-strict-aliasing \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-format \ 55 -EL \ 56 -mhard-float \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fstack-protector \ 61 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -Wno-address \ 69 -Wno-format-security \ 70 -Wno-return-type \ 71 -Wno-sequence-point \ 72 -Os \ 73 -g \ 74 -fomit-frame-pointer \ 75 -fdata-sections \ 76 -ffunction-sections 77 78MY_DEFS_Debug := \ 79 '-DANGLE_DX11' \ 80 '-D_FILE_OFFSET_BITS=64' \ 81 '-DNO_TCMALLOC' \ 82 '-DDISABLE_NACL' \ 83 '-DCHROMIUM_BUILD' \ 84 '-DUSE_LIBJPEG_TURBO=1' \ 85 '-DUSE_PROPRIETARY_CODECS' \ 86 '-DENABLE_GPU=1' \ 87 '-DUSE_OPENSSL=1' \ 88 '-DENABLE_EGLIMAGE=1' \ 89 '-DENABLE_LANGUAGE_DETECTION=1' \ 90 '-DANDROID' \ 91 '-D__GNU_SOURCE=1' \ 92 '-DUSE_STLPORT=1' \ 93 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 94 '-DCHROME_BUILD_ID=""' \ 95 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 96 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 97 '-D_DEBUG' 98 99 100# Include paths placed before CFLAGS/CPPFLAGS 101LOCAL_C_INCLUDES_Debug := \ 102 $(LOCAL_PATH)/third_party/zlib \ 103 $(PWD)/frameworks/wilhelm/include \ 104 $(PWD)/bionic \ 105 $(PWD)/external/stlport/stlport 106 107 108# Flags passed to only C++ (and not C) files. 109LOCAL_CPPFLAGS_Debug := \ 110 -fno-rtti \ 111 -fno-threadsafe-statics \ 112 -fvisibility-inlines-hidden \ 113 -Wno-deprecated \ 114 -Wno-uninitialized \ 115 -Wno-error=c++0x-compat \ 116 -Wno-non-virtual-dtor \ 117 -Wno-sign-promo \ 118 -Wno-non-virtual-dtor 119 120 121# Flags passed to both C and C++ files. 122MY_CFLAGS_Release := \ 123 -fstack-protector \ 124 --param=ssp-buffer-size=4 \ 125 \ 126 -fno-exceptions \ 127 -fno-strict-aliasing \ 128 -Wno-unused-parameter \ 129 -Wno-missing-field-initializers \ 130 -fvisibility=hidden \ 131 -pipe \ 132 -fPIC \ 133 -Wno-format \ 134 -EL \ 135 -mhard-float \ 136 -ffunction-sections \ 137 -funwind-tables \ 138 -g \ 139 -fstack-protector \ 140 -fno-short-enums \ 141 -finline-limit=64 \ 142 -Wa,--noexecstack \ 143 -U_FORTIFY_SOURCE \ 144 -Wno-extra \ 145 -Wno-ignored-qualifiers \ 146 -Wno-type-limits \ 147 -Wno-address \ 148 -Wno-format-security \ 149 -Wno-return-type \ 150 -Wno-sequence-point \ 151 -Os \ 152 -fno-ident \ 153 -fdata-sections \ 154 -ffunction-sections \ 155 -fomit-frame-pointer 156 157MY_DEFS_Release := \ 158 '-DANGLE_DX11' \ 159 '-D_FILE_OFFSET_BITS=64' \ 160 '-DNO_TCMALLOC' \ 161 '-DDISABLE_NACL' \ 162 '-DCHROMIUM_BUILD' \ 163 '-DUSE_LIBJPEG_TURBO=1' \ 164 '-DUSE_PROPRIETARY_CODECS' \ 165 '-DENABLE_GPU=1' \ 166 '-DUSE_OPENSSL=1' \ 167 '-DENABLE_EGLIMAGE=1' \ 168 '-DENABLE_LANGUAGE_DETECTION=1' \ 169 '-DANDROID' \ 170 '-D__GNU_SOURCE=1' \ 171 '-DUSE_STLPORT=1' \ 172 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 173 '-DCHROME_BUILD_ID=""' \ 174 '-DNDEBUG' \ 175 '-DNVALGRIND' \ 176 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 177 178 179# Include paths placed before CFLAGS/CPPFLAGS 180LOCAL_C_INCLUDES_Release := \ 181 $(LOCAL_PATH)/third_party/zlib \ 182 $(PWD)/frameworks/wilhelm/include \ 183 $(PWD)/bionic \ 184 $(PWD)/external/stlport/stlport 185 186 187# Flags passed to only C++ (and not C) files. 188LOCAL_CPPFLAGS_Release := \ 189 -fno-rtti \ 190 -fno-threadsafe-statics \ 191 -fvisibility-inlines-hidden \ 192 -Wno-deprecated \ 193 -Wno-uninitialized \ 194 -Wno-error=c++0x-compat \ 195 -Wno-non-virtual-dtor \ 196 -Wno-sign-promo \ 197 -Wno-non-virtual-dtor 198 199 200LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 201LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 202LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 203### Rules for final target. 204 205LOCAL_LDFLAGS_Debug := \ 206 -Wl,-z,now \ 207 -Wl,-z,relro \ 208 -Wl,-z,noexecstack \ 209 -fPIC \ 210 -EL \ 211 -Wl,--no-keep-memory \ 212 -nostdlib \ 213 -Wl,--no-undefined \ 214 -Wl,--exclude-libs=ALL \ 215 -Wl,--gc-sections \ 216 -Wl,-O1 \ 217 -Wl,--as-needed 218 219 220LOCAL_LDFLAGS_Release := \ 221 -Wl,-z,now \ 222 -Wl,-z,relro \ 223 -Wl,-z,noexecstack \ 224 -fPIC \ 225 -EL \ 226 -Wl,--no-keep-memory \ 227 -nostdlib \ 228 -Wl,--no-undefined \ 229 -Wl,--exclude-libs=ALL \ 230 -Wl,-O1 \ 231 -Wl,--as-needed \ 232 -Wl,--gc-sections 233 234 235LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 236 237LOCAL_STATIC_LIBRARIES := 238 239# Enable grouping to fix circular references 240LOCAL_GROUP_STATIC_LIBRARIES := true 241 242LOCAL_SHARED_LIBRARIES := \ 243 libstlport \ 244 libdl 245 246# Add target alias to "gyp_all_modules" target. 247.PHONY: gyp_all_modules 248gyp_all_modules: third_party_zlib_zlib_gyp 249 250# Alias gyp target name. 251.PHONY: zlib 252zlib: third_party_zlib_zlib_gyp 253 254include $(BUILD_STATIC_LIBRARY) 255