# 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 test_app("region_deserialize") { sources = [ "fuzz/oss_fuzz/FuzzRegionDeserialize.cpp", ] deps = [ ":flags", ":skia", ] } test_app("image_filter_deserialize") { sources = [ "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", ] deps = [ ":flags", ":skia", ] } 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", ] } 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", ] }