diff options
author | Unit 193 <32967979+unit193@users.noreply.github.com> | 2021-08-15 18:54:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 00:54:21 +0200 |
commit | 849cd010e8b30060893f0fa39ed2d7742aba6d11 (patch) | |
tree | 937ba5cdf841ae770849a44a840f6627ff847c53 /src/Makefile | |
parent | b1323cabae32a2b0a9a96d7f228c1257c6188058 (diff) | |
download | VeraCrypt-849cd010e8b30060893f0fa39ed2d7742aba6d11.tar.gz VeraCrypt-849cd010e8b30060893f0fa39ed2d7742aba6d11.zip |
Add compile-time toggleable support for application indicators, off by default. (#815)
This tries to figure out, via wx-config, if you're using GTK2 or GTK3
and uses the associated Ayatana library.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index e8cc2d68..2efcd98b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -95,6 +95,15 @@ ifeq "$(origin WXSTATIC)" "command line" endif endif +ifeq "$(origin INDICATOR)" "command line" + ifneq (,$(findstring gtk3,$(shell $(WX_CONFIG) --selected-config))) + INDICATOR_LIBRARY=ayatana-appindicator3-0.1 + else + INDICATOR_LIBRARY=ayatana-appindicator-0.1 + endif + export LIBS += $(shell pkg-config --libs $(INDICATOR_LIBRARY)) + C_CXX_FLAGS += $(shell pkg-config --cflags $(INDICATOR_LIBRARY)) -DHAVE_INDICATORS +endif #------ Release configuration ------ |