mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
include/: refactor header files more
This commit is contained in:
parent
53266a0d5a
commit
4d1363dcae
32 changed files with 130 additions and 78 deletions
|
|
@ -1,4 +1,4 @@
|
|||
hex-color-average: hex-color-average.o
|
||||
|
||||
clean:
|
||||
rm -f hex-color-average
|
||||
rm -f hex-color-average *.o
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "rcxml.h"
|
||||
#include "config/rcxml.h"
|
||||
#include "common/buf.h"
|
||||
|
||||
struct rcxml rc = { 0 };
|
||||
|
|
|
|||
|
|
@ -1,8 +1,23 @@
|
|||
CFLAGS = -g -Wall -Wextra -pedantic -std=c11
|
||||
CFLAGS += -I../../include/
|
||||
CFLAGS += `pkg-config --cflags glib-2.0`
|
||||
ASAN_FLAGS = -O0 -fsanitize=address -fno-common -fno-omit-frame-pointer -rdynamic
|
||||
CFLAGS += $(ASAN_FLAGS)
|
||||
LDFLAGS += $(ASAN_FLAGS) -fuse-ld=gold
|
||||
LDFLAGS += `pkg-config --cflags --libs glib-2.0 wlroots wayland-server`
|
||||
LDFLAGS += -DWLR_USE_UNSTABLE
|
||||
|
||||
SRCS = \
|
||||
theme-helper.c \
|
||||
../../src/theme/theme.c \
|
||||
../../src/theme/theme-dir.c
|
||||
|
||||
all:
|
||||
gcc $(CFLAGS) -o theme-helper theme-helper.c ../../src/theme/theme.c $(LDFLAGS)
|
||||
gcc $(CFLAGS) -o theme-helper $(SRCS) $(LDFLAGS)
|
||||
|
||||
|
||||
test:
|
||||
XDG_DATA_HOME=../../data ./theme-helper labwc-default
|
||||
|
||||
clean:
|
||||
rm -f theme-helper *.o
|
||||
|
|
|
|||
|
|
@ -1,13 +1,23 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../../include/theme.h"
|
||||
#include "theme/theme.h"
|
||||
|
||||
struct theme theme = { 0 };
|
||||
|
||||
int main()
|
||||
static void usage(const char *application)
|
||||
{
|
||||
theme_read("../../data/themerc");
|
||||
printf("Usage: %s <theme-name>\n", application);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc < 2)
|
||||
usage(argv[0]);
|
||||
theme_read(argv[1]);
|
||||
|
||||
printf("window_active_title_bg_color = ");
|
||||
for (int i=0; i < 4; i++)
|
||||
printf("%.2f; ", theme.window_active_title_bg_color[i]);
|
||||
printf("\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue