Changeset 88132 in webkit


Ignore:
Timestamp:
Jun 4, 2011 10:28:39 PM (13 years ago)
Author:
kevino@webkit.org
Message:

[wx] Unreviewed build fix. Update git branch build dir handling to match what other WebKit scripts expect, so other scripts work properly with wx.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r88131 r88132  
     12011-06-04  Kevin Ollivier  <kevino@theolliviers.com>
     2
     3        [wx] Unreviewed build fix. Update git branch build dir handling to match what other
     4        WebKit scripts expect, so other scripts work properly with wx.
     5
     6        * waf/build/build_utils.py:
     7        * waf/build/settings.py:
     8
    192011-06-04  Kevin Ollivier  <kevino@theolliviers.com>
    210
  • trunk/Tools/waf/build/build_utils.py

    r84994 r88132  
    169169        match = re.search('^\* (.*)', branches, re.MULTILINE)
    170170        if match:
    171             return ".%s" % match.group(1)
     171            return "%s" % match.group(1)
    172172    except:
    173173        pass
     
    175175    return ""
    176176
     177def get_base_product_dir(wk_root):
     178    build_dir = os.path.join(wk_root, 'WebKitBuild')
     179    git_branch = git_branch_name()
     180    if git_branch != "":
     181        build_dir = os.path.join(build_dir, git_branch)
     182       
     183    return build_dir
    177184
    178185def get_config(wk_root):
    179     config_file = os.path.join(wk_root, 'WebKitBuild', 'Configuration')
     186    config_file = os.path.join(get_base_product_dir(wk_root), 'Configuration')
    180187    config = 'Debug'
    181188
     
    187194
    188195def get_arch(wk_root):
    189     arch_file = os.path.join(wk_root, 'WebKitBuild', 'Architecture')
     196    arch_file = os.path.join(get_base_product_dir(wk_root), 'Architecture')
    190197    arch = 'x86_64'
    191198
  • trunk/Tools/waf/build/settings.py

    r88131 r88132  
    161161config = get_config(wk_root)
    162162arch = get_arch(wk_root)
    163 config_dir = config + git_branch_name()
     163config_dir = config
     164git_branch = git_branch_name()
     165if git_branch != "":
     166    config_dir = os.path.join(git_branch, config_dir)
    164167
    165168output_dir = os.path.join(wk_root, 'WebKitBuild', config_dir)
     
    224227    opt.add_option('--mac_universal_binary', action='store_true', default=False, help='Build Mac as universal (i386, x86_64, ppc) binary.')
    225228    opt.add_option('--mac_archs', action='store', default='', help='Comma separated list of architectures (i386, x86_64, ppc) to build on Mac.')
    226 
    227229
    228230def common_configure(conf):
Note: See TracChangeset for help on using the changeset viewer.