Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- python -*- |
michael@0 | 2 | # Crocodile config file for Chromium - settings common to all platforms |
michael@0 | 3 | # |
michael@0 | 4 | # This should be speicified before the platform-specific config, for example: |
michael@0 | 5 | # croc -c chrome_common.croc -c linux/chrome_linux.croc |
michael@0 | 6 | |
michael@0 | 7 | { |
michael@0 | 8 | # List of root directories, applied in order |
michael@0 | 9 | 'roots' : [ |
michael@0 | 10 | # Sub-paths we specifically care about and want to call out |
michael@0 | 11 | { |
michael@0 | 12 | 'root' : '_/src', |
michael@0 | 13 | 'altname' : 'CHROMIUM', |
michael@0 | 14 | }, |
michael@0 | 15 | ], |
michael@0 | 16 | |
michael@0 | 17 | # List of rules, applied in order |
michael@0 | 18 | # Note that any 'include':0 rules here will be overridden by the 'include':1 |
michael@0 | 19 | # rules in the platform-specific configs. |
michael@0 | 20 | 'rules' : [ |
michael@0 | 21 | # Don't scan for executable lines in uninstrumented C++ header files |
michael@0 | 22 | { |
michael@0 | 23 | 'regexp' : '.*\\.(h|hpp)$', |
michael@0 | 24 | 'add_if_missing' : 0, |
michael@0 | 25 | }, |
michael@0 | 26 | |
michael@0 | 27 | # Groups |
michael@0 | 28 | { |
michael@0 | 29 | 'regexp' : '', |
michael@0 | 30 | 'group' : 'source', |
michael@0 | 31 | }, |
michael@0 | 32 | { |
michael@0 | 33 | 'regexp' : '.*_(test|unittest|uitest|browsertest)\\.', |
michael@0 | 34 | 'group' : 'test', |
michael@0 | 35 | }, |
michael@0 | 36 | |
michael@0 | 37 | # Languages |
michael@0 | 38 | { |
michael@0 | 39 | 'regexp' : '.*\\.(c|h)$', |
michael@0 | 40 | 'language' : 'C', |
michael@0 | 41 | }, |
michael@0 | 42 | { |
michael@0 | 43 | 'regexp' : '.*\\.(cc|cpp|hpp)$', |
michael@0 | 44 | 'language' : 'C++', |
michael@0 | 45 | }, |
michael@0 | 46 | |
michael@0 | 47 | # Files/paths to include. Specify these before the excludes, since rules |
michael@0 | 48 | # are in order. |
michael@0 | 49 | { |
michael@0 | 50 | 'regexp' : '^CHROMIUM/(base|media|net|printing|remoting|chrome|content|webkit/glue|native_client)/', |
michael@0 | 51 | 'include' : 1, |
michael@0 | 52 | }, |
michael@0 | 53 | # Don't include subversion or mercurial SCM dirs |
michael@0 | 54 | { |
michael@0 | 55 | 'regexp' : '.*/(\\.svn|\\.hg)/', |
michael@0 | 56 | 'include' : 0, |
michael@0 | 57 | }, |
michael@0 | 58 | # Don't include output dirs |
michael@0 | 59 | { |
michael@0 | 60 | 'regexp' : '.*/(Debug|Release|sconsbuild|out|xcodebuild)/', |
michael@0 | 61 | 'include' : 0, |
michael@0 | 62 | }, |
michael@0 | 63 | # Don't include third-party source |
michael@0 | 64 | { |
michael@0 | 65 | 'regexp' : '.*/third_party/', |
michael@0 | 66 | 'include' : 0, |
michael@0 | 67 | }, |
michael@0 | 68 | # We don't run the V8 test suite, so we don't care about V8 coverage. |
michael@0 | 69 | { |
michael@0 | 70 | 'regexp' : '.*/v8/', |
michael@0 | 71 | 'include' : 0, |
michael@0 | 72 | }, |
michael@0 | 73 | ], |
michael@0 | 74 | |
michael@0 | 75 | # Paths to add source from |
michael@0 | 76 | 'add_files' : [ |
michael@0 | 77 | 'CHROMIUM' |
michael@0 | 78 | ], |
michael@0 | 79 | |
michael@0 | 80 | # Statistics to print |
michael@0 | 81 | 'print_stats' : [ |
michael@0 | 82 | { |
michael@0 | 83 | 'stat' : 'files_executable', |
michael@0 | 84 | 'format' : '*RESULT FilesKnown: files_executable= %d files', |
michael@0 | 85 | }, |
michael@0 | 86 | { |
michael@0 | 87 | 'stat' : 'files_instrumented', |
michael@0 | 88 | 'format' : '*RESULT FilesInstrumented: files_instrumented= %d files', |
michael@0 | 89 | }, |
michael@0 | 90 | { |
michael@0 | 91 | 'stat' : '100.0 * files_instrumented / files_executable', |
michael@0 | 92 | 'format' : '*RESULT FilesInstrumentedPercent: files_instrumented_percent= %g', |
michael@0 | 93 | }, |
michael@0 | 94 | { |
michael@0 | 95 | 'stat' : 'lines_executable', |
michael@0 | 96 | 'format' : '*RESULT LinesKnown: lines_known= %d lines', |
michael@0 | 97 | }, |
michael@0 | 98 | { |
michael@0 | 99 | 'stat' : 'lines_instrumented', |
michael@0 | 100 | 'format' : '*RESULT LinesInstrumented: lines_instrumented= %d lines', |
michael@0 | 101 | }, |
michael@0 | 102 | { |
michael@0 | 103 | 'stat' : 'lines_covered', |
michael@0 | 104 | 'format' : '*RESULT LinesCoveredSource: lines_covered_source= %d lines', |
michael@0 | 105 | 'group' : 'source', |
michael@0 | 106 | }, |
michael@0 | 107 | { |
michael@0 | 108 | 'stat' : 'lines_covered', |
michael@0 | 109 | 'format' : '*RESULT LinesCoveredTest: lines_covered_test= %d lines', |
michael@0 | 110 | 'group' : 'test', |
michael@0 | 111 | }, |
michael@0 | 112 | { |
michael@0 | 113 | 'stat' : '100.0 * lines_covered / lines_executable', |
michael@0 | 114 | 'format' : '*RESULT PercentCovered: percent_covered= %g', |
michael@0 | 115 | }, |
michael@0 | 116 | { |
michael@0 | 117 | 'stat' : '100.0 * lines_covered / lines_executable', |
michael@0 | 118 | 'format' : '*RESULT PercentCoveredSource: percent_covered_source= %g', |
michael@0 | 119 | 'group' : 'source', |
michael@0 | 120 | }, |
michael@0 | 121 | { |
michael@0 | 122 | 'stat' : '100.0 * lines_covered / lines_executable', |
michael@0 | 123 | 'format' : '*RESULT PercentCoveredTest: percent_covered_test= %g', |
michael@0 | 124 | 'group' : 'test', |
michael@0 | 125 | }, |
michael@0 | 126 | ], |
michael@0 | 127 | } |