1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_libpng_libpng_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/libpng/png.c \ 26 third_party/libpng/pngerror.c \ 27 third_party/libpng/pnggccrd.c \ 28 third_party/libpng/pngget.c \ 29 third_party/libpng/pngmem.c \ 30 third_party/libpng/pngpread.c \ 31 third_party/libpng/pngread.c \ 32 third_party/libpng/pngrio.c \ 33 third_party/libpng/pngrtran.c \ 34 third_party/libpng/pngrutil.c \ 35 third_party/libpng/pngset.c \ 36 third_party/libpng/pngtrans.c \ 37 third_party/libpng/pngvcrd.c \ 38 third_party/libpng/pngwio.c \ 39 third_party/libpng/pngwrite.c \ 40 third_party/libpng/pngwtran.c \ 41 third_party/libpng/pngwutil.c 42 43 44# Flags passed to both C and C++ files. 45MY_CFLAGS_Debug := \ 46 -fstack-protector \ 47 --param=ssp-buffer-size=4 \ 48 -fno-exceptions \ 49 -fno-strict-aliasing \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -Wno-format \ 56 -fno-tree-sra \ 57 -fuse-ld=gold \ 58 -Wno-psabi \ 59 -ffunction-sections \ 60 -funwind-tables \ 61 -g \ 62 -fstack-protector \ 63 -fno-short-enums \ 64 -finline-limit=64 \ 65 -Wa,--noexecstack \ 66 -U_FORTIFY_SOURCE \ 67 -Wno-extra \ 68 -Wno-ignored-qualifiers \ 69 -Wno-type-limits \ 70 -Wno-address \ 71 -Wno-format-security \ 72 -Wno-return-type \ 73 -Wno-sequence-point \ 74 -Os \ 75 -g \ 76 -fomit-frame-pointer \ 77 -fdata-sections \ 78 -ffunction-sections 79 80MY_DEFS_Debug := \ 81 '-DANGLE_DX11' \ 82 '-D_FILE_OFFSET_BITS=64' \ 83 '-DNO_TCMALLOC' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DDISABLE_NACL' \ 87 '-DCHROMIUM_BUILD' \ 88 '-DUSE_LIBJPEG_TURBO=1' \ 89 '-DUSE_PROPRIETARY_CODECS' \ 90 '-DENABLE_CONFIGURATION_POLICY' \ 91 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 92 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 93 '-DENABLE_GPU=1' \ 94 '-DUSE_OPENSSL=1' \ 95 '-DENABLE_EGLIMAGE=1' \ 96 '-DENABLE_PRINTING=1' \ 97 '-DCHROME_PNG_WRITE_SUPPORT' \ 98 '-DPNG_USER_CONFIG' \ 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 $(LOCAL_PATH)/third_party/zlib \ 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-rtti \ 120 -fno-threadsafe-statics \ 121 -fvisibility-inlines-hidden \ 122 -Wno-deprecated \ 123 -Wno-abi \ 124 -Wno-error=c++0x-compat \ 125 -Wno-non-virtual-dtor \ 126 -Wno-sign-promo \ 127 -Wno-non-virtual-dtor 128 129 130# Flags passed to both C and C++ files. 131MY_CFLAGS_Release := \ 132 -fstack-protector \ 133 --param=ssp-buffer-size=4 \ 134 -fno-exceptions \ 135 -fno-strict-aliasing \ 136 -Wno-unused-parameter \ 137 -Wno-missing-field-initializers \ 138 -fvisibility=hidden \ 139 -pipe \ 140 -fPIC \ 141 -Wno-format \ 142 -fno-tree-sra \ 143 -fuse-ld=gold \ 144 -Wno-psabi \ 145 -ffunction-sections \ 146 -funwind-tables \ 147 -g \ 148 -fstack-protector \ 149 -fno-short-enums \ 150 -finline-limit=64 \ 151 -Wa,--noexecstack \ 152 -U_FORTIFY_SOURCE \ 153 -Wno-extra \ 154 -Wno-ignored-qualifiers \ 155 -Wno-type-limits \ 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 166MY_DEFS_Release := \ 167 '-DANGLE_DX11' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 171 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 172 '-DDISABLE_NACL' \ 173 '-DCHROMIUM_BUILD' \ 174 '-DUSE_LIBJPEG_TURBO=1' \ 175 '-DUSE_PROPRIETARY_CODECS' \ 176 '-DENABLE_CONFIGURATION_POLICY' \ 177 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 178 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 179 '-DENABLE_GPU=1' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DENABLE_EGLIMAGE=1' \ 182 '-DENABLE_PRINTING=1' \ 183 '-DCHROME_PNG_WRITE_SUPPORT' \ 184 '-DPNG_USER_CONFIG' \ 185 '-DANDROID' \ 186 '-D__GNU_SOURCE=1' \ 187 '-DUSE_STLPORT=1' \ 188 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 189 '-DCHROME_BUILD_ID=""' \ 190 '-DNDEBUG' \ 191 '-DNVALGRIND' \ 192 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 193 194 195# Include paths placed before CFLAGS/CPPFLAGS 196LOCAL_C_INCLUDES_Release := \ 197 $(LOCAL_PATH)/third_party/zlib \ 198 $(PWD)/frameworks/wilhelm/include \ 199 $(PWD)/bionic \ 200 $(PWD)/external/stlport/stlport 201 202 203# Flags passed to only C++ (and not C) files. 204LOCAL_CPPFLAGS_Release := \ 205 -fno-rtti \ 206 -fno-threadsafe-statics \ 207 -fvisibility-inlines-hidden \ 208 -Wno-deprecated \ 209 -Wno-abi \ 210 -Wno-error=c++0x-compat \ 211 -Wno-non-virtual-dtor \ 212 -Wno-sign-promo \ 213 -Wno-non-virtual-dtor 214 215 216LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 217LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 218LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 219### Rules for final target. 220 221LOCAL_LDFLAGS_Debug := \ 222 -Wl,-z,now \ 223 -Wl,-z,relro \ 224 -Wl,-z,noexecstack \ 225 -fPIC \ 226 -Wl,-z,relro \ 227 -Wl,-z,now \ 228 -fuse-ld=gold \ 229 -nostdlib \ 230 -Wl,--no-undefined \ 231 -Wl,--exclude-libs=ALL \ 232 -Wl,--icf=safe \ 233 -Wl,--fatal-warnings \ 234 -Wl,--gc-sections \ 235 -Wl,--warn-shared-textrel \ 236 -Wl,-O1 \ 237 -Wl,--as-needed 238 239 240LOCAL_LDFLAGS_Release := \ 241 -Wl,-z,now \ 242 -Wl,-z,relro \ 243 -Wl,-z,noexecstack \ 244 -fPIC \ 245 -Wl,-z,relro \ 246 -Wl,-z,now \ 247 -fuse-ld=gold \ 248 -nostdlib \ 249 -Wl,--no-undefined \ 250 -Wl,--exclude-libs=ALL \ 251 -Wl,--icf=safe \ 252 -Wl,-O1 \ 253 -Wl,--as-needed \ 254 -Wl,--gc-sections \ 255 -Wl,--fatal-warnings \ 256 -Wl,--warn-shared-textrel 257 258 259LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 260 261LOCAL_STATIC_LIBRARIES := 262 263# Enable grouping to fix circular references 264LOCAL_GROUP_STATIC_LIBRARIES := true 265 266LOCAL_SHARED_LIBRARIES := \ 267 libstlport \ 268 libdl 269 270# Add target alias to "gyp_all_modules" target. 271.PHONY: gyp_all_modules 272gyp_all_modules: third_party_libpng_libpng_gyp 273 274# Alias gyp target name. 275.PHONY: libpng 276libpng: third_party_libpng_libpng_gyp 277 278include $(BUILD_STATIC_LIBRARY) 279