"include/svg",
"include/utils",
"include/utils/mac",
+ skia_vulkan_headers_path,
]
# Skia public API, generally provided by :skia.
libs = []
lib_dirs = []
if (skia_use_vulkan) {
- include_dirs += [ skia_vulkan_headers_path ]
-
if (skia_vulkan_sdk != "" && !is_android) {
if (is_win) {
lib_dirs += [
public_configs = [ ":skia.h_config" ]
skia_h = "$target_gen_dir/skia.h"
script = "gn/find_headers.py"
- args = [ rebase_path(skia_h, root_build_dir) ] +
- rebase_path(skia_public_includes)
+ if (skia_use_vulkan) {
+ use_vulkan_string = "True"
+ } else {
+ use_vulkan_string = "False"
+ }
+ args = [
+ rebase_path(skia_h, root_build_dir),
+ use_vulkan_string,
+ ] + rebase_path(skia_public_includes - [ skia_vulkan_headers_path ])
depfile = "$skia_h.deps"
outputs = [
skia_h,
# very same mechanism Ninja uses to know which .h files affect which .cpp files.
skia_h = sys.argv[1]
-include_dirs = sys.argv[2:]
+use_vulkan = eval(sys.argv[2])
+include_dirs = sys.argv[3:]
blacklist = {
"GrGLConfig_chrome.h",
- "GrVkBackendContext.h",
- "GrVkDefines.h",
- "GrVkInterface.h",
- "GrVkTypes.h",
"SkFontMgr_fontconfig.h",
}
for directory in include_dirs:
for d, _, files in os.walk(directory):
for f in files:
- if f.endswith('.h') and f not in blacklist:
- headers.append(os.path.join(d,f))
+ if not d.endswith('vk') or use_vulkan:
+ if f.endswith('.h') and f not in blacklist:
+ headers.append(os.path.join(d,f))
headers.sort()
with open(skia_h, "w") as f: