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 = [
|
2018-03-12 17:15:19 +00:00
|
|
|
"fuzz/FuzzCommon.cpp",
|
2018-02-09 15:37:11 +00:00
|
|
|
"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/FuzzDrawFunctions.cpp",
|
2018-03-12 17:15:19 +00:00
|
|
|
"fuzz/oss_fuzz/FuzzDrawFunctions.cpp",
|
2018-02-27 20:22:11 +00:00
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
test_app("api_gradients") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/FuzzGradients.cpp",
|
2018-03-12 17:15:19 +00:00
|
|
|
"fuzz/oss_fuzz/FuzzGradients.cpp",
|
2018-02-27 20:22:11 +00:00
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
test_app("api_image_filter") {
|
|
|
|
include_dirs = [
|
2018-03-12 17:15:19 +00:00
|
|
|
"tools",
|
|
|
|
"tools/debugger",
|
2018-02-27 20:22:11 +00:00
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"fuzz/FuzzCanvas.cpp",
|
2018-03-12 17:15:19 +00:00
|
|
|
"fuzz/FuzzCommon.cpp",
|
2018-02-27 20:22:11 +00:00
|
|
|
"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",
|
|
|
|
]
|
2018-03-12 17:15:19 +00:00
|
|
|
}
|
2018-03-14 17:19:35 +00:00
|
|
|
|
|
|
|
test_app("api_path_measure") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/FuzzCommon.cpp",
|
|
|
|
"fuzz/FuzzPathMeasure.cpp",
|
|
|
|
"fuzz/oss_fuzz/FuzzPathMeasure.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|