OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright 2016 The WebRTC project authors. All Rights Reserved. | 3 # Copyright 2016 The WebRTC project authors. All Rights Reserved. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license | 5 # Use of this source code is governed by a BSD-style license |
6 # that can be found in the LICENSE file in the root of the source | 6 # that can be found in the LICENSE file in the root of the source |
7 # tree. An additional intellectual property rights grant can be found | 7 # tree. An additional intellectual property rights grant can be found |
8 # in the file PATENTS. All contributing project authors may | 8 # in the file PATENTS. All contributing project authors may |
9 # be found in the AUTHORS file in the root of the source tree. | 9 # be found in the AUTHORS file in the root of the source tree. |
10 | 10 |
11 """Script for exporting iOS header files.""" | 11 """Script for exporting iOS header files.""" |
12 | 12 |
13 import errno | 13 import errno |
14 import optparse | 14 import optparse |
15 import os | 15 import os |
16 import re | 16 import re |
17 import shutil | 17 import shutil |
18 import sys | 18 import sys |
19 | 19 |
20 LEGACY_HEADER_DIRS = ['talk/app/webrtc/objc/public', 'webrtc/base/objc/'] | 20 LEGACY_HEADER_DIRS = ['talk/app/webrtc/objc/public', 'webrtc/base/objc/'] |
21 HEADER_DIRS = ['webrtc/api/objc/', 'webrtc/base/objc/'] | 21 HEADER_DIRS = ['webrtc/api/objc/', 'webrtc/base/objc/'] |
22 # Individual header files that should also be exported. | 22 # Individual header files that should also be exported. |
23 LEGACY_HEADER_INCLUDES = [] | 23 LEGACY_HEADER_INCLUDES = [] |
24 HEADER_INCLUDES = [] | 24 HEADER_INCLUDES = [] |
25 # Individual header files that should not be exported. | 25 # Individual header files that should not be exported. |
26 LEGACY_HEADER_EXCLUDES = ['talk/app/webrtc/objc/public/RTCNSGLVideoView.h'] | 26 LEGACY_HEADER_EXCLUDES = ['talk/app/webrtc/objc/public/RTCNSGLVideoView.h'] |
27 HEADER_EXCLUDES = ['webrtc/api/objc/avfoundationvideocapturer.h', | 27 HEADER_EXCLUDES = ['webrtc/api/objc/avfoundationvideocapturer.h', |
28 'webrtc/api/objc/RTCNSGLVideoView.h'] | 28 'webrtc/api/objc/RTCNSGLVideoView.h', |
| 29 'webrtc/base/objc/NSString+StdString.h', |
| 30 'webrtc/base/objc/RTCUIApplication.h',] |
29 | 31 |
30 def ExportHeaders(include_base_dir, use_legacy_headers): | 32 def ExportHeaders(include_base_dir, use_legacy_headers): |
31 """Exports iOS header files. | 33 """Exports iOS header files. |
32 | 34 |
33 Creates an include directory and recreates the hierarchy for the header files | 35 Creates an include directory and recreates the hierarchy for the header files |
34 within the include directory. | 36 within the include directory. |
35 | 37 |
36 Args: | 38 Args: |
37 include_base_dir: directory where the include directory should be created | 39 include_base_dir: directory where the include directory should be created |
38 """ | 40 """ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 parser = optparse.OptionParser() | 79 parser = optparse.OptionParser() |
78 _, args = parser.parse_args() | 80 _, args = parser.parse_args() |
79 if len(args) != 2: | 81 if len(args) != 2: |
80 parser.error('Error: Exactly 2 arguments required.') | 82 parser.error('Error: Exactly 2 arguments required.') |
81 include_base_dir = args[0] | 83 include_base_dir = args[0] |
82 use_legacy_headers = False if int(args[1]) == 0 else True | 84 use_legacy_headers = False if int(args[1]) == 0 else True |
83 ExportHeaders(include_base_dir, use_legacy_headers) | 85 ExportHeaders(include_base_dir, use_legacy_headers) |
84 | 86 |
85 if __name__ == '__main__': | 87 if __name__ == '__main__': |
86 sys.exit(Main()) | 88 sys.exit(Main()) |
OLD | NEW |