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_chrome_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 $(call intermediates-dir-for,GYP,skia_skia_library_gyp)/skia_library.stamp 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 $(gyp_intermediate_dir)/SkMemory_new_handler.cc: $(LOCAL_PATH)/skia/ext/SkMemory_new_handler.cpp 23 mkdir -p $(@D); cp $< $@ 24 LOCAL_GENERATED_SOURCES := \ 25 $(gyp_intermediate_dir)/SkMemory_new_handler.cc 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 28 $(LOCAL_PATH)/skia/ext 29 30 LOCAL_SRC_FILES := \ 31 skia/ext/analysis_canvas.cc \ 32 skia/ext/benchmarking_canvas.cc \ 33 skia/ext/bitmap_platform_device_skia.cc \ 34 skia/ext/convolver.cc \ 35 skia/ext/google_logging.cc \ 36 skia/ext/image_operations.cc \ 37 skia/ext/lazy_pixel_ref.cc \ 38 skia/ext/lazy_pixel_ref_utils.cc \ 39 skia/ext/opacity_draw_filter.cc \ 40 skia/ext/paint_simplifier.cc \ 41 skia/ext/platform_canvas.cc \ 42 skia/ext/platform_device.cc \ 43 skia/ext/platform_device_linux.cc \ 44 skia/ext/recursive_gaussian_convolution.cc \ 45 skia/ext/SkDiscardableMemory_chrome.cc \ 46 skia/ext/skia_utils_base.cc \ 47 skia/ext/vector_canvas.cc \ 48 skia/ext/vector_platform_device_skia.cc 49 50 51 # Flags passed to both C and C++ files. 52 MY_CFLAGS_Debug := \ 53 -fstack-protector \ 54 --param=ssp-buffer-size=4 \ 55 -fno-exceptions \ 56 -fno-strict-aliasing \ 57 -Wno-unused-parameter \ 58 -Wno-missing-field-initializers \ 59 -fvisibility=hidden \ 60 -pipe \ 61 -fPIC \ 62 -Wno-format \ 63 -fno-tree-sra \ 64 -fuse-ld=gold \ 65 -Wno-psabi \ 66 -ffunction-sections \ 67 -funwind-tables \ 68 -g \ 69 -fstack-protector \ 70 -fno-short-enums \ 71 -finline-limit=64 \ 72 -Wa,--noexecstack \ 73 -U_FORTIFY_SOURCE \ 74 -Wno-extra \ 75 -Wno-ignored-qualifiers \ 76 -Wno-type-limits \ 77 -Wno-address \ 78 -Wno-format-security \ 79 -Wno-return-type \ 80 -Wno-sequence-point \ 81 -Os \ 82 -g \ 83 -fomit-frame-pointer \ 84 -fdata-sections \ 85 -ffunction-sections 86 87 MY_DEFS_Debug := \ 88 '-DV8_DEPRECATION_WARNINGS' \ 89 '-D_FILE_OFFSET_BITS=64' \ 90 '-DNO_TCMALLOC' \ 91 '-DDISABLE_NACL' \ 92 '-DCHROMIUM_BUILD' \ 93 '-DUSE_LIBJPEG_TURBO=1' \ 94 '-DUSE_PROPRIETARY_CODECS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 97 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 98 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 99 '-DUSE_OPENSSL=1' \ 100 '-DENABLE_EGLIMAGE=1' \ 101 '-DCLD_VERSION=1' \ 102 '-DENABLE_PRINTING=1' \ 103 '-DENABLE_MANAGED_USERS=1' \ 104 '-DSK_FONTHOST_DOES_NOT_USE_FONTMGR' \ 105 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 106 '-DANDROID' \ 107 '-D__GNU_SOURCE=1' \ 108 '-DUSE_STLPORT=1' \ 109 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 110 '-DCHROME_BUILD_ID=""' \ 111 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 112 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 113 '-D_DEBUG' 114 115 116 # Include paths placed before CFLAGS/CPPFLAGS 117 LOCAL_C_INCLUDES_Debug := \ 118 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 119 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 120 $(LOCAL_PATH) \ 121 $(LOCAL_PATH)/skia/config \ 122 $(PWD)/external/skia/include \ 123 $(PWD)/external/skia/include/core \ 124 $(LOCAL_PATH)/third_party/skia/src/core \ 125 $(PWD)/frameworks/wilhelm/include \ 126 $(PWD)/bionic \ 127 $(PWD)/external/stlport/stlport 128 129 130 # Flags passed to only C++ (and not C) files. 131 LOCAL_CPPFLAGS_Debug := \ 132 -fno-rtti \ 133 -fno-threadsafe-statics \ 134 -fvisibility-inlines-hidden \ 135 -Wno-deprecated \ 136 -Wno-abi \ 137 -Wno-error=c++0x-compat \ 138 -Wno-non-virtual-dtor \ 139 -Wno-sign-promo \ 140 -Wno-non-virtual-dtor 141 142 143 # Flags passed to both C and C++ files. 144 MY_CFLAGS_Release := \ 145 -fstack-protector \ 146 --param=ssp-buffer-size=4 \ 147 -fno-exceptions \ 148 -fno-strict-aliasing \ 149 -Wno-unused-parameter \ 150 -Wno-missing-field-initializers \ 151 -fvisibility=hidden \ 152 -pipe \ 153 -fPIC \ 154 -Wno-format \ 155 -fno-tree-sra \ 156 -fuse-ld=gold \ 157 -Wno-psabi \ 158 -ffunction-sections \ 159 -funwind-tables \ 160 -g \ 161 -fstack-protector \ 162 -fno-short-enums \ 163 -finline-limit=64 \ 164 -Wa,--noexecstack \ 165 -U_FORTIFY_SOURCE \ 166 -Wno-extra \ 167 -Wno-ignored-qualifiers \ 168 -Wno-type-limits \ 169 -Wno-address \ 170 -Wno-format-security \ 171 -Wno-return-type \ 172 -Wno-sequence-point \ 173 -Os \ 174 -fno-ident \ 175 -fdata-sections \ 176 -ffunction-sections \ 177 -fomit-frame-pointer 178 179 MY_DEFS_Release := \ 180 '-DV8_DEPRECATION_WARNINGS' \ 181 '-D_FILE_OFFSET_BITS=64' \ 182 '-DNO_TCMALLOC' \ 183 '-DDISABLE_NACL' \ 184 '-DCHROMIUM_BUILD' \ 185 '-DUSE_LIBJPEG_TURBO=1' \ 186 '-DUSE_PROPRIETARY_CODECS' \ 187 '-DENABLE_CONFIGURATION_POLICY' \ 188 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 189 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 190 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 191 '-DUSE_OPENSSL=1' \ 192 '-DENABLE_EGLIMAGE=1' \ 193 '-DCLD_VERSION=1' \ 194 '-DENABLE_PRINTING=1' \ 195 '-DENABLE_MANAGED_USERS=1' \ 196 '-DSK_FONTHOST_DOES_NOT_USE_FONTMGR' \ 197 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 198 '-DANDROID' \ 199 '-D__GNU_SOURCE=1' \ 200 '-DUSE_STLPORT=1' \ 201 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 202 '-DCHROME_BUILD_ID=""' \ 203 '-DNDEBUG' \ 204 '-DNVALGRIND' \ 205 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 206 207 208 # Include paths placed before CFLAGS/CPPFLAGS 209 LOCAL_C_INCLUDES_Release := \ 210 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 212 $(LOCAL_PATH) \ 213 $(LOCAL_PATH)/skia/config \ 214 $(PWD)/external/skia/include \ 215 $(PWD)/external/skia/include/core \ 216 $(LOCAL_PATH)/third_party/skia/src/core \ 217 $(PWD)/frameworks/wilhelm/include \ 218 $(PWD)/bionic \ 219 $(PWD)/external/stlport/stlport 220 221 222 # Flags passed to only C++ (and not C) files. 223 LOCAL_CPPFLAGS_Release := \ 224 -fno-rtti \ 225 -fno-threadsafe-statics \ 226 -fvisibility-inlines-hidden \ 227 -Wno-deprecated \ 228 -Wno-abi \ 229 -Wno-error=c++0x-compat \ 230 -Wno-non-virtual-dtor \ 231 -Wno-sign-promo \ 232 -Wno-non-virtual-dtor 233 234 235 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 236 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 237 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 238 ### Rules for final target. 239 240 LOCAL_LDFLAGS_Debug := \ 241 -Wl,-z,now \ 242 -Wl,-z,relro \ 243 -Wl,-z,noexecstack \ 244 -fPIC \ 245 -Wl,-z,relro \ 246 -Wl,-z,now \ 247 -fuse-ld=gold \ 248 -nostdlib \ 249 -Wl,--no-undefined \ 250 -Wl,--exclude-libs=ALL \ 251 -Wl,--icf=safe \ 252 -Wl,--fatal-warnings \ 253 -Wl,--gc-sections \ 254 -Wl,--warn-shared-textrel \ 255 -Wl,-O1 \ 256 -Wl,--as-needed 257 258 259 LOCAL_LDFLAGS_Release := \ 260 -Wl,-z,now \ 261 -Wl,-z,relro \ 262 -Wl,-z,noexecstack \ 263 -fPIC \ 264 -Wl,-z,relro \ 265 -Wl,-z,now \ 266 -fuse-ld=gold \ 267 -nostdlib \ 268 -Wl,--no-undefined \ 269 -Wl,--exclude-libs=ALL \ 270 -Wl,--icf=safe \ 271 -Wl,-O1 \ 272 -Wl,--as-needed \ 273 -Wl,--gc-sections \ 274 -Wl,--fatal-warnings \ 275 -Wl,--warn-shared-textrel 276 277 278 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 279 280 LOCAL_STATIC_LIBRARIES := 281 282 # Enable grouping to fix circular references 283 LOCAL_GROUP_STATIC_LIBRARIES := true 284 285 LOCAL_SHARED_LIBRARIES := \ 286 libskia \ 287 libstlport \ 288 libdl 289 290 # Add target alias to "gyp_all_modules" target. 291 .PHONY: gyp_all_modules 292 gyp_all_modules: skia_skia_chrome_gyp 293 294 # Alias gyp target name. 295 .PHONY: skia_chrome 296 skia_chrome: skia_skia_chrome_gyp 297 298 include $(BUILD_STATIC_LIBRARY) 299