build.py
changeset 116 d4ee28e845f3
parent 115 5435512761ef
child 117 a14f1fadc719
equal deleted inserted replaced
115:5435512761ef 116:d4ee28e845f3
   345 		variant.env = gcov_env
   345 		variant.env = gcov_env
   346 		variant.build_root = os.path.join (self.build_dir, 'gcov')
   346 		variant.build_root = os.path.join (self.build_dir, 'gcov')
   347 		builders = self.gen_mod_dep (variant)
   347 		builders = self.gen_mod_dep (variant)
   348 		for builder in builders:
   348 		for builder in builders:
   349 			gcov_env.Alias ('gcov', builder)
   349 			gcov_env.Alias ('gcov', builder)
       
   350 		gcov_env.Alias ('lcov-report')
       
   351 		if 'lcov-report' in COMMAND_LINE_TARGETS:
       
   352 			lcov_report_dir = os.path.join (self.build_dir, 'lcov-report')
       
   353 			create_dir_command = "rm -rf " + lcov_report_dir +
       
   354 			" && mkdir " + lcov_report_dir + ";"
       
   355 			gcov_env.Execute (create_dir_command)
       
   356 			info_file = os.path.join (lcov_report_dir, 'ns3.info')
       
   357 			lcov_command = "utils/lcov/lcov -c -d . -o " info_file
       
   358 			gcov_env.Execute (lcov_command)
       
   359 			genhtml_command = "utils/lcov/genhtml -o " + lcov_report_data +
       
   360 			" " + info_file 
       
   361 			gcov_env.Execute (genhtml_command)
       
   362 
   350 
   363 
   351 
   364 
   352 		opt_env = env.Copy ()
   365 		opt_env = env.Copy ()
   353 		opt_env.Append (CFLAGS=opti_flags,
   366 		opt_env.Append (CFLAGS=opti_flags,
   354 				CXXFLAGS=opti_flags,
   367 				CXXFLAGS=opti_flags,