Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
akiyosi committed Jun 8, 2024
1 parent 0f84a67 commit f1c1ece
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ endif

app: ## Build goneovim
@test -f ./editor/moc.go & $(GOQTMOC) desktop ./cmd/goneovim && \
go generate && \
$(GOQTDEPLOY) build desktop ./cmd/goneovim && \
go generate
ifneq ($(OSNAME),Darwin)
@rm -fr editor/objcbridge*
endif
@$(GOQTDEPLOY) build desktop ./cmd/goneovim && \
cp -pR runtime $(RUNTIME_DIR)
ifeq ($(OSNAME),Darwin)
@/usr/libexec/PlistBuddy -c "Add :CFBundleVersion string $(VERSION_HASH)" "./cmd/goneovim/deploy/darwin/goneovim.app/Contents/Info.plist" && \
Expand Down Expand Up @@ -75,8 +78,11 @@ deps: ## Get dependent libraries.
@$(GOQTMOC) desktop ./cmd/goneovim

test: ## Test goneovim
@go generate && \
go test ./editor
@go generate
ifneq ($(OSNAME),Darwin)
@rm -fr editor/objcbridge*
endif
@go test ./editor

clean: ## Delete pre-built application binaries and Moc files.
@rm -fr cmd/goneovim/deploy/*
Expand Down
3 changes: 0 additions & 3 deletions editor/objcbridge.h
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#ifdef __APPLE__
void SetMyApplicationDelegate();
#else
#endif
3 changes: 0 additions & 3 deletions editor/objcbridge.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#ifdef __APPLE__
#import <Cocoa/Cocoa.h>

char *cFilename;
Expand Down Expand Up @@ -29,5 +28,3 @@ void SetMyApplicationDelegate() {
app.delegate = [[MyApplicationDelegate alloc] init];
[app activateIgnoringOtherApps:YES]; // make application foreground
}
#else
#endif

0 comments on commit f1c1ece

Please sign in to comment.