| 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 """ | 6 """ |
| 7 Replaces gyp files in tree with files from here that | 7 Replaces gyp files in tree with files from here that |
| 8 make the build use system libraries. | 8 make the build use system libraries. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 | 11 |
| 12 import os.path | 12 import os.path |
| 13 import shutil | 13 import shutil |
| 14 import sys | 14 import sys |
| 15 | 15 |
| 16 | 16 |
| 17 REPLACEMENTS = { | 17 REPLACEMENTS = { |
| 18 'use_system_bzip2': 'third_party/bzip2/bzip2.gyp', | 18 'use_system_bzip2': 'third_party/bzip2/bzip2.gyp', |
| 19 'use_system_expat': 'third_party/expat/expat.gyp', | 19 'use_system_expat': 'third_party/expat/expat.gyp', |
| 20 'use_system_ffmpeg': 'third_party/ffmpeg/ffmpeg.gyp', |
| 20 'use_system_flac': 'third_party/flac/flac.gyp', | 21 'use_system_flac': 'third_party/flac/flac.gyp', |
| 21 'use_system_harfbuzz': 'third_party/harfbuzz-ng/harfbuzz.gyp', | 22 'use_system_harfbuzz': 'third_party/harfbuzz-ng/harfbuzz.gyp', |
| 22 'use_system_icu': 'third_party/icu/icu.gyp', | 23 'use_system_icu': 'third_party/icu/icu.gyp', |
| 23 'use_system_jsoncpp': 'third_party/jsoncpp/jsoncpp.gyp', | 24 'use_system_jsoncpp': 'third_party/jsoncpp/jsoncpp.gyp', |
| 24 'use_system_libevent': 'third_party/libevent/libevent.gyp', | 25 'use_system_libevent': 'third_party/libevent/libevent.gyp', |
| 25 'use_system_libjpeg': 'third_party/libjpeg/libjpeg.gyp', | 26 'use_system_libjpeg': 'third_party/libjpeg/libjpeg.gyp', |
| 26 'use_system_libpng': 'third_party/libpng/libpng.gyp', | 27 'use_system_libpng': 'third_party/libpng/libpng.gyp', |
| 27 'use_system_libusb': 'third_party/libusb/libusb.gyp', | 28 'use_system_libusb': 'third_party/libusb/libusb.gyp', |
| 28 'use_system_libvpx': 'third_party/libvpx/libvpx.gyp', | 29 'use_system_libvpx': 'third_party/libvpx/libvpx.gyp', |
| 29 'use_system_libwebp': 'third_party/libwebp/libwebp.gyp', | 30 'use_system_libwebp': 'third_party/libwebp/libwebp.gyp', |
| (...skipping 22 matching lines...) Expand all Loading... |
| 52 | 53 |
| 53 # Copy the gyp file from directory of this script to target path. | 54 # Copy the gyp file from directory of this script to target path. |
| 54 shutil.copyfile(os.path.join(my_dirname, os.path.basename(path)), | 55 shutil.copyfile(os.path.join(my_dirname, os.path.basename(path)), |
| 55 os.path.join(source_tree_root, path)) | 56 os.path.join(source_tree_root, path)) |
| 56 | 57 |
| 57 return 0 | 58 return 0 |
| 58 | 59 |
| 59 | 60 |
| 60 if __name__ == '__main__': | 61 if __name__ == '__main__': |
| 61 sys.exit(DoMain(sys.argv)) | 62 sys.exit(DoMain(sys.argv)) |
| OLD | NEW |