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 := sdch_sdch_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_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_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. 39 MY_CFLAGS_Debug := \ 40 -fstack-protector \ 41 --param=ssp-buffer-size=4 \ 42 -Werror \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wall \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -include \ 52 ./sdch/logging_forward.h \ 53 -fno-tree-sra \ 54 -fuse-ld=gold \ 55 -Wno-psabi \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Os \ 68 -g \ 69 -fomit-frame-pointer \ 70 -fdata-sections \ 71 -ffunction-sections 72 73 MY_DEFS_Debug := \ 74 '-DV8_DEPRECATION_WARNINGS' \ 75 '-D_FILE_OFFSET_BITS=64' \ 76 '-DNO_TCMALLOC' \ 77 '-DDISABLE_NACL' \ 78 '-DCHROMIUM_BUILD' \ 79 '-DUSE_LIBJPEG_TURBO=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 85 '-DUSE_OPENSSL=1' \ 86 '-DENABLE_EGLIMAGE=1' \ 87 '-DCLD_VERSION=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DENABLE_MANAGED_USERS=1' \ 90 '-D__STDC_CONSTANT_MACROS' \ 91 '-D__STDC_FORMAT_MACROS' \ 92 '-DANDROID' \ 93 '-D__GNU_SOURCE=1' \ 94 '-DUSE_STLPORT=1' \ 95 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 96 '-DCHROME_BUILD_ID=""' \ 97 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 98 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 99 '-D_DEBUG' 100 101 102 # Include paths placed before CFLAGS/CPPFLAGS 103 LOCAL_C_INCLUDES_Debug := \ 104 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 105 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 106 $(LOCAL_PATH)/sdch/linux \ 107 $(LOCAL_PATH) \ 108 $(LOCAL_PATH)/third_party/zlib \ 109 $(PWD)/frameworks/wilhelm/include \ 110 $(PWD)/bionic \ 111 $(PWD)/external/stlport/stlport 112 113 114 # Flags passed to only C++ (and not C) files. 115 LOCAL_CPPFLAGS_Debug := \ 116 -fno-rtti \ 117 -fno-threadsafe-statics \ 118 -fvisibility-inlines-hidden \ 119 -Wsign-compare \ 120 -Wno-abi \ 121 -Wno-error=c++0x-compat \ 122 -Wno-non-virtual-dtor \ 123 -Wno-sign-promo 124 125 126 # Flags passed to both C and C++ files. 127 MY_CFLAGS_Release := \ 128 -fstack-protector \ 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 -fno-tree-sra \ 142 -fuse-ld=gold \ 143 -Wno-psabi \ 144 -ffunction-sections \ 145 -funwind-tables \ 146 -g \ 147 -fstack-protector \ 148 -fno-short-enums \ 149 -finline-limit=64 \ 150 -Wa,--noexecstack \ 151 -U_FORTIFY_SOURCE \ 152 -Wno-extra \ 153 -Wno-ignored-qualifiers \ 154 -Wno-type-limits \ 155 -Os \ 156 -fno-ident \ 157 -fdata-sections \ 158 -ffunction-sections \ 159 -fomit-frame-pointer 160 161 MY_DEFS_Release := \ 162 '-DV8_DEPRECATION_WARNINGS' \ 163 '-D_FILE_OFFSET_BITS=64' \ 164 '-DNO_TCMALLOC' \ 165 '-DDISABLE_NACL' \ 166 '-DCHROMIUM_BUILD' \ 167 '-DUSE_LIBJPEG_TURBO=1' \ 168 '-DUSE_PROPRIETARY_CODECS' \ 169 '-DENABLE_CONFIGURATION_POLICY' \ 170 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 171 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 172 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 173 '-DUSE_OPENSSL=1' \ 174 '-DENABLE_EGLIMAGE=1' \ 175 '-DCLD_VERSION=1' \ 176 '-DENABLE_PRINTING=1' \ 177 '-DENABLE_MANAGED_USERS=1' \ 178 '-D__STDC_CONSTANT_MACROS' \ 179 '-D__STDC_FORMAT_MACROS' \ 180 '-DANDROID' \ 181 '-D__GNU_SOURCE=1' \ 182 '-DUSE_STLPORT=1' \ 183 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 184 '-DCHROME_BUILD_ID=""' \ 185 '-DNDEBUG' \ 186 '-DNVALGRIND' \ 187 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 188 '-D_FORTIFY_SOURCE=2' 189 190 191 # Include paths placed before CFLAGS/CPPFLAGS 192 LOCAL_C_INCLUDES_Release := \ 193 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 194 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 195 $(LOCAL_PATH)/sdch/linux \ 196 $(LOCAL_PATH) \ 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. 204 LOCAL_CPPFLAGS_Release := \ 205 -fno-rtti \ 206 -fno-threadsafe-statics \ 207 -fvisibility-inlines-hidden \ 208 -Wsign-compare \ 209 -Wno-abi \ 210 -Wno-error=c++0x-compat \ 211 -Wno-non-virtual-dtor \ 212 -Wno-sign-promo 213 214 215 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 216 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 217 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 218 ### Rules for final target. 219 220 LOCAL_LDFLAGS_Debug := \ 221 -Wl,-z,now \ 222 -Wl,-z,relro \ 223 -Wl,-z,noexecstack \ 224 -fPIC \ 225 -Wl,-z,relro \ 226 -Wl,-z,now \ 227 -fuse-ld=gold \ 228 -nostdlib \ 229 -Wl,--no-undefined \ 230 -Wl,--exclude-libs=ALL \ 231 -Wl,--icf=safe \ 232 -Wl,--fatal-warnings \ 233 -Wl,--gc-sections \ 234 -Wl,--warn-shared-textrel \ 235 -Wl,-O1 \ 236 -Wl,--as-needed 237 238 239 LOCAL_LDFLAGS_Release := \ 240 -Wl,-z,now \ 241 -Wl,-z,relro \ 242 -Wl,-z,noexecstack \ 243 -fPIC \ 244 -Wl,-z,relro \ 245 -Wl,-z,now \ 246 -fuse-ld=gold \ 247 -nostdlib \ 248 -Wl,--no-undefined \ 249 -Wl,--exclude-libs=ALL \ 250 -Wl,--icf=safe \ 251 -Wl,-O1 \ 252 -Wl,--as-needed \ 253 -Wl,--gc-sections \ 254 -Wl,--fatal-warnings \ 255 -Wl,--warn-shared-textrel 256 257 258 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 259 260 LOCAL_STATIC_LIBRARIES := 261 262 # Enable grouping to fix circular references 263 LOCAL_GROUP_STATIC_LIBRARIES := true 264 265 LOCAL_SHARED_LIBRARIES := \ 266 libstlport \ 267 libdl 268 269 # Add target alias to "gyp_all_modules" target. 270 .PHONY: gyp_all_modules 271 gyp_all_modules: sdch_sdch_gyp 272 273 # Alias gyp target name. 274 .PHONY: sdch 275 sdch: sdch_sdch_gyp 276 277 include $(BUILD_STATIC_LIBRARY) 278