2017-05-08 08:31:20 +03:00
|
|
|
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.
|
2017-07-06 01:16:44 +03:00
|
|
|
* To generate this file:
|
2018-03-12 23:38:10 +03:00
|
|
|
* 1. Get the latest cbindgen using `cargo install --force cbindgen`
|
2018-02-21 08:03:31 +03:00
|
|
|
* a. Alternatively, you can clone `https://github.com/eqrion/cbindgen` and use a tagged release
|
2018-03-12 23:38:10 +03:00
|
|
|
* 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --lockfile Cargo.lock --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
|
2017-07-06 01:16:44 +03:00
|
|
|
*/"""
|
2017-05-08 08:31:20 +03:00
|
|
|
include_version = true
|
|
|
|
braces = "SameLine"
|
|
|
|
line_length = 100
|
|
|
|
tab_width = 2
|
|
|
|
language = "C++"
|
2017-06-28 02:20:36 +03:00
|
|
|
namespaces = ["mozilla", "wr"]
|
2017-05-08 08:31:20 +03:00
|
|
|
|
2018-10-22 01:59:25 +03:00
|
|
|
[export]
|
2019-03-07 02:01:11 +03:00
|
|
|
item_types = ["globals", "enums", "structs", "unions", "typedefs", "opaque", "functions", "constants"]
|
2018-10-22 01:59:25 +03:00
|
|
|
|
2017-07-06 01:16:44 +03:00
|
|
|
[parse]
|
|
|
|
parse_deps = true
|
2019-01-12 18:49:39 +03:00
|
|
|
include = ["log", "euclid", "webrender", "webrender_api"]
|
2017-07-06 01:16:44 +03:00
|
|
|
|
2017-05-08 08:31:20 +03:00
|
|
|
[fn]
|
|
|
|
args = "Vertical"
|
|
|
|
rename_args = "GeckoCase"
|
|
|
|
|
|
|
|
[struct]
|
2019-12-09 00:09:37 +03:00
|
|
|
associated_constants_in_body = true
|
2017-05-08 08:31:20 +03:00
|
|
|
derive_eq = true
|
2020-10-08 12:24:36 +03:00
|
|
|
derive_ostream = true
|
2017-05-08 08:31:20 +03:00
|
|
|
|
|
|
|
[enum]
|
|
|
|
add_sentinel = true
|
2018-05-04 03:38:37 +03:00
|
|
|
derive_helper_methods = true
|
2020-10-08 12:24:36 +03:00
|
|
|
derive_ostream = true
|
2017-10-05 22:26:01 +03:00
|
|
|
|
2019-03-07 02:01:11 +03:00
|
|
|
[macro_expansion]
|
|
|
|
bitflags = true
|
|
|
|
|
2017-10-05 22:26:01 +03:00
|
|
|
[defines]
|
|
|
|
"target_os = windows" = "XP_WIN"
|
|
|
|
"target_os = macos" = "XP_MACOSX"
|
2018-11-09 05:57:29 +03:00
|
|
|
"target_os = android" = "ANDROID"
|
2020-02-19 21:34:51 +03:00
|
|
|
|
|
|
|
[export.rename]
|
|
|
|
"ThinVec" = "nsTArray"
|