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 |
(...skipping 17 matching lines...) Expand all Loading... |
28 'use_system_libusb': 'third_party/libusb/libusb.gyp', | 28 'use_system_libusb': 'third_party/libusb/libusb.gyp', |
29 'use_system_libvpx': 'third_party/libvpx/libvpx.gyp', | 29 'use_system_libvpx': 'third_party/libvpx/libvpx.gyp', |
30 'use_system_libwebp': 'third_party/libwebp/libwebp.gyp', | 30 'use_system_libwebp': 'third_party/libwebp/libwebp.gyp', |
31 'use_system_libxml': 'third_party/libxml/libxml.gyp', | 31 'use_system_libxml': 'third_party/libxml/libxml.gyp', |
32 'use_system_libxnvctrl' : 'third_party/libXNVCtrl/libXNVCtrl.gyp', | 32 'use_system_libxnvctrl' : 'third_party/libXNVCtrl/libXNVCtrl.gyp', |
33 'use_system_libxslt': 'third_party/libxslt/libxslt.gyp', | 33 'use_system_libxslt': 'third_party/libxslt/libxslt.gyp', |
34 'use_system_opus': 'third_party/opus/opus.gyp', | 34 'use_system_opus': 'third_party/opus/opus.gyp', |
35 'use_system_protobuf': 'third_party/protobuf/protobuf.gyp', | 35 'use_system_protobuf': 'third_party/protobuf/protobuf.gyp', |
36 'use_system_re2': 'third_party/re2/re2.gyp', | 36 'use_system_re2': 'third_party/re2/re2.gyp', |
37 'use_system_snappy': 'third_party/snappy/snappy.gyp', | 37 'use_system_snappy': 'third_party/snappy/snappy.gyp', |
38 'use_system_speex': 'third_party/speex/speex.gyp', | |
39 'use_system_sqlite': 'third_party/sqlite/sqlite.gyp', | 38 'use_system_sqlite': 'third_party/sqlite/sqlite.gyp', |
40 'use_system_v8': 'v8/tools/gyp/v8.gyp', | 39 'use_system_v8': 'v8/tools/gyp/v8.gyp', |
41 'use_system_zlib': 'third_party/zlib/zlib.gyp', | 40 'use_system_zlib': 'third_party/zlib/zlib.gyp', |
42 } | 41 } |
43 | 42 |
44 | 43 |
45 def DoMain(argv): | 44 def DoMain(argv): |
46 my_dirname = os.path.dirname(__file__) | 45 my_dirname = os.path.dirname(__file__) |
47 source_tree_root = os.path.abspath( | 46 source_tree_root = os.path.abspath( |
48 os.path.join(my_dirname, '..', '..', '..')) | 47 os.path.join(my_dirname, '..', '..', '..')) |
(...skipping 24 matching lines...) Expand all Loading... |
73 | 72 |
74 # Copy the gyp file from directory of this script to target path. | 73 # Copy the gyp file from directory of this script to target path. |
75 shutil.copyfile(os.path.join(my_dirname, os.path.basename(path)), | 74 shutil.copyfile(os.path.join(my_dirname, os.path.basename(path)), |
76 os.path.join(source_tree_root, path)) | 75 os.path.join(source_tree_root, path)) |
77 | 76 |
78 return 0 | 77 return 0 |
79 | 78 |
80 | 79 |
81 if __name__ == '__main__': | 80 if __name__ == '__main__': |
82 sys.exit(DoMain(sys.argv)) | 81 sys.exit(DoMain(sys.argv)) |
OLD | NEW |