forked from Ciantic/VirtualDesktopAccessor
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setup cbindgen to generate C Header
Inspired by PR at: Ciantic#54
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,7 @@ | |
|
||
/examples | ||
|
||
# cbindgen generated header file: | ||
VirtualDesktopAccessor.h | ||
|
||
_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# See https://github.com/eqrion/cbindgen/blob/master/docs.md#cbindgentoml | ||
# for detailed documentation of every option here. | ||
|
||
# Initial version of this file is from https://github.com/Ciantic/VirtualDesktopAccessor/pull/54 | ||
# Use this config to generate a C header by: | ||
# - Installing cbindgen: cargo install cbindgen | ||
# - Running it inside the "dll" folder: cbindgen --config cbindgen.toml --crate dll --output VirtualDesktopAccessor.h | ||
|
||
language = "C++" | ||
|
||
############## Options for Wrapping the Contents of the Header ################# | ||
|
||
# header = "/* Text to put at the beginning of the generated file. Probably a license. */" | ||
# trailer = "/* Text to put at the end of the generated file */" | ||
include_guard = "VirtualDesktopAccessor_h" | ||
#pragma_once = true | ||
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */" | ||
include_version = true | ||
namespace = "VirtualDesktopAccessor" | ||
sys_includes = ["cstdint", "Windows.h"] | ||
includes = [] | ||
no_includes = true | ||
after_includes = "" | ||
|
||
documentation_length = "short" | ||
line_endings = "CRLF" # also "CR", "CRLF", "Native" | ||
|
||
style = "both" | ||
cpp_compat = true | ||
|
||
[defines] | ||
|
||
[export] | ||
include = [] | ||
exclude = ["Lazy", "HWND", "GUID"] | ||
|
||
[fn] | ||
prefix = "__declspec(dllimport)" | ||
|
||
[parse] | ||
parse_deps = false | ||
clean = true | ||
|
||
[parse.expand] | ||
all_features = true | ||
default_features = true | ||
features = [] |