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/SkBlitRow_opts_none.cpp \ 27 third_party/skia/src/opts/SkUtils_opts_none.cpp 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 -fstack-protector \ 33 --param=ssp-buffer-size=4 \ 34 \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wno-unused-parameter \ 38 -Wno-missing-field-initializers \ 39 -fvisibility=hidden \ 40 -pipe \ 41 -fPIC \ 42 -fomit-frame-pointer \ 43 -Wno-format \ 44 -EL \ 45 -mhard-float \ 46 -ffunction-sections \ 47 -funwind-tables \ 48 -g \ 49 -fstack-protector \ 50 -fno-short-enums \ 51 -finline-limit=64 \ 52 -Wa,--noexecstack \ 53 -U_FORTIFY_SOURCE \ 54 -Wno-extra \ 55 -Wno-ignored-qualifiers \ 56 -Wno-type-limits \ 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 '-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)/skia/config \ 94 $(LOCAL_PATH)/third_party/skia/include/config \ 95 $(LOCAL_PATH)/third_party/skia/include/core \ 96 $(LOCAL_PATH)/third_party/skia/src/core \ 97 $(LOCAL_PATH)/third_party/skia/src/opts \ 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-uninitialized \ 110 -Wno-error=c++0x-compat \ 111 -Wno-non-virtual-dtor \ 112 -Wno-sign-promo \ 113 -Wno-non-virtual-dtor 114 115 116 # Flags passed to both C and C++ files. 117 MY_CFLAGS_Release := \ 118 -fstack-protector \ 119 --param=ssp-buffer-size=4 \ 120 \ 121 -fno-exceptions \ 122 -fno-strict-aliasing \ 123 -Wno-unused-parameter \ 124 -Wno-missing-field-initializers \ 125 -fvisibility=hidden \ 126 -pipe \ 127 -fPIC \ 128 -fomit-frame-pointer \ 129 -Wno-format \ 130 -EL \ 131 -mhard-float \ 132 -ffunction-sections \ 133 -funwind-tables \ 134 -g \ 135 -fstack-protector \ 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 -Os \ 148 -fno-ident \ 149 -fdata-sections \ 150 -ffunction-sections \ 151 -fomit-frame-pointer 152 153 MY_DEFS_Release := \ 154 '-DANGLE_DX11' \ 155 '-D_FILE_OFFSET_BITS=64' \ 156 '-DNO_TCMALLOC' \ 157 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 158 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 159 '-DDISABLE_NACL' \ 160 '-DCHROMIUM_BUILD' \ 161 '-DUSE_LIBJPEG_TURBO=1' \ 162 '-DUSE_PROPRIETARY_CODECS' \ 163 '-DENABLE_CONFIGURATION_POLICY' \ 164 '-DENABLE_GPU=1' \ 165 '-DUSE_OPENSSL=1' \ 166 '-DENABLE_EGLIMAGE=1' \ 167 '-DANDROID' \ 168 '-D__GNU_SOURCE=1' \ 169 '-DUSE_STLPORT=1' \ 170 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 171 '-DCHROME_BUILD_ID=""' \ 172 '-DNDEBUG' \ 173 '-DNVALGRIND' \ 174 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 175 176 177 # Include paths placed before CFLAGS/CPPFLAGS 178 LOCAL_C_INCLUDES_Release := \ 179 $(LOCAL_PATH)/skia/config \ 180 $(LOCAL_PATH)/third_party/skia/include/config \ 181 $(LOCAL_PATH)/third_party/skia/include/core \ 182 $(LOCAL_PATH)/third_party/skia/src/core \ 183 $(LOCAL_PATH)/third_party/skia/src/opts \ 184 $(PWD)/frameworks/wilhelm/include \ 185 $(PWD)/bionic \ 186 $(PWD)/external/stlport/stlport 187 188 189 # Flags passed to only C++ (and not C) files. 190 LOCAL_CPPFLAGS_Release := \ 191 -fno-rtti \ 192 -fno-threadsafe-statics \ 193 -fvisibility-inlines-hidden \ 194 -Wno-deprecated \ 195 -Wno-uninitialized \ 196 -Wno-error=c++0x-compat \ 197 -Wno-non-virtual-dtor \ 198 -Wno-sign-promo \ 199 -Wno-non-virtual-dtor 200 201 202 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 203 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 204 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 205 ### Rules for final target. 206 207 LOCAL_LDFLAGS_Debug := \ 208 -Wl,-z,now \ 209 -Wl,-z,relro \ 210 -Wl,-z,noexecstack \ 211 -fPIC \ 212 -EL \ 213 -Wl,--no-keep-memory \ 214 -nostdlib \ 215 -Wl,--no-undefined \ 216 -Wl,--exclude-libs=ALL \ 217 -Wl,--fatal-warnings \ 218 -Wl,--gc-sections \ 219 -Wl,--warn-shared-textrel \ 220 -Wl,-O1 \ 221 -Wl,--as-needed 222 223 224 LOCAL_LDFLAGS_Release := \ 225 -Wl,-z,now \ 226 -Wl,-z,relro \ 227 -Wl,-z,noexecstack \ 228 -fPIC \ 229 -EL \ 230 -Wl,--no-keep-memory \ 231 -nostdlib \ 232 -Wl,--no-undefined \ 233 -Wl,--exclude-libs=ALL \ 234 -Wl,-O1 \ 235 -Wl,--as-needed \ 236 -Wl,--gc-sections \ 237 -Wl,--fatal-warnings \ 238 -Wl,--warn-shared-textrel 239 240 241 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 242 243 LOCAL_STATIC_LIBRARIES := 244 245 # Enable grouping to fix circular references 246 LOCAL_GROUP_STATIC_LIBRARIES := true 247 248 LOCAL_SHARED_LIBRARIES := \ 249 libstlport \ 250 libdl 251 252 # Add target alias to "gyp_all_modules" target. 253 .PHONY: gyp_all_modules 254 gyp_all_modules: skia_skia_opts_gyp 255 256 # Alias gyp target name. 257 .PHONY: skia_opts 258 skia_opts: skia_skia_opts_gyp 259 260 include $(BUILD_STATIC_LIBRARY) 261