build: move fontconfig constants out of src
This commit is contained in:
parent
f5bcfaf73c
commit
854e0474be
2 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ macro_rules! cenum {
|
|||
}
|
||||
}
|
||||
|
||||
#[path = "../src/fontconfig/consts.rs"]
|
||||
#[path = "fontconfig_consts.rs"]
|
||||
mod fontconfig;
|
||||
|
||||
fn get_target() -> repc::Target {
|
||||
|
|
|
|||
20
build/fontconfig_consts.rs
Normal file
20
build/fontconfig_consts.rs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#![allow(dead_code)]
|
||||
|
||||
cenum! {
|
||||
_FcMatchKind, FC_MATCH_KINDS;
|
||||
|
||||
FC_MATCH_PATTERN = 0,
|
||||
FC_MATCH_FONT = 1,
|
||||
FC_MATCH_SCAN = 2,
|
||||
FC_MATCH_KIND_END = 3,
|
||||
}
|
||||
|
||||
cenum! {
|
||||
_FcResult, FC_RESULTS;
|
||||
|
||||
FC_RESULT_MATCH = 0,
|
||||
FC_RESULT_NO_MATCH = 1,
|
||||
FC_RESULT_TYPE_MISMATCH = 2,
|
||||
FC_RESULT_NO_ID = 3,
|
||||
FC_RESULT_OUT_OF_MEMORY = 4,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue