Skip to content

Commit

Permalink
polishing of Grpc.mak
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Feb 13, 2015
1 parent eca6547 commit a2ad558
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 234 deletions.
12 changes: 9 additions & 3 deletions templates/vsprojects/vs2013/Grpc.mak.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@

OUT_DIR=test_bin

CC=cl.exe
LINK=link.exe
CFLAGS=/c /I..\.. /I..\..\include /nologo /Z7 /W3 /WX- /sdl /D WIN32 /D _LIB /D _USE_32BIT_TIME_T /D _UNICODE /D UNICODE /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Gd /TC /analyze-
LFLAGS=/DEBUG /INCREMENTAL /NOLOGO /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86
LIBS=

gpr_test_util:
MSBuild.exe gpr_test_util.vcxproj /p:Configuration=Debug

Expand Down Expand Up @@ -45,20 +51,20 @@ ${target.name} \
% for target in buildable_targets:
${target.name}.exe: grpc_test_util
echo Building ${target.name}
cl.exe /c /I..\.. /I..\..\include /nologo /Z7 /W3 /WX- /sdl /D WIN32 /D _LIB /D _USE_32BIT_TIME_T /D _UNICODE /D UNICODE /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Gd /TC /analyze- /Fo:$(OUT_DIR)\ \
$(CC) $(CFLAGS) /Fo:$(OUT_DIR)\ \
%for source in target.src:
..\..\${to_windows_path(source)} \
%endfor

link.exe /DEBUG /OUT:"$(OUT_DIR)\${target.name}.exe" /INCREMENTAL /NOLOGO /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86 \
$(LINK) $(LFLAGS) /OUT:"$(OUT_DIR)\${target.name}.exe" \
%for dep in target.deps:
Debug\${dep}.lib \
%endfor
$(LIBS) \
%for source in target.src:
$(OUT_DIR)\${re.search('([^/]+)\.c$', source).group(1)}.obj \
%endfor


${target.name}: ${target.name}.exe
echo Running ${target.name}
$(OUT_DIR)\${target.name}.exe
Expand Down
Loading

0 comments on commit a2ad558

Please sign in to comment.