Commit 4fc51f5a authored by Nigel Tao's avatar Nigel Tao Committed by Commit Bot

Add //third_party/wuffs/config.gni

This creates a common place for current and future use_wuffs_xxx_parser
GN args.

Change-Id: I8e08522cab23a7bded2206f04cda916cca450b82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2299688Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Commit-Queue: Nigel Tao <nigeltao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789407}
parent 43a40f8a
......@@ -28,6 +28,8 @@
# targets' configuration or visibility, require consulting ENG_REVIEW_OWNERS,
# as per the "adding_to_third_party.md" link above.
import("//third_party/wuffs/config.gni")
static_library("wuffs") {
defines = [
# Copy/pasting from "src/release/c/wuffs-*.c":
......@@ -65,12 +67,17 @@ static_library("wuffs") {
# ENG_REVIEW_OWNERS" comment at the top of this file.
"WUFFS_CONFIG__MODULES",
"WUFFS_CONFIG__MODULE__BASE__CORE",
"WUFFS_CONFIG__MODULE__BASE__INTERFACES",
"WUFFS_CONFIG__MODULE__BASE__PIXCONV",
"WUFFS_CONFIG__MODULE__GIF",
"WUFFS_CONFIG__MODULE__LZW",
]
if (use_wuffs_gif_parser) {
defines += [
"WUFFS_CONFIG__MODULE__BASE__INTERFACES",
"WUFFS_CONFIG__MODULE__BASE__PIXCONV",
"WUFFS_CONFIG__MODULE__GIF",
"WUFFS_CONFIG__MODULE__LZW",
]
}
# Do not modify this list without considering the "consult ENG_REVIEW_OWNERS"
# comment at the top of this file.
visibility = [ "//skia" ]
......
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
use_wuffs_gif_parser = false
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment