fix(inject): attempt setting explicit coregraphics dependency to fix compilation on macOS 11.6

This commit is contained in:
Federico Terzi 2021-11-21 20:57:05 +01:00
parent 20cfb9cb3b
commit 57b2f194e5
2 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ fn cc_config() {
println!("cargo:rustc-link-lib=dylib=c++"); println!("cargo:rustc-link-lib=dylib=c++");
println!("cargo:rustc-link-lib=static=espansoinject"); println!("cargo:rustc-link-lib=static=espansoinject");
println!("cargo:rustc-link-lib=framework=Cocoa"); println!("cargo:rustc-link-lib=framework=Cocoa");
println!("cargo:rustc-link-lib=framework=CoreGraphics");
} }
fn main() { fn main() {

View File

@ -20,6 +20,7 @@
#include "native.h" #include "native.h"
#include <string.h> #include <string.h>
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#include <vector> #include <vector>
// Events dispatched by espanso are "marked" with a custom location // Events dispatched by espanso are "marked" with a custom location