1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![allow(non_camel_case_types, non_upper_case_globals)]

#[cfg(feature = "gen")]
include!(concat!(
    env!("OUT_DIR"),
    "/gen_",
    env!("LIBINPUT_VERSION_STR"),
    ".rs"
));

#[cfg(not(feature = "gen"))]
include!(concat!(
    "platforms/",
    env!("LIBINPUT_TARGET_OS"),
    "/",
    env!("LIBINPUT_TARGET_ARCH"),
    "/gen_",
    env!("LIBINPUT_VERSION_STR"),
    ".rs"
));

#[link(name = "input")]
extern "C" {}