mirror of https://github.com/bsnes-emu/bsnes.git
Makefile: Find SDL2.dll
This commit is contained in:
parent
6e8567eadc
commit
05ba352f2f
7
Makefile
7
Makefile
|
@ -235,12 +235,9 @@ $(OBJ)/%.res: %.rc
|
||||||
%.o: %.res
|
%.o: %.res
|
||||||
cvtres /OUT:"$@" $^
|
cvtres /OUT:"$@" $^
|
||||||
|
|
||||||
# We must provide SDL2.dll with the Windows port. This is an AWFUL HACK to find it.
|
# We must provide SDL2.dll with the Windows port.
|
||||||
SPACE :=
|
|
||||||
SPACE +=
|
|
||||||
$(BIN)/SDL/SDL2.dll:
|
$(BIN)/SDL/SDL2.dll:
|
||||||
@$(eval POTENTIAL_MATCHES := $(subst @@@," ",$(patsubst %,%/SDL2.dll,$(subst ;,$(SPACE),$(subst $(SPACE),@@@,$(lib))))))
|
@$(eval MATCH := $(shell where $$LIB:SDL2.dll))
|
||||||
@$(eval MATCH := $(shell ls $(POTENTIAL_MATCHES) 2> NUL | head -n 1))
|
|
||||||
cp "$(MATCH)" $@
|
cp "$(MATCH)" $@
|
||||||
|
|
||||||
# Tester
|
# Tester
|
||||||
|
|
Loading…
Reference in New Issue