1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/build/common.croc Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,127 @@ 1.4 +# -*- python -*- 1.5 +# Crocodile config file for Chromium - settings common to all platforms 1.6 +# 1.7 +# This should be speicified before the platform-specific config, for example: 1.8 +# croc -c chrome_common.croc -c linux/chrome_linux.croc 1.9 + 1.10 +{ 1.11 + # List of root directories, applied in order 1.12 + 'roots' : [ 1.13 + # Sub-paths we specifically care about and want to call out 1.14 + { 1.15 + 'root' : '_/src', 1.16 + 'altname' : 'CHROMIUM', 1.17 + }, 1.18 + ], 1.19 + 1.20 + # List of rules, applied in order 1.21 + # Note that any 'include':0 rules here will be overridden by the 'include':1 1.22 + # rules in the platform-specific configs. 1.23 + 'rules' : [ 1.24 + # Don't scan for executable lines in uninstrumented C++ header files 1.25 + { 1.26 + 'regexp' : '.*\\.(h|hpp)$', 1.27 + 'add_if_missing' : 0, 1.28 + }, 1.29 + 1.30 + # Groups 1.31 + { 1.32 + 'regexp' : '', 1.33 + 'group' : 'source', 1.34 + }, 1.35 + { 1.36 + 'regexp' : '.*_(test|unittest|uitest|browsertest)\\.', 1.37 + 'group' : 'test', 1.38 + }, 1.39 + 1.40 + # Languages 1.41 + { 1.42 + 'regexp' : '.*\\.(c|h)$', 1.43 + 'language' : 'C', 1.44 + }, 1.45 + { 1.46 + 'regexp' : '.*\\.(cc|cpp|hpp)$', 1.47 + 'language' : 'C++', 1.48 + }, 1.49 + 1.50 + # Files/paths to include. Specify these before the excludes, since rules 1.51 + # are in order. 1.52 + { 1.53 + 'regexp' : '^CHROMIUM/(base|media|net|printing|remoting|chrome|content|webkit/glue|native_client)/', 1.54 + 'include' : 1, 1.55 + }, 1.56 + # Don't include subversion or mercurial SCM dirs 1.57 + { 1.58 + 'regexp' : '.*/(\\.svn|\\.hg)/', 1.59 + 'include' : 0, 1.60 + }, 1.61 + # Don't include output dirs 1.62 + { 1.63 + 'regexp' : '.*/(Debug|Release|sconsbuild|out|xcodebuild)/', 1.64 + 'include' : 0, 1.65 + }, 1.66 + # Don't include third-party source 1.67 + { 1.68 + 'regexp' : '.*/third_party/', 1.69 + 'include' : 0, 1.70 + }, 1.71 + # We don't run the V8 test suite, so we don't care about V8 coverage. 1.72 + { 1.73 + 'regexp' : '.*/v8/', 1.74 + 'include' : 0, 1.75 + }, 1.76 + ], 1.77 + 1.78 + # Paths to add source from 1.79 + 'add_files' : [ 1.80 + 'CHROMIUM' 1.81 + ], 1.82 + 1.83 + # Statistics to print 1.84 + 'print_stats' : [ 1.85 + { 1.86 + 'stat' : 'files_executable', 1.87 + 'format' : '*RESULT FilesKnown: files_executable= %d files', 1.88 + }, 1.89 + { 1.90 + 'stat' : 'files_instrumented', 1.91 + 'format' : '*RESULT FilesInstrumented: files_instrumented= %d files', 1.92 + }, 1.93 + { 1.94 + 'stat' : '100.0 * files_instrumented / files_executable', 1.95 + 'format' : '*RESULT FilesInstrumentedPercent: files_instrumented_percent= %g', 1.96 + }, 1.97 + { 1.98 + 'stat' : 'lines_executable', 1.99 + 'format' : '*RESULT LinesKnown: lines_known= %d lines', 1.100 + }, 1.101 + { 1.102 + 'stat' : 'lines_instrumented', 1.103 + 'format' : '*RESULT LinesInstrumented: lines_instrumented= %d lines', 1.104 + }, 1.105 + { 1.106 + 'stat' : 'lines_covered', 1.107 + 'format' : '*RESULT LinesCoveredSource: lines_covered_source= %d lines', 1.108 + 'group' : 'source', 1.109 + }, 1.110 + { 1.111 + 'stat' : 'lines_covered', 1.112 + 'format' : '*RESULT LinesCoveredTest: lines_covered_test= %d lines', 1.113 + 'group' : 'test', 1.114 + }, 1.115 + { 1.116 + 'stat' : '100.0 * lines_covered / lines_executable', 1.117 + 'format' : '*RESULT PercentCovered: percent_covered= %g', 1.118 + }, 1.119 + { 1.120 + 'stat' : '100.0 * lines_covered / lines_executable', 1.121 + 'format' : '*RESULT PercentCoveredSource: percent_covered_source= %g', 1.122 + 'group' : 'source', 1.123 + }, 1.124 + { 1.125 + 'stat' : '100.0 * lines_covered / lines_executable', 1.126 + 'format' : '*RESULT PercentCoveredTest: percent_covered_test= %g', 1.127 + 'group' : 'test', 1.128 + }, 1.129 + ], 1.130 +}