stb image in its own compilation unit
This commit is contained in:
parent
7c0f56f497
commit
a091a542f3
3 changed files with 5 additions and 4 deletions
3
Makefile
3
Makefile
|
|
@ -5,10 +5,11 @@ LDLIBS+=$(shell pkg-config --libs $(LIBS)) -lwayland-cursor
|
||||||
WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
|
WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
|
||||||
WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
|
WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
|
||||||
|
|
||||||
glonkers: wlr-layer-shell-unstable-v1-protocol.o xdg-shell-protocol.o renderer.o wayland.o
|
glonkers: wlr-layer-shell-unstable-v1-protocol.o xdg-shell-protocol.o renderer.o wayland.o stb_image.o
|
||||||
glonkers.o: wlr-layer-shell-unstable-v1-protocol.h xdg-shell-protocol.h renderer.h wayland.h
|
glonkers.o: wlr-layer-shell-unstable-v1-protocol.h xdg-shell-protocol.h renderer.h wayland.h
|
||||||
renderer.o: renderer.h
|
renderer.o: renderer.h
|
||||||
wayland.o: wayland.h
|
wayland.o: wayland.h
|
||||||
|
stb_image.o: stb_image.h
|
||||||
|
|
||||||
xdg-shell-protocol.h:
|
xdg-shell-protocol.h:
|
||||||
$(WAYLAND_SCANNER) client-header $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
|
$(WAYLAND_SCANNER) client-header $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,6 @@
|
||||||
#include "wayland.h"
|
#include "wayland.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
|
||||||
#include "stb_image.h"
|
|
||||||
|
|
||||||
void print_help(FILE *channel, char *bin_path) {
|
void print_help(FILE *channel, char *bin_path) {
|
||||||
fprintf(channel, "Usage: %s [OPTION]... [PATH]\n", bin_path);
|
fprintf(channel, "Usage: %s [OPTION]... [PATH]\n", bin_path);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
stb_image.c
Normal file
3
stb_image.c
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
|
#include "stb_image.h"
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue