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 := third_party_libpng_libpng_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_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. 45 MY_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 80 MY_DEFS_Debug := \ 81 '-DV8_DEPRECATION_WARNINGS' \ 82 '-D_FILE_OFFSET_BITS=64' \ 83 '-DNO_TCMALLOC' \ 84 '-DDISABLE_NACL' \ 85 '-DCHROMIUM_BUILD' \ 86 '-DUSE_LIBJPEG_TURBO=1' \ 87 '-DUSE_PROPRIETARY_CODECS' \ 88 '-DENABLE_CONFIGURATION_POLICY' \ 89 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 90 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 91 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 92 '-DUSE_OPENSSL=1' \ 93 '-DENABLE_EGLIMAGE=1' \ 94 '-DCLD_VERSION=1' \ 95 '-DENABLE_PRINTING=1' \ 96 '-DENABLE_MANAGED_USERS=1' \ 97 '-DCHROME_PNG_WRITE_SUPPORT' \ 98 '-DPNG_USER_CONFIG' \ 99 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 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 $(LOCAL_PATH)/third_party/zlib \ 113 $(PWD)/frameworks/wilhelm/include \ 114 $(PWD)/bionic \ 115 $(PWD)/external/stlport/stlport 116 117 118 # Flags passed to only C++ (and not C) files. 119 LOCAL_CPPFLAGS_Debug := \ 120 -fno-rtti \ 121 -fno-threadsafe-statics \ 122 -fvisibility-inlines-hidden \ 123 -Wno-deprecated \ 124 -Wno-abi \ 125 -Wno-error=c++0x-compat \ 126 -Wno-non-virtual-dtor \ 127 -Wno-sign-promo \ 128 -Wno-non-virtual-dtor 129 130 131 # Flags passed to both C and C++ files. 132 MY_CFLAGS_Release := \ 133 -fstack-protector \ 134 --param=ssp-buffer-size=4 \ 135 -fno-exceptions \ 136 -fno-strict-aliasing \ 137 -Wno-unused-parameter \ 138 -Wno-missing-field-initializers \ 139 -fvisibility=hidden \ 140 -pipe \ 141 -fPIC \ 142 -Wno-format \ 143 -fno-tree-sra \ 144 -fuse-ld=gold \ 145 -Wno-psabi \ 146 -ffunction-sections \ 147 -funwind-tables \ 148 -g \ 149 -fstack-protector \ 150 -fno-short-enums \ 151 -finline-limit=64 \ 152 -Wa,--noexecstack \ 153 -U_FORTIFY_SOURCE \ 154 -Wno-extra \ 155 -Wno-ignored-qualifiers \ 156 -Wno-type-limits \ 157 -Wno-address \ 158 -Wno-format-security \ 159 -Wno-return-type \ 160 -Wno-sequence-point \ 161 -Os \ 162 -fno-ident \ 163 -fdata-sections \ 164 -ffunction-sections \ 165 -fomit-frame-pointer 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 '-DUSE_PROPRIETARY_CODECS' \ 175 '-DENABLE_CONFIGURATION_POLICY' \ 176 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 177 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 178 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 179 '-DUSE_OPENSSL=1' \ 180 '-DENABLE_EGLIMAGE=1' \ 181 '-DCLD_VERSION=1' \ 182 '-DENABLE_PRINTING=1' \ 183 '-DENABLE_MANAGED_USERS=1' \ 184 '-DCHROME_PNG_WRITE_SUPPORT' \ 185 '-DPNG_USER_CONFIG' \ 186 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 187 '-DANDROID' \ 188 '-D__GNU_SOURCE=1' \ 189 '-DUSE_STLPORT=1' \ 190 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 191 '-DCHROME_BUILD_ID=""' \ 192 '-DNDEBUG' \ 193 '-DNVALGRIND' \ 194 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 195 196 197 # Include paths placed before CFLAGS/CPPFLAGS 198 LOCAL_C_INCLUDES_Release := \ 199 $(LOCAL_PATH)/third_party/zlib \ 200 $(PWD)/frameworks/wilhelm/include \ 201 $(PWD)/bionic \ 202 $(PWD)/external/stlport/stlport 203 204 205 # Flags passed to only C++ (and not C) files. 206 LOCAL_CPPFLAGS_Release := \ 207 -fno-rtti \ 208 -fno-threadsafe-statics \ 209 -fvisibility-inlines-hidden \ 210 -Wno-deprecated \ 211 -Wno-abi \ 212 -Wno-error=c++0x-compat \ 213 -Wno-non-virtual-dtor \ 214 -Wno-sign-promo \ 215 -Wno-non-virtual-dtor 216 217 218 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 219 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 220 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 221 ### Rules for final target. 222 223 LOCAL_LDFLAGS_Debug := \ 224 -Wl,-z,now \ 225 -Wl,-z,relro \ 226 -Wl,-z,noexecstack \ 227 -fPIC \ 228 -Wl,-z,relro \ 229 -Wl,-z,now \ 230 -fuse-ld=gold \ 231 -nostdlib \ 232 -Wl,--no-undefined \ 233 -Wl,--exclude-libs=ALL \ 234 -Wl,--icf=safe \ 235 -Wl,--fatal-warnings \ 236 -Wl,--gc-sections \ 237 -Wl,--warn-shared-textrel \ 238 -Wl,-O1 \ 239 -Wl,--as-needed 240 241 242 LOCAL_LDFLAGS_Release := \ 243 -Wl,-z,now \ 244 -Wl,-z,relro \ 245 -Wl,-z,noexecstack \ 246 -fPIC \ 247 -Wl,-z,relro \ 248 -Wl,-z,now \ 249 -fuse-ld=gold \ 250 -nostdlib \ 251 -Wl,--no-undefined \ 252 -Wl,--exclude-libs=ALL \ 253 -Wl,--icf=safe \ 254 -Wl,-O1 \ 255 -Wl,--as-needed \ 256 -Wl,--gc-sections \ 257 -Wl,--fatal-warnings \ 258 -Wl,--warn-shared-textrel 259 260 261 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 262 263 LOCAL_STATIC_LIBRARIES := 264 265 # Enable grouping to fix circular references 266 LOCAL_GROUP_STATIC_LIBRARIES := true 267 268 LOCAL_SHARED_LIBRARIES := \ 269 libstlport \ 270 libdl 271 272 # Add target alias to "gyp_all_modules" target. 273 .PHONY: gyp_all_modules 274 gyp_all_modules: third_party_libpng_libpng_gyp 275 276 # Alias gyp target name. 277 .PHONY: libpng 278 libpng: third_party_libpng_libpng_gyp 279 280 include $(BUILD_STATIC_LIBRARY) 281