1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := sdch_sdch_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_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 sdch/open-vcdiff/src/addrcache.cc \ 27 sdch/open-vcdiff/src/blockhash.cc \ 28 sdch/open-vcdiff/src/codetable.cc \ 29 sdch/open-vcdiff/src/decodetable.cc \ 30 sdch/open-vcdiff/src/encodetable.cc \ 31 sdch/open-vcdiff/src/headerparser.cc \ 32 sdch/open-vcdiff/src/instruction_map.cc \ 33 sdch/open-vcdiff/src/varint_bigendian.cc \ 34 sdch/open-vcdiff/src/vcdecoder.cc \ 35 sdch/open-vcdiff/src/vcdiffengine.cc 36 37 38# Flags passed to both C and C++ files. 39MY_CFLAGS_Debug := \ 40 --param=ssp-buffer-size=4 \ 41 -Werror \ 42 -fno-exceptions \ 43 -fno-strict-aliasing \ 44 -Wall \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -include \ 51 ./sdch/logging_forward.h \ 52 -m32 \ 53 -mmmx \ 54 -march=pentium4 \ 55 -msse2 \ 56 -mfpmath=sse \ 57 -fuse-ld=gold \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 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 -fno-stack-protector \ 69 -Os \ 70 -g \ 71 -fomit-frame-pointer \ 72 -fdata-sections \ 73 -ffunction-sections 74 75MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISABLE_NACL' \ 80 '-DCHROMIUM_BUILD' \ 81 '-DUSE_LIBJPEG_TURBO=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_CONFIGURATION_POLICY' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 87 '-DUSE_OPENSSL=1' \ 88 '-DENABLE_EGLIMAGE=1' \ 89 '-DCLD_VERSION=1' \ 90 '-DENABLE_PRINTING=1' \ 91 '-DENABLE_MANAGED_USERS=1' \ 92 '-D__STDC_CONSTANT_MACROS' \ 93 '-D__STDC_FORMAT_MACROS' \ 94 '-DANDROID' \ 95 '-D__GNU_SOURCE=1' \ 96 '-DUSE_STLPORT=1' \ 97 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 98 '-DCHROME_BUILD_ID=""' \ 99 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 100 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 101 '-D_DEBUG' 102 103 104# Include paths placed before CFLAGS/CPPFLAGS 105LOCAL_C_INCLUDES_Debug := \ 106 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 107 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 108 $(LOCAL_PATH)/sdch/linux \ 109 $(LOCAL_PATH) \ 110 $(LOCAL_PATH)/third_party/zlib \ 111 $(PWD)/frameworks/wilhelm/include \ 112 $(PWD)/bionic \ 113 $(PWD)/external/stlport/stlport 114 115 116# Flags passed to only C++ (and not C) files. 117LOCAL_CPPFLAGS_Debug := \ 118 -fno-rtti \ 119 -fno-threadsafe-statics \ 120 -fvisibility-inlines-hidden \ 121 -Wsign-compare \ 122 -Wno-error=c++0x-compat \ 123 -Wno-non-virtual-dtor \ 124 -Wno-sign-promo 125 126 127# Flags passed to both C and C++ files. 128MY_CFLAGS_Release := \ 129 --param=ssp-buffer-size=4 \ 130 -Werror \ 131 -fno-exceptions \ 132 -fno-strict-aliasing \ 133 -Wall \ 134 -Wno-unused-parameter \ 135 -Wno-missing-field-initializers \ 136 -fvisibility=hidden \ 137 -pipe \ 138 -fPIC \ 139 -include \ 140 ./sdch/logging_forward.h \ 141 -m32 \ 142 -mmmx \ 143 -march=pentium4 \ 144 -msse2 \ 145 -mfpmath=sse \ 146 -fuse-ld=gold \ 147 -ffunction-sections \ 148 -funwind-tables \ 149 -g \ 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 -fno-stack-protector \ 158 -Os \ 159 -fno-ident \ 160 -fdata-sections \ 161 -ffunction-sections \ 162 -fomit-frame-pointer \ 163 -fno-unwind-tables \ 164 -fno-asynchronous-unwind-tables 165 166MY_DEFS_Release := \ 167 '-DV8_DEPRECATION_WARNINGS' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISABLE_NACL' \ 171 '-DCHROMIUM_BUILD' \ 172 '-DUSE_LIBJPEG_TURBO=1' \ 173 '-DUSE_PROPRIETARY_CODECS' \ 174 '-DENABLE_CONFIGURATION_POLICY' \ 175 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 176 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 177 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 178 '-DUSE_OPENSSL=1' \ 179 '-DENABLE_EGLIMAGE=1' \ 180 '-DCLD_VERSION=1' \ 181 '-DENABLE_PRINTING=1' \ 182 '-DENABLE_MANAGED_USERS=1' \ 183 '-D__STDC_CONSTANT_MACROS' \ 184 '-D__STDC_FORMAT_MACROS' \ 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 '-D_FORTIFY_SOURCE=2' 194 195 196# Include paths placed before CFLAGS/CPPFLAGS 197LOCAL_C_INCLUDES_Release := \ 198 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 199 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 200 $(LOCAL_PATH)/sdch/linux \ 201 $(LOCAL_PATH) \ 202 $(LOCAL_PATH)/third_party/zlib \ 203 $(PWD)/frameworks/wilhelm/include \ 204 $(PWD)/bionic \ 205 $(PWD)/external/stlport/stlport 206 207 208# Flags passed to only C++ (and not C) files. 209LOCAL_CPPFLAGS_Release := \ 210 -fno-rtti \ 211 -fno-threadsafe-statics \ 212 -fvisibility-inlines-hidden \ 213 -Wsign-compare \ 214 -Wno-error=c++0x-compat \ 215 -Wno-non-virtual-dtor \ 216 -Wno-sign-promo 217 218 219LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 220LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 221LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 222### Rules for final target. 223 224LOCAL_LDFLAGS_Debug := \ 225 -Wl,-z,now \ 226 -Wl,-z,relro \ 227 -Wl,-z,noexecstack \ 228 -fPIC \ 229 -m32 \ 230 -fuse-ld=gold \ 231 -nostdlib \ 232 -Wl,--no-undefined \ 233 -Wl,--exclude-libs=ALL \ 234 -Wl,--fatal-warnings \ 235 -Wl,--gc-sections \ 236 -Wl,--warn-shared-textrel \ 237 -Wl,-O1 \ 238 -Wl,--as-needed 239 240 241LOCAL_LDFLAGS_Release := \ 242 -Wl,-z,now \ 243 -Wl,-z,relro \ 244 -Wl,-z,noexecstack \ 245 -fPIC \ 246 -m32 \ 247 -fuse-ld=gold \ 248 -nostdlib \ 249 -Wl,--no-undefined \ 250 -Wl,--exclude-libs=ALL \ 251 -Wl,-O1 \ 252 -Wl,--as-needed \ 253 -Wl,--gc-sections \ 254 -Wl,--fatal-warnings \ 255 -Wl,--warn-shared-textrel 256 257 258LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 259 260LOCAL_STATIC_LIBRARIES := 261 262# Enable grouping to fix circular references 263LOCAL_GROUP_STATIC_LIBRARIES := true 264 265LOCAL_SHARED_LIBRARIES := \ 266 libstlport \ 267 libdl 268 269# Add target alias to "gyp_all_modules" target. 270.PHONY: gyp_all_modules 271gyp_all_modules: sdch_sdch_gyp 272 273# Alias gyp target name. 274.PHONY: sdch 275sdch: sdch_sdch_gyp 276 277include $(BUILD_STATIC_LIBRARY) 278