Generate CMake configuration for the binary distribution (issue #1404).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1881 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2014-10-22 21:48:11 +00:00
parent ff77107e73
commit a91de6d6db
13 changed files with 1481 additions and 28 deletions

View File

@ -129,3 +129,13 @@ def read_version_file(file, args):
parts = line.split('=', 1)
if len(parts) == 2:
args[parts[0]] = parts[1]
def eval_file(src):
""" Loads and evaluates the contents of the specified file. """
return eval(read_file(src), {'__builtins__': None}, None)
def normalize_path(path):
""" Normalizes the path separator to match the Unix standard. """
if sys.platform == 'win32':
return path.replace('\\', '/')
return path