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:
@@ -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 ------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user