initial commit, gtk/appindicator implementation draft

This commit is contained in:
Serge A. Zaitsev
2017-01-07 21:08:46 +02:00
commit f027ece193
4 changed files with 146 additions and 0 deletions

28
Makefile Normal file
View File

@@ -0,0 +1,28 @@
ifeq ($(OS),Windows_NT)
TRAY_CFLAGS :=
TRAY_LDFLAGS :=
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
TRAY_CFLAGS := -DTRAY_APPINDICATOR=1 $(shell pkg-config --cflags appindicator3-0.1)
TRAY_LDFLAGS := $(shell pkg-config --libs appindicator3-0.1)
endif
ifeq ($(UNAME_S),Darwin)
TRAY_CFLAGS := -DTRAY_COCOA=1 -x objective-c -framework Cocoa $< -o $@
TRAY_LDFLAGS :=
endif
endif
CFLAGS := -g -Wall $(TRAY_CFLAGS)
LDFLAGS := -g $(TRAY_LDFLAGS)
all: example
example: example.o
$(CC) $^ $(LDFLAGS) -o $@
example.o: example.c tray.h
clean:
rm -f example.o example example.exe