2017-05-09 14:45:58 +00:00
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Append this to build.gn in the skia repo and then build the targets
|
2018-02-09 15:37:11 +00:00
|
|
|
test_app("region_deserialize") {
|
2017-05-09 14:45:58 +00:00
|
|
|
sources = [
|
2018-01-16 15:09:19 +00:00
|
|
|
"fuzz/oss_fuzz/FuzzRegionDeserialize.cpp",
|
2017-05-09 14:45:58 +00:00
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
2018-01-23 20:28:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test_app("image_filter_deserialize") {
|
|
|
|
sources = [
|
2018-02-09 15:37:11 +00:00
|
|
|
"fuzz/oss_fuzz/FuzzImageFilterDeserialize.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
test_app("region_set_path") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/oss_fuzz/FuzzRegionSetPath.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
test_app("textblob_deserialize") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/oss_fuzz/FuzzTextBlobDeserialize.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
test_app("path_deserialize") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/oss_fuzz/FuzzPathDeserialize.cpp",
|
2018-01-23 20:28:11 +00:00
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
2018-02-12 16:14:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test_app("image_decode") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/oss_fuzz/FuzzImage.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
test_app("animated_image_decode") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/oss_fuzz/FuzzAnimatedImage.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
2018-02-27 20:22:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test_app("api_draw_functions") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/oss_fuzz/FuzzDrawFunctions.cpp",
|
|
|
|
"fuzz/FuzzDrawFunctions.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
test_app("api_gradients") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/oss_fuzz/FuzzGradients.cpp",
|
|
|
|
"fuzz/FuzzGradients.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
test_app("api_image_filter") {
|
|
|
|
include_dirs = [
|
|
|
|
"tools",
|
|
|
|
"tools/debugger",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"fuzz/FuzzCanvas.cpp",
|
|
|
|
"fuzz/oss_fuzz/FuzzAPIImageFilter.cpp",
|
|
|
|
"tools/UrlDataManager.cpp",
|
|
|
|
"tools/debugger/SkDebugCanvas.cpp",
|
|
|
|
"tools/debugger/SkDrawCommand.cpp",
|
|
|
|
"tools/debugger/SkJsonWriteBuffer.cpp",
|
|
|
|
"tools/debugger/SkObjectParser.cpp",
|
|
|
|
"tools/picture_utils.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":gpu_tool_utils",
|
|
|
|
":skia",
|
|
|
|
"//third_party/jsoncpp",
|
|
|
|
"//third_party/libpng",
|
|
|
|
]
|
2017-05-09 14:45:58 +00:00
|
|
|
}
|