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