gfx/webrender_bindings/cbindgen.toml
author Andrea Marchesini <amarchesini@mozilla.com>
Tue, 30 Jan 2018 10:12:26 +0100
changeset 453935 a21f55ba5530649e029b615c835eaffed7799e28
parent 449757 c5f975c4bfc7834fce3677a9e2547168bef53cd3
child 457258 bb347a5cbc8c8023bb8afb8c8e1002550a590990
permissions -rw-r--r--
Bug 1413112 - Separate files for WorkerDebugger, r=bkelly

header = """/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
 * To generate this file:
 *   1. Get the latest cbindgen using `cargo install --force cbindgen`
 *      a. Alternatively, you can clone `https://github.com/rlhunt/cbindgen` and use a tagged release
 *   2. Run `rustup run nightly cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
 */"""
include_version = true
braces = "SameLine"
line_length = 100
tab_width = 2
language = "C++"
namespaces = ["mozilla", "wr"]

[parse]
parse_deps = true
include = ["log", "webrender", "webrender_api"]
expand = ["euclid"]

[fn]
prefix = "WR_INLINE"
postfix = "WR_FUNC"
args = "Vertical"
rename_args = "GeckoCase"

[struct]
derive_eq = true

[enum]
add_sentinel = true

[defines]
"target_os = windows" = "XP_WIN"
"target_os = macos" = "XP_MACOSX"