1load("//bazel:macros.bzl", "generated_cc_atom") 2 3cc_library( 4 name = "sk_app", 5 visibility = ["//:__subpackages__"], 6 deps = [ 7 ":Application_hdr", 8 ":CommandSet_src", 9 ":RasterWindowContext_hdr", 10 ":WindowContext_src", 11 ":GLWindowContext_src", 12 ":Window_src", 13 ] + [ 14 # TODO(kjlubick) use a select to set these based on target platform 15 "//tools/sk_app/unix:GLWindowContext_unix_src", 16 "//tools/sk_app/unix:RasterWindowContext_unix_src", 17 "//tools/sk_app/unix:Window_unix_src", 18 "//tools/sk_app/unix:keysym2ucs_src", 19 "//tools/sk_app/unix:main_unix_src", 20 ], 21) 22 23generated_cc_atom( 24 name = "Application_hdr", 25 hdrs = ["Application.h"], 26 visibility = ["//:__subpackages__"], 27) 28 29generated_cc_atom( 30 name = "CommandSet_hdr", 31 hdrs = ["CommandSet.h"], 32 visibility = ["//:__subpackages__"], 33 deps = [ 34 ":Window_hdr", 35 "//include/core:SkString_hdr", 36 ], 37) 38 39generated_cc_atom( 40 name = "CommandSet_src", 41 srcs = ["CommandSet.cpp"], 42 visibility = ["//:__subpackages__"], 43 deps = [ 44 ":CommandSet_hdr", 45 "//include/core:SkCanvas_hdr", 46 "//include/core:SkFont_hdr", 47 "//src/core:SkStringUtils_hdr", 48 ], 49) 50 51generated_cc_atom( 52 name = "DawnWindowContext_hdr", 53 hdrs = ["DawnWindowContext.h"], 54 visibility = ["//:__subpackages__"], 55 deps = [ 56 ":WindowContext_hdr", 57 "//dawn:dawn_wsi_hdr", 58 "//dawn_native:DawnNative_hdr", 59 "//include/core:SkRefCnt_hdr", 60 "//include/core:SkSurface_hdr", 61 ], 62) 63 64generated_cc_atom( 65 name = "DawnWindowContext_src", 66 srcs = ["DawnWindowContext.cpp"], 67 visibility = ["//:__subpackages__"], 68 deps = [ 69 ":DawnWindowContext_hdr", 70 "//dawn:dawn_proc_hdr", 71 "//include/core:SkSurface_hdr", 72 "//include/gpu:GrBackendSurface_hdr", 73 "//include/gpu:GrDirectContext_hdr", 74 "//src/core:SkAutoMalloc_hdr", 75 ], 76) 77 78generated_cc_atom( 79 name = "DisplayParams_hdr", 80 hdrs = ["DisplayParams.h"], 81 visibility = ["//:__subpackages__"], 82 deps = [ 83 "//include/core:SkImageInfo_hdr", 84 "//include/core:SkSurfaceProps_hdr", 85 "//include/gpu:GrContextOptions_hdr", 86 ], 87) 88 89generated_cc_atom( 90 name = "GLWindowContext_hdr", 91 hdrs = ["GLWindowContext.h"], 92 visibility = ["//:__subpackages__"], 93 deps = [ 94 ":WindowContext_hdr", 95 "//include/core:SkRefCnt_hdr", 96 "//include/core:SkSurface_hdr", 97 "//include/gpu/gl:GrGLInterface_hdr", 98 ], 99) 100 101generated_cc_atom( 102 name = "GLWindowContext_src", 103 srcs = ["GLWindowContext.cpp"], 104 visibility = ["//:__subpackages__"], 105 deps = [ 106 ":GLWindowContext_hdr", 107 "//include/core:SkCanvas_hdr", 108 "//include/core:SkSurface_hdr", 109 "//include/gpu:GrBackendSurface_hdr", 110 "//include/gpu:GrDirectContext_hdr", 111 "//src/core:SkMathPriv_hdr", 112 "//src/gpu:GrCaps_hdr", 113 "//src/gpu:GrDirectContextPriv_hdr", 114 "//src/gpu/gl:GrGLDefines_hdr", 115 "//src/gpu/gl:GrGLUtil_hdr", 116 "//src/image:SkImage_Base_hdr", 117 ], 118) 119 120generated_cc_atom( 121 name = "GraphiteMetalWindowContext_hdr", 122 hdrs = ["GraphiteMetalWindowContext.h"], 123 visibility = ["//:__subpackages__"], 124 deps = [ 125 ":WindowContext_hdr", 126 "//include/core:SkRefCnt_hdr", 127 "//include/ports:SkCFObject_hdr", 128 ], 129) 130 131generated_cc_atom( 132 name = "MetalWindowContext_hdr", 133 hdrs = ["MetalWindowContext.h"], 134 visibility = ["//:__subpackages__"], 135 deps = [ 136 ":WindowContext_hdr", 137 "//include/core:SkRefCnt_hdr", 138 "//include/core:SkSurface_hdr", 139 "//include/ports:SkCFObject_hdr", 140 "//include/private:GrMtlTypesPriv_hdr", 141 ], 142) 143 144generated_cc_atom( 145 name = "RasterWindowContext_hdr", 146 hdrs = ["RasterWindowContext.h"], 147 visibility = ["//:__subpackages__"], 148 deps = [":WindowContext_hdr"], 149) 150 151generated_cc_atom( 152 name = "VulkanWindowContext_hdr", 153 hdrs = ["VulkanWindowContext.h"], 154 visibility = ["//:__subpackages__"], 155 deps = [ 156 ":WindowContext_hdr", 157 "//include/core:SkTypes_hdr", 158 "//include/gpu/vk:GrVkBackendContext_hdr", 159 "//include/gpu/vk:GrVkVulkan_hdr", 160 "//src/gpu/vk:GrVkInterface_hdr", 161 "//tools/gpu/vk:VkTestUtils_hdr", 162 ], 163) 164 165generated_cc_atom( 166 name = "VulkanWindowContext_src", 167 srcs = ["VulkanWindowContext.cpp"], 168 visibility = ["//:__subpackages__"], 169 deps = [ 170 ":VulkanWindowContext_hdr", 171 "//include/core:SkSurface_hdr", 172 "//include/gpu:GrBackendSemaphore_hdr", 173 "//include/gpu:GrBackendSurface_hdr", 174 "//include/gpu:GrDirectContext_hdr", 175 "//include/gpu/vk:GrVkExtensions_hdr", 176 "//include/gpu/vk:GrVkTypes_hdr", 177 "//src/core:SkAutoMalloc_hdr", 178 "//src/gpu/vk:GrVkImage_hdr", 179 "//src/gpu/vk:GrVkUtil_hdr", 180 ], 181) 182 183generated_cc_atom( 184 name = "WindowContext_hdr", 185 hdrs = ["WindowContext.h"], 186 visibility = ["//:__subpackages__"], 187 deps = [ 188 ":DisplayParams_hdr", 189 "//include/core:SkRefCnt_hdr", 190 "//include/core:SkSurfaceProps_hdr", 191 "//include/gpu:GrTypes_hdr", 192 ], 193) 194 195generated_cc_atom( 196 name = "WindowContext_src", 197 srcs = ["WindowContext.cpp"], 198 visibility = ["//:__subpackages__"], 199 deps = [ 200 ":WindowContext_hdr", 201 "//experimental/graphite/include:Context_hdr", 202 "//experimental/graphite/include:Recorder_hdr", 203 "//include/gpu:GrDirectContext_hdr", 204 ], 205) 206 207generated_cc_atom( 208 name = "Window_hdr", 209 hdrs = ["Window.h"], 210 visibility = ["//:__subpackages__"], 211 deps = [ 212 ":DisplayParams_hdr", 213 "//include/core:SkRect_hdr", 214 "//include/core:SkTypes_hdr", 215 "//include/private:SkTDArray_hdr", 216 "//tools/skui:InputState_hdr", 217 "//tools/skui:Key_hdr", 218 "//tools/skui:ModifierKey_hdr", 219 ], 220) 221 222generated_cc_atom( 223 name = "Window_src", 224 srcs = ["Window.cpp"], 225 visibility = ["//:__subpackages__"], 226 deps = [ 227 ":WindowContext_hdr", 228 ":Window_hdr", 229 "//include/core:SkCanvas_hdr", 230 "//include/core:SkSurface_hdr", 231 ], 232) 233