diff --git a/gyp_helper.py b/gyp_helper.py index a2cc7e19c..9be2b9e01 100644 --- a/gyp_helper.py +++ b/gyp_helper.py @@ -44,11 +44,17 @@ def apply_gyp_environment_from_file(file_path): if var in os.environ: behavior = 'replaces' if var == 'GYP_DEFINES': - os.environ[var] = file_val + ' ' + os.environ[var] - behavior = 'overrides' + result = file_val + ' ' + os.environ[var] + behavior = 'merges with, and individual components override,' + else: + result = os.environ[var] print 'INFO: Environment value for "%s" %s value in %s' % ( var, behavior, os.path.abspath(file_path) ) + string_padding = max(len(var), len(file_path), len('result')) + print ' %s: %s' % (var.rjust(string_padding), os.environ[var]) + print ' %s: %s' % (file_path.rjust(string_padding), file_val) + os.environ[var] = result else: os.environ[var] = file_val