+2011-06-16 Kevin Ollivier <kevino@theolliviers.com>
+
+ [wx] Unreviewed build fix, make sure the waf build checks the webKitBranchBuild
+ preference like the perl scripts do.
+
+ * waf/build/build_utils.py:
+ * waf/build/settings.py:
+
2011-06-16 Tommy Widenflycht <tommyw@google.com>
Reviewed by Tony Gentilcore.
return flat_sources
-
def git_branch_name():
try:
branches = commands.getoutput("git branch --no-color")
return ""
+def is_git_branch_build():
+ branch = git_branch_name()
+ is_branch_build = commands.getoutput("git config --bool branch.%s.webKitBranchBuild" % branch)
+ if is_branch_build == "true":
+ return True
+ elif is_branch_build == "false":
+ return False
+
+ # not defined for this branch, use the default
+ is_branch_build = commands.getoutput("git config --bool core.webKitBranchBuild")
+ return is_branch_build == "true"
+
def get_base_product_dir(wk_root):
build_dir = os.path.join(wk_root, 'WebKitBuild')
git_branch = git_branch_name()
- if git_branch != "":
+ if git_branch != "" and is_git_branch_build():
build_dir = os.path.join(build_dir, git_branch)
return build_dir
config = get_config(wk_root)
arch = get_arch(wk_root)
config_dir = config
-git_branch = git_branch_name()
-if git_branch != "":
- config_dir = os.path.join(git_branch, config_dir)
-output_dir = os.path.join(wk_root, 'WebKitBuild', config_dir)
+output_dir = os.path.join(get_base_product_dir(wk_root), config_dir)
building_on_win32 = sys.platform.startswith('win')