Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # -*- python -*- | |
| 1 # Crocodile config file for Chromium mac | 2 # Crocodile config file for Chromium mac |
| 2 | 3 |
| 3 { | 4 { |
| 4 # List of rules, applied in order | 5 # List of rules, applied in order |
| 5 'rules' : [ | 6 'rules' : [ |
| 6 # Files/paths to include. Specify these before the excludes, since rules | 7 # Files/paths to include. Specify these before the excludes, since rules |
| 7 # are in order. | 8 # are in order. |
| 8 { | 9 { |
| 9 'regexp' : '^#/src/(base|media|net|printing)/', | 10 'regexp' : '^CHROMIUM/(base|media|net|printing)/', |
| 10 'include' : 1, | 11 'include' : 1, |
| 11 }, | 12 }, |
| 12 # Don't include subversion or mercurial SCM dirs | 13 # Don't include subversion or mercurial SCM dirs |
|
John Grabowski
2009/05/29 00:34:43
Seems a few more rules here (no svn, output dirs,
| |
| 13 { | 14 { |
| 14 'regexp' : '.*/(\\.svn|\\.hg)/', | 15 'regexp' : '.*/(\\.svn|\\.hg)/', |
| 15 'include' : 0, | 16 'include' : 0, |
| 16 }, | 17 }, |
| 17 # Don't include output dirs | 18 # Don't include output dirs |
| 18 { | 19 { |
| 19 'regexp' : '.*/(Debug|Release|sconsbuild|xcodebuild)/', | 20 'regexp' : '.*/(Debug|Release|sconsbuild|xcodebuild)/', |
| 20 'include' : 0, | 21 'include' : 0, |
| 21 }, | 22 }, |
| 22 # Don't include third-party source | 23 # Don't include third-party source |
| 23 { | 24 { |
| 24 'regexp' : '.*/third_party/', | 25 'regexp' : '.*/third_party/', |
| 25 'include' : 0, | 26 'include' : 0, |
| 26 }, | 27 }, |
| 27 # Don't include windows or mac specific files | 28 # Don't include windows or mac specific files |
| 28 { | 29 { |
| 29 'regexp' : '.*(_|/)(linux|win)(\\.|_)', | 30 'regexp' : '.*(_|/)(linux|win)(\\.|_)', |
| 30 'include' : 0, | 31 'include' : 0, |
| 31 }, | 32 }, |
| 32 | 33 |
| 33 # Groups | 34 # Groups |
| 34 { | 35 { |
| 35 'regexp' : '', | 36 'regexp' : '.*_test_mac\\.', |
| 36 'group' : 'source', | |
| 37 }, | |
| 38 { | |
| 39 'regexp' : '.*_(test|test_mac|unittest)\\.', | |
| 40 'group' : 'test', | 37 'group' : 'test', |
| 41 }, | 38 }, |
| 42 | 39 |
| 43 # Languages | 40 # Languages |
| 44 { | 41 { |
| 45 'regexp' : '.*\\.(c|h)$', | |
| 46 'language' : 'C', | |
| 47 }, | |
| 48 { | |
| 49 'regexp' : '.*\\.(cc|cpp|hpp)$', | |
| 50 'language' : 'C++', | |
| 51 }, | |
| 52 { | |
| 53 'regexp' : '.*\\.m$', | 42 'regexp' : '.*\\.m$', |
| 54 'language' : 'ObjC', | 43 'language' : 'ObjC', |
| 55 }, | 44 }, |
| 56 { | 45 { |
| 57 'regexp' : '.*\\.mm$', | 46 'regexp' : '.*\\.mm$', |
| 58 'language' : 'ObjC++', | 47 'language' : 'ObjC++', |
| 59 }, | 48 }, |
| 60 ], | 49 ], |
| 61 | |
| 62 # Paths to add source from | |
| 63 'add_files' : [ | |
| 64 '#/src' | |
| 65 ], | |
| 66 | |
| 67 # Statistics to print | |
| 68 'print_stats' : [ | |
| 69 { | |
| 70 'stat' : 'files_executable', | |
| 71 'format' : '*RESULT FilesKnown: files_executable= %d files', | |
| 72 }, | |
| 73 { | |
| 74 'stat' : 'files_instrumented', | |
| 75 'format' : '*RESULT FilesInstrumented: files_instrumented= %d files', | |
| 76 }, | |
| 77 { | |
| 78 'stat' : '100.0 * files_instrumented / files_executable', | |
| 79 'format' : '*RESULT FilesInstrumentedPercent: files_instrumented_percent= %g', | |
| 80 }, | |
| 81 { | |
| 82 'stat' : 'lines_instrumented', | |
| 83 'format' : '*RESULT LinesInstrumented: lines_instrumented= %d lines', | |
| 84 }, | |
| 85 { | |
| 86 'stat' : 'lines_covered', | |
| 87 'format' : '*RESULT LinesCoveredSource: lines_covered_source= %d lines', | |
| 88 'group' : 'source', | |
| 89 }, | |
| 90 { | |
| 91 'stat' : 'lines_covered', | |
| 92 'format' : '*RESULT LinesCoveredTest: lines_covered_test= %d lines', | |
| 93 'group' : 'test', | |
| 94 }, | |
| 95 ], | |
| 96 } | 50 } |
| OLD | NEW |