OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Crocodile config file for Chromium - settings common to all platforms | 2 # Crocodile config file for Chromium - settings common to all platforms |
3 # | 3 # |
4 # This should be speicified before the platform-specific config, for example: | 4 # This should be speicified before the platform-specific config, for example: |
5 # croc -c chrome_common.croc -c linux/chrome_linux.croc | 5 # croc -c chrome_common.croc -c linux/chrome_linux.croc |
6 | 6 |
7 { | 7 { |
8 # List of root directories, applied in order | 8 # List of root directories, applied in order |
9 'roots' : [ | 9 'roots' : [ |
10 # Sub-paths we specifically care about and want to call out | 10 # Sub-paths we specifically care about and want to call out |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 # Languages | 37 # Languages |
38 { | 38 { |
39 'regexp' : '.*\\.(c|h)$', | 39 'regexp' : '.*\\.(c|h)$', |
40 'language' : 'C', | 40 'language' : 'C', |
41 }, | 41 }, |
42 { | 42 { |
43 'regexp' : '.*\\.(cc|cpp|hpp)$', | 43 'regexp' : '.*\\.(cc|cpp|hpp)$', |
44 'language' : 'C++', | 44 'language' : 'C++', |
45 }, | 45 }, |
| 46 |
| 47 # Files/paths to include. Specify these before the excludes, since rules |
| 48 # are in order. |
| 49 { |
| 50 'regexp' : '^CHROMIUM/(base|media|net|printing|chrome|webkit/glue|native_c
lient)/', |
| 51 'include' : 1, |
| 52 }, |
| 53 # Don't include subversion or mercurial SCM dirs |
| 54 { |
| 55 'regexp' : '.*/(\\.svn|\\.hg)/', |
| 56 'include' : 0, |
| 57 }, |
| 58 # Don't include output dirs |
| 59 { |
| 60 'regexp' : '.*/(Debug|Release|sconsbuild|out|xcodebuild)/', |
| 61 'include' : 0, |
| 62 }, |
| 63 # Don't include third-party source |
| 64 { |
| 65 'regexp' : '.*/third_party/', |
| 66 'include' : 0, |
| 67 }, |
| 68 # We don't run the V8 test suite, so we don't care about V8 coverage. |
| 69 { |
| 70 'regexp' : '.*/v8/', |
| 71 'include' : 0, |
| 72 }, |
46 ], | 73 ], |
47 | 74 |
48 # Paths to add source from | 75 # Paths to add source from |
49 'add_files' : [ | 76 'add_files' : [ |
50 'CHROMIUM' | 77 'CHROMIUM' |
51 ], | 78 ], |
52 | 79 |
53 # Statistics to print | 80 # Statistics to print |
54 'print_stats' : [ | 81 'print_stats' : [ |
55 { | 82 { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 'format' : '*RESULT PercentCoveredSource: percent_covered_source= %g', | 118 'format' : '*RESULT PercentCoveredSource: percent_covered_source= %g', |
92 'group' : 'source', | 119 'group' : 'source', |
93 }, | 120 }, |
94 { | 121 { |
95 'stat' : '100.0 * lines_covered / lines_executable', | 122 'stat' : '100.0 * lines_covered / lines_executable', |
96 'format' : '*RESULT PercentCoveredTest: percent_covered_test= %g', | 123 'format' : '*RESULT PercentCoveredTest: percent_covered_test= %g', |
97 'group' : 'test', | 124 'group' : 'test', |
98 }, | 125 }, |
99 ], | 126 ], |
100 } | 127 } |
OLD | NEW |