[includes] Enforce IWYU on //example
Change-Id: I26136f1a3960eafd6e48c733c16ca35d20534df6 Bug: skia:13052 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/535395 Reviewed-by: Ben Wagner <bungeman@google.com>
This commit is contained in:
parent
efb32fe3c0
commit
88c15aeb94
@ -133,6 +133,9 @@ def cc_binary_with_flags(name, set_flags = {}, **kwargs):
|
||||
set_flags = set_flags,
|
||||
testonly = kwargs.get("testonly", False),
|
||||
)
|
||||
tags = kwargs.get("tags", [])
|
||||
tags.append("manual") # We want to exclude this helper binary from bazel build foo/...
|
||||
kwargs["tags"] = tags
|
||||
native.cc_binary(
|
||||
name = cc_binary_name,
|
||||
**kwargs
|
||||
|
@ -1,8 +1,10 @@
|
||||
load("//bazel:macros.bzl", "generated_cc_atom")
|
||||
load("//bazel:macros.bzl", "enforce_iwyu_on_package", "generated_cc_atom")
|
||||
load("//bazel:cc_binary_with_flags.bzl", "cc_binary_with_flags")
|
||||
|
||||
licenses(["notice"])
|
||||
|
||||
enforce_iwyu_on_package()
|
||||
|
||||
cc_binary_with_flags(
|
||||
name = "hello_world_gl",
|
||||
srcs = [
|
||||
@ -102,8 +104,11 @@ generated_cc_atom(
|
||||
hdrs = ["HelloWorld.h"],
|
||||
visibility = ["//:__subpackages__"],
|
||||
deps = [
|
||||
"//include/core:SkScalar_hdr",
|
||||
"//include/core:SkTypes_hdr",
|
||||
"//tools/sk_app:Application_hdr",
|
||||
"//tools/sk_app:Window_hdr",
|
||||
"//tools/skui:ModifierKey_hdr",
|
||||
],
|
||||
)
|
||||
|
||||
@ -114,10 +119,19 @@ generated_cc_atom(
|
||||
deps = [
|
||||
":HelloWorld_hdr",
|
||||
"//include/core:SkCanvas_hdr",
|
||||
"//include/core:SkColor_hdr",
|
||||
"//include/core:SkFontTypes_hdr",
|
||||
"//include/core:SkFont_hdr",
|
||||
"//include/core:SkGraphics_hdr",
|
||||
"//include/core:SkPaint_hdr",
|
||||
"//include/core:SkPoint_hdr",
|
||||
"//include/core:SkRect_hdr",
|
||||
"//include/core:SkShader_hdr",
|
||||
"//include/core:SkString_hdr",
|
||||
"//include/core:SkSurface_hdr",
|
||||
"//include/core:SkTileMode_hdr",
|
||||
"//include/effects:SkGradientShader_hdr",
|
||||
"//tools/sk_app:DisplayParams_hdr",
|
||||
],
|
||||
)
|
||||
|
||||
@ -126,8 +140,14 @@ generated_cc_atom(
|
||||
srcs = ["VulkanBasic.cpp"],
|
||||
visibility = ["//:__subpackages__"],
|
||||
deps = [
|
||||
"//include/core:SkAlphaType_hdr",
|
||||
"//include/core:SkCanvas_hdr",
|
||||
"//include/core:SkColorType_hdr",
|
||||
"//include/core:SkColor_hdr",
|
||||
"//include/core:SkImageInfo_hdr",
|
||||
"//include/core:SkRefCnt_hdr",
|
||||
"//include/core:SkSurface_hdr",
|
||||
"//include/core:SkTypes_hdr",
|
||||
"//include/gpu:GrDirectContext_hdr",
|
||||
"//include/gpu/vk:GrVkBackendContext_hdr",
|
||||
"//include/gpu/vk:GrVkExtensions_hdr",
|
||||
|
@ -8,10 +8,21 @@
|
||||
#include "example/HelloWorld.h"
|
||||
|
||||
#include "include/core/SkCanvas.h"
|
||||
#include "include/core/SkColor.h"
|
||||
#include "include/core/SkFont.h"
|
||||
#include "include/core/SkFontTypes.h"
|
||||
#include "include/core/SkGraphics.h"
|
||||
#include "include/core/SkPaint.h"
|
||||
#include "include/core/SkPoint.h"
|
||||
#include "include/core/SkRect.h"
|
||||
#include "include/core/SkShader.h"
|
||||
#include "include/core/SkString.h"
|
||||
#include "include/core/SkSurface.h"
|
||||
#include "include/core/SkTileMode.h"
|
||||
#include "include/effects/SkGradientShader.h"
|
||||
#include "tools/sk_app/DisplayParams.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
using namespace sk_app;
|
||||
|
||||
|
@ -8,10 +8,13 @@
|
||||
#ifndef HelloWorld_DEFINED
|
||||
#define HelloWorld_DEFINED
|
||||
|
||||
#include "include/core/SkScalar.h"
|
||||
#include "include/core/SkTypes.h"
|
||||
#include "tools/sk_app/Application.h"
|
||||
#include "tools/sk_app/Window.h"
|
||||
#include "tools/skui/ModifierKey.h"
|
||||
|
||||
class SkCanvas;
|
||||
class SkSurface;
|
||||
|
||||
class HelloWorld : public sk_app::Application, sk_app::Window::Layer {
|
||||
public:
|
||||
|
@ -5,16 +5,22 @@
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "include/core/SkAlphaType.h"
|
||||
#include "include/core/SkCanvas.h"
|
||||
#include "include/core/SkColor.h"
|
||||
#include "include/core/SkColorType.h"
|
||||
#include "include/core/SkImageInfo.h"
|
||||
#include "include/core/SkRefCnt.h"
|
||||
#include "include/core/SkSurface.h"
|
||||
#include "include/core/SkTypes.h"
|
||||
#include "include/gpu/GrDirectContext.h"
|
||||
#include "include/gpu/vk/GrVkBackendContext.h"
|
||||
#include "include/gpu/vk/GrVkExtensions.h"
|
||||
|
||||
#include "tools/gpu/vk/VkTestUtils.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
#define ACQUIRE_INST_VK_PROC(name) \
|
||||
|
Loading…
Reference in New Issue
Block a user