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