| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 ''' Verifies that builds of the embedded content_shell do not included | 6 ''' Verifies that builds of the embedded content_shell do not included |
| 7 unnecessary dependencies.''' | 7 unnecessary dependencies.''' |
| 8 | 8 |
| 9 import os | 9 import os |
| 10 import re | 10 import re |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 'libffi', | 32 'libffi', |
| 33 'libgconf', | 33 'libgconf', |
| 34 'libgio', | 34 'libgio', |
| 35 'libglib', | 35 'libglib', |
| 36 'libgmodule', | 36 'libgmodule', |
| 37 'libgobject', | 37 'libgobject', |
| 38 'libpango', | 38 'libpango', |
| 39 'libpcre', | 39 'libpcre', |
| 40 'libpixman', | 40 'libpixman', |
| 41 'libpng', | 41 'libpng', |
| 42 'libresolv', | |
| 43 'libselinux', | 42 'libselinux', |
| 44 'libudev', | 43 'libudev', |
| 45 'libxcb', | 44 'libxcb', |
| 46 ] | 45 ] |
| 47 | 46 |
| 48 kAllowedLibraryList = [ | 47 kAllowedLibraryList = [ |
| 49 # Toolchain libraries (gcc/glibc) | 48 # Toolchain libraries (gcc/glibc) |
| 50 'ld-linux', | 49 'ld-linux', |
| 51 'libc', | 50 'libc', |
| 52 'libdl', | 51 'libdl', |
| 53 'libgcc_s', | 52 'libgcc_s', |
| 54 'libm', | 53 'libm', |
| 55 'libpthread', | 54 'libpthread', |
| 55 'libresolv', |
| 56 'librt', | 56 'librt', |
| 57 'libstdc++', | 57 'libstdc++', |
| 58 'linux-vdso', | 58 'linux-vdso', |
| 59 | 59 |
| 60 # Needed for default ozone platforms | 60 # Needed for default ozone platforms |
| 61 'libdrm', | 61 'libdrm', |
| 62 | 62 |
| 63 # NSS & NSPR | 63 # NSS & NSPR |
| 64 'libnss3', | 64 'libnss3', |
| 65 'libnssutil3', | 65 'libnssutil3', |
| 66 'libnspr4', | 66 'libnspr4', |
| 67 'libplc4', | 67 'libplc4', |
| 68 'libplds4', | 68 'libplds4', |
| 69 'libsmime3', | 69 'libsmime3', |
| 70 | 70 |
| 71 # OpenSSL |
| 72 'libcrypto', |
| 73 |
| 71 # Miscellaneous | 74 # Miscellaneous |
| 72 'libcap', | 75 'libcap', |
| 73 'libexpat', | 76 'libexpat', |
| 74 'libfontconfig', | 77 'libfontconfig', |
| 75 'libz', | 78 'libz', |
| 76 ] | 79 ] |
| 77 | 80 |
| 78 binary_target = 'content_shell' | 81 binary_target = 'content_shell' |
| 79 | 82 |
| 80 def stdmsg(_final, errors): | 83 def stdmsg(_final, errors): |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 output['ok'](None) | 196 output['ok'](None) |
| 194 return 0 | 197 return 0 |
| 195 else: | 198 else: |
| 196 output['fail'](None) | 199 output['fail'](None) |
| 197 return 1 | 200 return 1 |
| 198 | 201 |
| 199 if __name__ == "__main__": | 202 if __name__ == "__main__": |
| 200 # handle arguments... | 203 # handle arguments... |
| 201 # do something reasonable if not run with one... | 204 # do something reasonable if not run with one... |
| 202 sys.exit(_main()) | 205 sys.exit(_main()) |
| OLD | NEW |