mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update cef_api_hash.h at build time if necessary (fixes issue #2922)
The cef_api_hash.h file was previously only updated when the translator tool was run manually. Forgetting to run the translator tool after changing include/internal/cef_types*.h files would result in cef_parser.py incorrectly computing the CEF minor version number for future builds. By updating this file automatically at build time the number of errors should be reduced.
This commit is contained in:
@ -469,7 +469,7 @@ def get_next_function_impl(existing, name):
|
||||
return result
|
||||
|
||||
|
||||
def get_copyright(full=False):
|
||||
def get_copyright(full=False, translator=True):
|
||||
if full:
|
||||
result = \
|
||||
"""// Copyright (c) $YEAR$ Marshall A. Greenblatt. All rights reserved.
|
||||
@ -508,7 +508,8 @@ def get_copyright(full=False):
|
||||
// can be found in the LICENSE file.
|
||||
"""
|
||||
|
||||
result += \
|
||||
if translator:
|
||||
result += \
|
||||
"""//
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
@ -521,6 +522,7 @@ def get_copyright(full=False):
|
||||
//
|
||||
|
||||
"""
|
||||
|
||||
# add the copyright year
|
||||
return result.replace('$YEAR$', get_year())
|
||||
|
||||
|
Reference in New Issue
Block a user