mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-19 17:38:28 +00:00
Disable platform-specific default functions
This commit is contained in:
parent
607a0c7df4
commit
21cc1af4ce
@ -15,9 +15,3 @@ travis-ci = { repository = "Gekkio/imgui-rs" }
|
|||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
cc = "1.0"
|
cc = "1.0"
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
|
||||||
core-foundation = "0.6"
|
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
|
||||||
winapi = { version = "0.3", features = ["imm"] }
|
|
||||||
|
|||||||
@ -25,6 +25,10 @@ fn assert_file_exists(path: &str) -> io::Result<()> {
|
|||||||
fn main() -> io::Result<()> {
|
fn main() -> io::Result<()> {
|
||||||
let mut build = cc::Build::new();
|
let mut build = cc::Build::new();
|
||||||
build.cpp(true);
|
build.cpp(true);
|
||||||
|
// Disabled due to linking issues
|
||||||
|
build
|
||||||
|
.define("IMGUI_DISABLE_WIN32_FUNCTIONS", None)
|
||||||
|
.define("IMGUI_DISABLE_OSX_FUNCTIONS", None);
|
||||||
for path in &CPP_FILES {
|
for path in &CPP_FILES {
|
||||||
assert_file_exists(path)?;
|
assert_file_exists(path)?;
|
||||||
build.file(path);
|
build.file(path);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user