[Skia] Fix build after large refactoring (#1821)

This commit is contained in:
Kevin Lubick 2018-09-17 15:58:28 -04:00 committed by jonathanmetzman
parent 014d5b9ac6
commit 0742d90cab
1 changed files with 28 additions and 0 deletions

View File

@ -17,6 +17,8 @@
# Append this to build.gn in the skia repo and then build the targets # Append this to build.gn in the skia repo and then build the targets
test_app("region_deserialize") { test_app("region_deserialize") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzRegionDeserialize.cpp", "fuzz/oss_fuzz/FuzzRegionDeserialize.cpp",
] ]
deps = [ deps = [
@ -27,6 +29,8 @@ test_app("region_deserialize") {
test_app("image_filter_deserialize") { test_app("image_filter_deserialize") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzImageFilterDeserialize.cpp", "fuzz/oss_fuzz/FuzzImageFilterDeserialize.cpp",
] ]
deps = [ deps = [
@ -37,6 +41,7 @@ test_app("image_filter_deserialize") {
test_app("region_set_path") { test_app("region_set_path") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzRegionSetPath.cpp", "fuzz/oss_fuzz/FuzzRegionSetPath.cpp",
] ]
@ -48,6 +53,8 @@ test_app("region_set_path") {
test_app("textblob_deserialize") { test_app("textblob_deserialize") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzTextBlobDeserialize.cpp", "fuzz/oss_fuzz/FuzzTextBlobDeserialize.cpp",
] ]
deps = [ deps = [
@ -58,6 +65,8 @@ test_app("textblob_deserialize") {
test_app("path_deserialize") { test_app("path_deserialize") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzPathDeserialize.cpp", "fuzz/oss_fuzz/FuzzPathDeserialize.cpp",
] ]
deps = [ deps = [
@ -68,6 +77,8 @@ test_app("path_deserialize") {
test_app("image_decode") { test_app("image_decode") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzImage.cpp", "fuzz/oss_fuzz/FuzzImage.cpp",
] ]
deps = [ deps = [
@ -78,6 +89,8 @@ test_app("image_decode") {
test_app("animated_image_decode") { test_app("animated_image_decode") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzAnimatedImage.cpp", "fuzz/oss_fuzz/FuzzAnimatedImage.cpp",
] ]
deps = [ deps = [
@ -88,6 +101,8 @@ test_app("animated_image_decode") {
test_app("api_draw_functions") { test_app("api_draw_functions") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/FuzzDrawFunctions.cpp", "fuzz/FuzzDrawFunctions.cpp",
"fuzz/oss_fuzz/FuzzDrawFunctions.cpp", "fuzz/oss_fuzz/FuzzDrawFunctions.cpp",
] ]
@ -99,6 +114,8 @@ test_app("api_draw_functions") {
test_app("api_gradients") { test_app("api_gradients") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/FuzzGradients.cpp", "fuzz/FuzzGradients.cpp",
"fuzz/oss_fuzz/FuzzGradients.cpp", "fuzz/oss_fuzz/FuzzGradients.cpp",
] ]
@ -114,6 +131,7 @@ test_app("api_image_filter") {
"tools/debugger", "tools/debugger",
] ]
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCanvas.cpp", "fuzz/FuzzCanvas.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzAPIImageFilter.cpp", "fuzz/oss_fuzz/FuzzAPIImageFilter.cpp",
@ -133,6 +151,7 @@ test_app("api_image_filter") {
test_app("api_path_measure") { test_app("api_path_measure") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/FuzzPathMeasure.cpp", "fuzz/FuzzPathMeasure.cpp",
"fuzz/oss_fuzz/FuzzPathMeasure.cpp", "fuzz/oss_fuzz/FuzzPathMeasure.cpp",
@ -145,6 +164,7 @@ test_app("api_path_measure") {
test_app("api_pathop") { test_app("api_pathop") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/FuzzPathop.cpp", "fuzz/FuzzPathop.cpp",
"fuzz/oss_fuzz/FuzzPathop.cpp", "fuzz/oss_fuzz/FuzzPathop.cpp",
@ -161,6 +181,7 @@ test_app("api_raster_n32_canvas") {
"tools/debugger", "tools/debugger",
] ]
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCanvas.cpp", "fuzz/FuzzCanvas.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzRasterN32Canvas.cpp", "fuzz/oss_fuzz/FuzzRasterN32Canvas.cpp",
@ -184,6 +205,7 @@ test_app("api_mock_gpu_canvas") {
"tools/debugger", "tools/debugger",
] ]
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCanvas.cpp", "fuzz/FuzzCanvas.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzMockGPUCanvas.cpp", "fuzz/oss_fuzz/FuzzMockGPUCanvas.cpp",
@ -208,6 +230,7 @@ test_app("api_null_canvas") {
"tools/debugger", "tools/debugger",
] ]
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCanvas.cpp", "fuzz/FuzzCanvas.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzNullCanvas.cpp", "fuzz/oss_fuzz/FuzzNullCanvas.cpp",
@ -227,6 +250,7 @@ test_app("api_null_canvas") {
test_app("png_encoder") { test_app("png_encoder") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/FuzzEncoders.cpp", "fuzz/FuzzEncoders.cpp",
"fuzz/oss_fuzz/FuzzPNGEncoder.cpp", "fuzz/oss_fuzz/FuzzPNGEncoder.cpp",
@ -239,6 +263,7 @@ test_app("png_encoder") {
test_app("jpeg_encoder") { test_app("jpeg_encoder") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/FuzzEncoders.cpp", "fuzz/FuzzEncoders.cpp",
"fuzz/oss_fuzz/FuzzJPEGEncoder.cpp", "fuzz/oss_fuzz/FuzzJPEGEncoder.cpp",
@ -251,6 +276,7 @@ test_app("jpeg_encoder") {
test_app("webp_encoder") { test_app("webp_encoder") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp", "fuzz/FuzzCommon.cpp",
"fuzz/FuzzEncoders.cpp", "fuzz/FuzzEncoders.cpp",
"fuzz/oss_fuzz/FuzzWEBPEncoder.cpp", "fuzz/oss_fuzz/FuzzWEBPEncoder.cpp",
@ -271,6 +297,8 @@ test_app("skottie_json") {
test_app("skjson") { test_app("skjson") {
sources = [ sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzJSON.cpp", "fuzz/oss_fuzz/FuzzJSON.cpp",
] ]
deps = [ deps = [