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