mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 20:50:42 +01:00
Merge revision 1381 changes:
- Add support for excluding files from the translator tool. git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1547@1382 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
faa0501d22
commit
0fa54dda4c
@ -464,11 +464,13 @@ class obj_header:
|
||||
self.funcs = []
|
||||
self.classes = []
|
||||
|
||||
def add_directory(self, directory):
|
||||
def add_directory(self, directory, excluded_files = []):
|
||||
""" Add all header files from the specified directory. """
|
||||
files = get_files(os.path.join(directory, '*.h'))
|
||||
for file in files:
|
||||
self.add_file(file)
|
||||
if len(excluded_files) == 0 or \
|
||||
not os.path.split(file)[1] in excluded_files:
|
||||
self.add_file(file)
|
||||
|
||||
def add_file(self, filepath):
|
||||
""" Add a header file. """
|
||||
|
@ -75,7 +75,8 @@ if not path_exists(options.cppheaderdir):
|
||||
if not options.quiet:
|
||||
sys.stdout.write('Parsing C++ headers from '+options.cppheaderdir+'...\n')
|
||||
header = obj_header()
|
||||
header.add_directory(options.cppheaderdir)
|
||||
excluded_files = ['cef_application_mac.h', 'cef_version.h']
|
||||
header.add_directory(options.cppheaderdir, excluded_files)
|
||||
|
||||
writect = 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user