Skip to content

Commit

Permalink
fix copy_dlls make target when there's only a debug build, (#6046)
Browse files Browse the repository at this point in the history
 fixes #6045
  • Loading branch information
sphaero authored and arturoc committed Jul 31, 2018
1 parent f09a37d commit 861ac36
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ PLATFORM_PROJECT_RELEASE_BIN_NAME=$(APPNAME).exe
PLATFORM_PROJECT_RELEASE_TARGET = bin/$(PLATFORM_PROJECT_RELEASE_BIN_NAME)
PLATFORM_PROJECT_DEBUG_TARGET = bin/$(PLATFORM_PROJECT_DEBUG_BIN_NAME)
PLATFORM_RUN_COMMAND = cd bin;./$(BIN_NAME)
ifneq ("$(wildcard $(PLATFORM_PROJECT_RELEASE_TARGET))","")
PLATFORM_PROJECT_EXISTING_TARGET=$(PLATFORM_PROJECT_RELEASE_TARGET)
else
PLATFORM_PROJECT_EXISTING_TARGET=$(PLATFORM_PROJECT_DEBUG_TARGET)
endif


##########################################################################################
# PLATFORM DEFINES
Expand Down Expand Up @@ -282,7 +288,7 @@ PLATFORM_LIBRARY_SEARCH_PATHS =
copy_dlls:
@echo " copying dlls to bin"

@ntldd --recursive $(PLATFORM_PROJECT_RELEASE_TARGET) | grep -F "mingw32" | cut -d">" -f2 |cut -d" " -f2 >dlllist
@ntldd --recursive $(PLATFORM_PROJECT_EXISTING_TARGET) | grep -F "mingw32" | cut -d">" -f2 |cut -d" " -f2 >dlllist
@while read -r dll; do \
test -e "$$dll" && cp "$$dll" ./bin; \
done <dlllist
Expand Down

0 comments on commit 861ac36

Please sign in to comment.