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