From 57b2f194e5464884fd703cd9c2a9b0b83910c3c4 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 21 Nov 2021 20:57:05 +0100 Subject: [PATCH] fix(inject): attempt setting explicit coregraphics dependency to fix compilation on macOS 11.6 --- espanso-inject/build.rs | 1 + espanso-inject/src/mac/native.mm | 1 + 2 files changed, 2 insertions(+) diff --git a/espanso-inject/build.rs b/espanso-inject/build.rs index 16bd1a4..702678d 100644 --- a/espanso-inject/build.rs +++ b/espanso-inject/build.rs @@ -64,6 +64,7 @@ fn cc_config() { println!("cargo:rustc-link-lib=dylib=c++"); println!("cargo:rustc-link-lib=static=espansoinject"); println!("cargo:rustc-link-lib=framework=Cocoa"); + println!("cargo:rustc-link-lib=framework=CoreGraphics"); } fn main() { diff --git a/espanso-inject/src/mac/native.mm b/espanso-inject/src/mac/native.mm index 7a8e27f..cecbb56 100644 --- a/espanso-inject/src/mac/native.mm +++ b/espanso-inject/src/mac/native.mm @@ -20,6 +20,7 @@ #include "native.h" #include #import +#import #include // Events dispatched by espanso are "marked" with a custom location