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 := skia_skia_opts_ssse3_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/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp 26 27 28 # Flags passed to both C and C++ files. 29 MY_CFLAGS_Debug := \ 30 --param=ssp-buffer-size=4 \ 31 -fno-exceptions \ 32 -fno-strict-aliasing \ 33 -Wno-unused-parameter \ 34 -Wno-missing-field-initializers \ 35 -fvisibility=hidden \ 36 -pipe \ 37 -fPIC \ 38 -mssse3 \ 39 -Wno-format \ 40 -m32 \ 41 -mmmx \ 42 -march=pentium4 \ 43 -msse2 \ 44 -mfpmath=sse \ 45 -fuse-ld=gold \ 46 -ffunction-sections \ 47 -funwind-tables \ 48 -g \ 49 -fno-short-enums \ 50 -finline-limit=64 \ 51 -Wa,--noexecstack \ 52 -U_FORTIFY_SOURCE \ 53 -Wno-extra \ 54 -Wno-ignored-qualifiers \ 55 -Wno-type-limits \ 56 -fno-stack-protector \ 57 -Wno-address \ 58 -Wno-format-security \ 59 -Wno-return-type \ 60 -Wno-sequence-point \ 61 -Os \ 62 -g \ 63 -fomit-frame-pointer \ 64 -fdata-sections \ 65 -ffunction-sections 66 67 MY_DEFS_Debug := \ 68 '-DV8_DEPRECATION_WARNINGS' \ 69 '-D_FILE_OFFSET_BITS=64' \ 70 '-DNO_TCMALLOC' \ 71 '-DDISABLE_NACL' \ 72 '-DCHROMIUM_BUILD' \ 73 '-DUSE_LIBJPEG_TURBO=1' \ 74 '-DUSE_PROPRIETARY_CODECS' \ 75 '-DENABLE_CONFIGURATION_POLICY' \ 76 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 77 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 78 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 79 '-DUSE_OPENSSL=1' \ 80 '-DENABLE_EGLIMAGE=1' \ 81 '-DCLD_VERSION=1' \ 82 '-DENABLE_PRINTING=1' \ 83 '-DENABLE_MANAGED_USERS=1' \ 84 '-DSK_FONTHOST_DOES_NOT_USE_FONTMGR' \ 85 '-DANDROID' \ 86 '-D__GNU_SOURCE=1' \ 87 '-DUSE_STLPORT=1' \ 88 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 89 '-DCHROME_BUILD_ID=""' \ 90 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 91 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 92 '-D_DEBUG' 93 94 95 # Include paths placed before CFLAGS/CPPFLAGS 96 LOCAL_C_INCLUDES_Debug := \ 97 $(LOCAL_PATH)/third_party/skia/include/core \ 98 $(LOCAL_PATH)/third_party/skia/src/core \ 99 $(LOCAL_PATH) \ 100 $(LOCAL_PATH)/skia/config \ 101 $(PWD)/frameworks/wilhelm/include \ 102 $(PWD)/bionic \ 103 $(PWD)/external/stlport/stlport 104 105 106 # Flags passed to only C++ (and not C) files. 107 LOCAL_CPPFLAGS_Debug := \ 108 -fno-rtti \ 109 -fno-threadsafe-statics \ 110 -fvisibility-inlines-hidden \ 111 -Wno-deprecated \ 112 -Wno-error=c++0x-compat \ 113 -Wno-non-virtual-dtor \ 114 -Wno-sign-promo \ 115 -Wno-non-virtual-dtor 116 117 118 # Flags passed to both C and C++ files. 119 MY_CFLAGS_Release := \ 120 --param=ssp-buffer-size=4 \ 121 -fno-exceptions \ 122 -fno-strict-aliasing \ 123 -Wno-unused-parameter \ 124 -Wno-missing-field-initializers \ 125 -fvisibility=hidden \ 126 -pipe \ 127 -fPIC \ 128 -mssse3 \ 129 -Wno-format \ 130 -m32 \ 131 -mmmx \ 132 -march=pentium4 \ 133 -msse2 \ 134 -mfpmath=sse \ 135 -fuse-ld=gold \ 136 -ffunction-sections \ 137 -funwind-tables \ 138 -g \ 139 -fno-short-enums \ 140 -finline-limit=64 \ 141 -Wa,--noexecstack \ 142 -U_FORTIFY_SOURCE \ 143 -Wno-extra \ 144 -Wno-ignored-qualifiers \ 145 -Wno-type-limits \ 146 -fno-stack-protector \ 147 -Wno-address \ 148 -Wno-format-security \ 149 -Wno-return-type \ 150 -Wno-sequence-point \ 151 -Os \ 152 -fno-ident \ 153 -fdata-sections \ 154 -ffunction-sections \ 155 -fomit-frame-pointer \ 156 -fno-unwind-tables \ 157 -fno-asynchronous-unwind-tables 158 159 MY_DEFS_Release := \ 160 '-DV8_DEPRECATION_WARNINGS' \ 161 '-D_FILE_OFFSET_BITS=64' \ 162 '-DNO_TCMALLOC' \ 163 '-DDISABLE_NACL' \ 164 '-DCHROMIUM_BUILD' \ 165 '-DUSE_LIBJPEG_TURBO=1' \ 166 '-DUSE_PROPRIETARY_CODECS' \ 167 '-DENABLE_CONFIGURATION_POLICY' \ 168 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 169 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 170 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 171 '-DUSE_OPENSSL=1' \ 172 '-DENABLE_EGLIMAGE=1' \ 173 '-DCLD_VERSION=1' \ 174 '-DENABLE_PRINTING=1' \ 175 '-DENABLE_MANAGED_USERS=1' \ 176 '-DSK_FONTHOST_DOES_NOT_USE_FONTMGR' \ 177 '-DANDROID' \ 178 '-D__GNU_SOURCE=1' \ 179 '-DUSE_STLPORT=1' \ 180 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 181 '-DCHROME_BUILD_ID=""' \ 182 '-DNDEBUG' \ 183 '-DNVALGRIND' \ 184 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 185 186 187 # Include paths placed before CFLAGS/CPPFLAGS 188 LOCAL_C_INCLUDES_Release := \ 189 $(LOCAL_PATH)/third_party/skia/include/core \ 190 $(LOCAL_PATH)/third_party/skia/src/core \ 191 $(LOCAL_PATH) \ 192 $(LOCAL_PATH)/skia/config \ 193 $(PWD)/frameworks/wilhelm/include \ 194 $(PWD)/bionic \ 195 $(PWD)/external/stlport/stlport 196 197 198 # Flags passed to only C++ (and not C) files. 199 LOCAL_CPPFLAGS_Release := \ 200 -fno-rtti \ 201 -fno-threadsafe-statics \ 202 -fvisibility-inlines-hidden \ 203 -Wno-deprecated \ 204 -Wno-error=c++0x-compat \ 205 -Wno-non-virtual-dtor \ 206 -Wno-sign-promo \ 207 -Wno-non-virtual-dtor 208 209 210 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 211 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 212 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 213 ### Rules for final target. 214 215 LOCAL_LDFLAGS_Debug := \ 216 -Wl,-z,now \ 217 -Wl,-z,relro \ 218 -Wl,-z,noexecstack \ 219 -fPIC \ 220 -m32 \ 221 -fuse-ld=gold \ 222 -nostdlib \ 223 -Wl,--no-undefined \ 224 -Wl,--exclude-libs=ALL \ 225 -Wl,--fatal-warnings \ 226 -Wl,--gc-sections \ 227 -Wl,--warn-shared-textrel \ 228 -Wl,-O1 \ 229 -Wl,--as-needed 230 231 232 LOCAL_LDFLAGS_Release := \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,-z,noexecstack \ 236 -fPIC \ 237 -m32 \ 238 -fuse-ld=gold \ 239 -nostdlib \ 240 -Wl,--no-undefined \ 241 -Wl,--exclude-libs=ALL \ 242 -Wl,-O1 \ 243 -Wl,--as-needed \ 244 -Wl,--gc-sections \ 245 -Wl,--fatal-warnings \ 246 -Wl,--warn-shared-textrel 247 248 249 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 250 251 LOCAL_STATIC_LIBRARIES := 252 253 # Enable grouping to fix circular references 254 LOCAL_GROUP_STATIC_LIBRARIES := true 255 256 LOCAL_SHARED_LIBRARIES := \ 257 libstlport \ 258 libdl 259 260 # Add target alias to "gyp_all_modules" target. 261 .PHONY: gyp_all_modules 262 gyp_all_modules: skia_skia_opts_ssse3_gyp 263 264 # Alias gyp target name. 265 .PHONY: skia_opts_ssse3 266 skia_opts_ssse3: skia_skia_opts_ssse3_gyp 267 268 include $(BUILD_STATIC_LIBRARY) 269