1
0

Initial commit

This commit is contained in:
2023-08-29 02:06:18 +00:00
commit 05b756efde
25 changed files with 59216 additions and 0 deletions

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
TARGET = xPlayer
BUILD := build
SRCS := src imgui
VPATH := $(foreach dir,$(SRCS),$(CURDIR)/$(dir))
CFILES := $(foreach dir,$(SRCS),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES := $(foreach dir,$(SRCS),$(notdir $(wildcard $(dir)/*.cpp)))
OFILES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o)
INCLUDES := -I$(CURDIR)/imgui
CFLAGS := -O2 -Wall $(INCLUDES) `pkg-config --cflags mpv`
CXXFLAGS := $(CFLAGS) -std=c++17
LDFLAGS := `pkg-config mpv --libs` -ld3d11 -ld3dcompiler -ldwmapi -lgdi32
all: $(TARGET)
$(TARGET): $(OFILES)
$(CXX) -o $@ $^ $(LDFLAGS)
run: all
@./$(TARGET)
.PHONY: clean
clean:
$(RM) $(OFILES) $(TARGET)