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_libwebp_libwebp_enc_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/libwebp/enc/alpha.c \ 26 third_party/libwebp/enc/analysis.c \ 27 third_party/libwebp/enc/backward_references.c \ 28 third_party/libwebp/enc/config.c \ 29 third_party/libwebp/enc/cost.c \ 30 third_party/libwebp/enc/filter.c \ 31 third_party/libwebp/enc/frame.c \ 32 third_party/libwebp/enc/histogram.c \ 33 third_party/libwebp/enc/iterator.c \ 34 third_party/libwebp/enc/layer.c \ 35 third_party/libwebp/enc/picture.c \ 36 third_party/libwebp/enc/quant.c \ 37 third_party/libwebp/enc/syntax.c \ 38 third_party/libwebp/enc/token.c \ 39 third_party/libwebp/enc/tree.c \ 40 third_party/libwebp/enc/vp8l.c \ 41 third_party/libwebp/enc/webpenc.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 '-DANDROID' \ 98 '-D__GNU_SOURCE=1' \ 99 '-DUSE_STLPORT=1' \ 100 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 101 '-DCHROME_BUILD_ID=""' \ 102 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 103 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 104 '-D_DEBUG' 105 106 107 # Include paths placed before CFLAGS/CPPFLAGS 108 LOCAL_C_INCLUDES_Debug := \ 109 $(LOCAL_PATH)/third_party/libwebp \ 110 $(PWD)/frameworks/wilhelm/include \ 111 $(PWD)/bionic \ 112 $(PWD)/external/stlport/stlport 113 114 115 # Flags passed to only C++ (and not C) files. 116 LOCAL_CPPFLAGS_Debug := \ 117 -fno-rtti \ 118 -fno-threadsafe-statics \ 119 -fvisibility-inlines-hidden \ 120 -Wno-deprecated \ 121 -Wno-abi \ 122 -Wno-error=c++0x-compat \ 123 -Wno-non-virtual-dtor \ 124 -Wno-sign-promo \ 125 -Wno-non-virtual-dtor 126 127 128 # Flags passed to both C and C++ files. 129 MY_CFLAGS_Release := \ 130 -fstack-protector \ 131 --param=ssp-buffer-size=4 \ 132 -fno-exceptions \ 133 -fno-strict-aliasing \ 134 -Wno-unused-parameter \ 135 -Wno-missing-field-initializers \ 136 -fvisibility=hidden \ 137 -pipe \ 138 -fPIC \ 139 -Wno-format \ 140 -fno-tree-sra \ 141 -fuse-ld=gold \ 142 -Wno-psabi \ 143 -ffunction-sections \ 144 -funwind-tables \ 145 -g \ 146 -fstack-protector \ 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-address \ 155 -Wno-format-security \ 156 -Wno-return-type \ 157 -Wno-sequence-point \ 158 -Os \ 159 -fno-ident \ 160 -fdata-sections \ 161 -ffunction-sections \ 162 -fomit-frame-pointer 163 164 MY_DEFS_Release := \ 165 '-DV8_DEPRECATION_WARNINGS' \ 166 '-D_FILE_OFFSET_BITS=64' \ 167 '-DNO_TCMALLOC' \ 168 '-DDISABLE_NACL' \ 169 '-DCHROMIUM_BUILD' \ 170 '-DUSE_LIBJPEG_TURBO=1' \ 171 '-DUSE_PROPRIETARY_CODECS' \ 172 '-DENABLE_CONFIGURATION_POLICY' \ 173 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 174 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 175 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 176 '-DUSE_OPENSSL=1' \ 177 '-DENABLE_EGLIMAGE=1' \ 178 '-DCLD_VERSION=1' \ 179 '-DENABLE_PRINTING=1' \ 180 '-DENABLE_MANAGED_USERS=1' \ 181 '-DANDROID' \ 182 '-D__GNU_SOURCE=1' \ 183 '-DUSE_STLPORT=1' \ 184 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 185 '-DCHROME_BUILD_ID=""' \ 186 '-DNDEBUG' \ 187 '-DNVALGRIND' \ 188 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 189 190 191 # Include paths placed before CFLAGS/CPPFLAGS 192 LOCAL_C_INCLUDES_Release := \ 193 $(LOCAL_PATH)/third_party/libwebp \ 194 $(PWD)/frameworks/wilhelm/include \ 195 $(PWD)/bionic \ 196 $(PWD)/external/stlport/stlport 197 198 199 # Flags passed to only C++ (and not C) files. 200 LOCAL_CPPFLAGS_Release := \ 201 -fno-rtti \ 202 -fno-threadsafe-statics \ 203 -fvisibility-inlines-hidden \ 204 -Wno-deprecated \ 205 -Wno-abi \ 206 -Wno-error=c++0x-compat \ 207 -Wno-non-virtual-dtor \ 208 -Wno-sign-promo \ 209 -Wno-non-virtual-dtor 210 211 212 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 213 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 214 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 215 ### Rules for final target. 216 217 LOCAL_LDFLAGS_Debug := \ 218 -Wl,-z,now \ 219 -Wl,-z,relro \ 220 -Wl,-z,noexecstack \ 221 -fPIC \ 222 -Wl,-z,relro \ 223 -Wl,-z,now \ 224 -fuse-ld=gold \ 225 -nostdlib \ 226 -Wl,--no-undefined \ 227 -Wl,--exclude-libs=ALL \ 228 -Wl,--icf=safe \ 229 -Wl,--fatal-warnings \ 230 -Wl,--gc-sections \ 231 -Wl,--warn-shared-textrel \ 232 -Wl,-O1 \ 233 -Wl,--as-needed 234 235 236 LOCAL_LDFLAGS_Release := \ 237 -Wl,-z,now \ 238 -Wl,-z,relro \ 239 -Wl,-z,noexecstack \ 240 -fPIC \ 241 -Wl,-z,relro \ 242 -Wl,-z,now \ 243 -fuse-ld=gold \ 244 -nostdlib \ 245 -Wl,--no-undefined \ 246 -Wl,--exclude-libs=ALL \ 247 -Wl,--icf=safe \ 248 -Wl,-O1 \ 249 -Wl,--as-needed \ 250 -Wl,--gc-sections \ 251 -Wl,--fatal-warnings \ 252 -Wl,--warn-shared-textrel 253 254 255 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 256 257 LOCAL_STATIC_LIBRARIES := 258 259 # Enable grouping to fix circular references 260 LOCAL_GROUP_STATIC_LIBRARIES := true 261 262 LOCAL_SHARED_LIBRARIES := \ 263 libstlport \ 264 libdl 265 266 # Add target alias to "gyp_all_modules" target. 267 .PHONY: gyp_all_modules 268 gyp_all_modules: third_party_libwebp_libwebp_enc_gyp 269 270 # Alias gyp target name. 271 .PHONY: libwebp_enc 272 libwebp_enc: third_party_libwebp_libwebp_enc_gyp 273 274 include $(BUILD_STATIC_LIBRARY) 275