1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

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.
This commit is contained in:
Unit 193
2021-08-15 18:54:21 -04:00
committed by GitHub
parent b1323cabae
commit 849cd010e8
4 changed files with 99 additions and 1 deletions

View File

@@ -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 ------