Skip to content

Commit

Permalink
fixed include directives
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithDHedger committed Jan 17, 2025
1 parent 5bb9bf9 commit d52adff
Show file tree
Hide file tree
Showing 17 changed files with 43 additions and 13 deletions.
7 changes: 7 additions & 0 deletions LFSTray/LFSTray/flagsandlibs
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@

AM_CPPFLAGS = -I$(top_srcdir) \
$(X11_CFLAGS) \
$(XFT_CFLAGS) \
$(CAIRO_CFLAGS) \
$(LIBGLIB_CFLAGS)
$(LFSTK_CFLAGS)
-DPREFIX=\""${prefix}\"" \
-DDATADIR=\""${pkgdatadir}"\" \
-DSYSCONFDIR=\""${sysconfdir}/${PACKAGE}"\" \
-DLIBDIR=\""${libdir}/${PACKAGE}"\"

LIBS = $(X11_LIBS) \
$(XPM_LIBS) \
$(XFT_LIBS) \
$(LIBGLIB_LIBS) \
$(LFSTK_LIBS) \
-lm \
-lstdc++fs
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/embed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <unistd.h>

#include "embed.h"
#include "common.h"
#include "globals.h"
#include "icons.h"
#include "settings.h"
#include "tray.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/icons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <assert.h>

#include "icons.h"
#include "common.h"
#include "globals.h"
#include "layout.h"
#include "list.h"
#include "tray.h"
Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* interface
* -------------------------------*/

#include "common.h"
#include "globals.h"
#include "image.h"

/***** Forward declarations *****/
Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <X11/Xutil.h>

#include "config.h"
#include "common.h"
#include "globals.h"
#include "icons.h"
#include "layout.h"
#include "list.h"
Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#include "config.h"

#include "common.h"
#include "globals.h"
#include "embed.h"
#include "icons.h"
#include "layout.h"
Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <unistd.h>

#include "config.h"
#include "common.h"
#include "globals.h"
#include "layout.h"
#include "list.h"
#include "settings.h"
Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/tray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#include <unistd.h>

#include "common.h"
#include "globals.h"
#include "embed.h"
#include "icons.h"
#include "image.h"
Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/tray.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#include <limits.h>

#include "common.h"
#include "globals.h"
#include "config.h"
#include "icons.h"

Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/wmh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <X11/Xatom.h>
#include <X11/Xmd.h>

#include "common.h"
#include "globals.h"
#include "wmh.h"
#include "xutils.h"

Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/xembed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <X11/Xmd.h>
#include <X11/Xutil.h>

#include "common.h"
#include "globals.h"
#include "wmh.h"
#include "xembed.h"
#include "xutils.h"
Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/xutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <string.h>

#include "xutils.h"
#include "common.h"
#include "globals.h"
#include "xembed.h"

static int trapped_x11_error_code=0;
Expand Down
2 changes: 1 addition & 1 deletion LFSTray/LFSTray/src/xutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <X11/X.h>
#include <X11/Xatom.h>

#include "common.h"
#include "globals.h"
#include "icons.h"

/* Returns 1 if connection is active,0 otherwise */
Expand Down
2 changes: 2 additions & 0 deletions LFSTray/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ https://github.com/kolbusa/stalonetray
make
make install
```

You dont need to install to try it out just run lfstray from the app folder.
###
**QUICK USE:**
lfstray -h
Expand Down
3 changes: 2 additions & 1 deletion LFSTray/TODO
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
LOADS!

rearange files - DONE
convert to c++
convert to c++ - STARTED ...

integerate into lfstoolkit lib
redo settings
add prefs app
Expand Down
20 changes: 20 additions & 0 deletions LFSTray/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,28 @@ PKG_CHECK_MODULES(XPM, $XPM_MODULES,AC_DEFINE(XPM_SUPPORTED,1,[enable XPM backgr
AC_SUBST(XPM_CFLAGS)
AC_SUBST(XPM_LIBS)

XFT_MODULES="xft >= 2.3.1"
PKG_CHECK_MODULES(XFT, $XFT_MODULES)
AC_SUBST(XFT_CFLAGS)
AC_SUBST(XFT_LIBS)

dnl ============= X11 ================

CAIRO_MODULES="cairo >= 1.12.16"
PKG_CHECK_MODULES(CAIRO, $CAIRO_MODULES)
AC_SUBST(CAIRO_LIBS)
AC_SUBST(CAIRO_CFLAGS)

LIBGLIB_MODULES="glib-2.0 >= 2.60.0"
PKG_CHECK_MODULES(LIBGLIB, $LIBGLIB_MODULES)
AC_SUBST(LIBGLIB_LIBS)
AC_SUBST(LIBGLIB_CFLAGS)

LFSTK_MODULES="lfstk >= 0.6.1"
PKG_CHECK_MODULES(LFSTK, $LFSTK_MODULES)
AC_SUBST(LFSTK_LIBS)
AC_SUBST(LFSTK_CFLAGS)

AC_CONFIG_FILES([Makefile LFSTray/app/Makefile])
AC_OUTPUT

0 comments on commit d52adff

Please sign in to comment.