summaryrefslogtreecommitdiff
path: root/templates/nmake.mpd
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2015-09-18 10:12:33 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2015-09-18 10:12:33 +0200
commitffb593baa7812e8ce90f710f55c2f5c46ddaeb50 (patch)
treefb18a61d1cef25ab237f959d4d8ed402ae70492d /templates/nmake.mpd
parent97f0cd27c61af23c5c320695112165ffacbfd601 (diff)
downloadMPC-ffb593baa7812e8ce90f710f55c2f5c46ddaeb50.tar.gz
Make sure we don't add duplicate source files
Diffstat (limited to 'templates/nmake.mpd')
-rw-r--r--templates/nmake.mpd6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/nmake.mpd b/templates/nmake.mpd
index 7cc9b469..a8a9f40d 100644
--- a/templates/nmake.mpd
+++ b/templates/nmake.mpd
@@ -78,7 +78,7 @@ DEPEND :
@echo http://www.ociweb.com/products/mpc/down.html
!ELSE
<%if(source_files || pch_source)%>
- $(DEPGEN)<%foreach(includes)%> -I"<%include%>"<%endfor%><%foreach(defines cpu_defines common_defines platform_defines macros)%> -D<%define%><%endfor%><%if(unicode)%> -DUNICODE -D_UNICODE<%endif%><%if(type_is_dynamic)%><%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%><%endif%><%if(need_staticflags)%><%foreach(staticflags)%> -D<%staticflag%><%endfor%><%endif%><%if(pch_header)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%> -f "<%noextension(project_file)%>.dep"<%foreach(source_files)%> "<%source_file%>"<%endfor%><%if(pch_source)%> "<%pch_source%>"<%endif%>
+ $(DEPGEN)<%foreach(includes)%> -I"<%include%>"<%endfor%><%foreach(defines cpu_defines common_defines platform_defines macros)%> -D<%define%><%endfor%><%if(unicode)%> -DUNICODE -D_UNICODE<%endif%><%if(type_is_dynamic)%><%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%><%endif%><%if(need_staticflags)%><%foreach(staticflags)%> -D<%staticflag%><%endfor%><%endif%><%if(pch_header)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%> -f "<%noextension(project_file)%>.dep"<%foreach(uniq(source_files))%> "<%source_file%>"<%endfor%><%if(pch_source)%> "<%pch_source%>"<%endif%>
<%else%>
-@rem
<%endif%>
@@ -159,7 +159,7 @@ LINK32_OBJS= \
<%if(pch_source)%>
"$(INTDIR)\<%transdir(pch_source)%><%basenoextension(pch_source)%>.obj" \
<%endif%>
-<%foreach(source_files)%>
+<%foreach(uniq(source_files))%>
"$(INTDIR)\<%transdir(source_file)%><%basenoextension(source_file)%>.obj"<%fornotlast(" \\")%>
<%endfor%>
@@ -258,7 +258,7 @@ CPP_SWITCHES=<%if(TreatWChar_tAsBuiltInType)%>/Zc:wchar_t <%endif%>/nologo <%if(
<%endif%>
<%if(exename || sharedname || staticname)%>
-<%foreach(source_files)%>
+<%foreach(uniq(source_files))%>
SOURCE="<%source_file%>"
"$(INTDIR)\<%transdir(source_file)%><%basenoextension(source_file)%>.obj" : $(SOURCE)