buildable_targets = [ target for target in targets if set(target.deps).issubset(allowed_dependencies) and all([src.endswith('.c') for src in target.src])]
buildable_targets = [ target for target in targets if set(target.deps).issubset(allowed_dependencies) and all([src.endswith('.c') for src in target.src])]
test_targets = [ target for target in buildable_targets if target.name.endswith('_test') ]
c_test_targets = [ target for target in buildable_targets if target.build == 'test' and not target.language == 'c++' ]
cxx_test_targets = [ target for target in buildable_targets if target.build == 'test' and target.language == 'c++' ]
%>\
%>\
# NMake file to build secondary gRPC targets on Windows.
# NMake file to build secondary gRPC targets on Windows.
# Use grpc.sln to solution to build the gRPC libraries.
# Use grpc.sln to solution to build the gRPC libraries.
@ -62,26 +63,21 @@ grpc_test_util:
$(OUT_DIR):
$(OUT_DIR):
mkdir $(OUT_DIR)
mkdir $(OUT_DIR)
buildtests: \
buildtests: buildtests_c buildtests_cxx
% for target in test_targets:
buildtests_c: \
% for target in c_test_targets:
${target.name}.exe \
${target.name}.exe \
% endfor
% endfor
echo All tests built.
echo All tests built.
test: \
buildtests_cxx: \
% for target in test_targets:
% for target in cxx_test_targets:
${target.name} \
${target.name}.exe \
% endfor
echo All tests ran.
test_gpr: \
% for target in [ tgt for tgt in test_targets if tgt.name.startswith('gpr_')]: