Beispiel #1
0
def build():
    # find WX directory
    from build_wx import WXDIR
    wxdir = abspath(WXDIR)

    # find WXPY directory, and SIP directory
    from build_wxpy import wxpy_path, sip_path
    sipdir, wxpydir = abspath(sip_path), abspath(wxpy_path)

    assert isdir(wxdir)
    assert isdir(sipdir)
    assert isdir(wxpydir)

    from buildutil import tardep
    boost = tardep('http://iweb.dl.sourceforge.net/project/boost/boost/1.42.0/', 'boost_1_42_0', '.tar.gz', 40932853)
    boost.get()

    # place these directories on the PYTHONPATH
    os.environ['PYTHONPATH'] = os.pathsep.join([wxpydir, sipdir])

    with cd('../../ext'):
        dpy(['buildbkl.py', '--wx=%s' % wxdir] +  sys.argv[1:])
Beispiel #2
0
        sys._build_debug = True



import shutil
import os
sys.path.append('..') if '..' not in sys.path else None
from buildutil import run, cd, tardep, unzip, filerepl, git, inform, timed, DEBUG, copy_different, DEPS_DIR, get_patch_cmd
from os import makedirs, environ
from os.path import isdir, abspath, exists, join as pathjoin, isfile
from constants import TARBALL_URL, WXWEBKIT_GIT_REPO
from shutil import move

thisdir = abspath(os.path.dirname(__file__))

zlib = tardep('http://symbolsystem.com/build/msvc2008/', 'zlib-1.2.3', '.zip', 629830)

patch_cmd = get_patch_cmd()

icu = tardep('http://download.icu-project.org/files/icu4c/49.1.2/', 'icu4c-49_1_2-Win32-msvc10', '.zip', 9327628, dirname='icu')

# WARNING: if the cURL version changes, make sure that the accompanying patch file (curl_patch) is updated
curl = tardep('http://curl.haxx.se/download/', 'curl-7.18.1', '.tar.bz2', 1700966)

# this patch hacks cURL to assume all URLS are UTF-8 encoded (which is true when they are coming from webkit,
# our only user of cURL. this fixes problems when accessing file:/// paths on the hard disk under non-english
# locales). applied only for windows.
curl_patch = 'curl_utf8_urls.diff'

jpeg = tardep('http://www.ijg.org/files/', 'jpegsrc.v7', '.tar.gz', 960379, dirname = 'jpeg-7')
Beispiel #3
0
#__LICENSE_GOES_HERE__
from buildutil import dpy, cd, tardep
import os.path

DIGSBY_ROOT = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
assert os.path.isdir(DIGSBY_ROOT)

i18bin = tardep('http://mini/deps/i18n/win/', 'i18nbin', '.zip', 1037011)

def download_i18n_tools():
    with cd(DIGSBY_ROOT, 'build', 'msw'):
        d = i18bin.get()
        return os.path.abspath(d)

def make_po_files():
    toolsdir = download_i18n_tools()
    path = os.pathsep.join((toolsdir, os.environ.get('PATH', '')))

    with cd(DIGSBY_ROOT):
        dpy(['mki18n.py', '-m', '-v', '--domain=Digsby', DIGSBY_ROOT],
            addenv=dict(PATH=path))

if __name__ == '__main__':
    make_po_files()

Beispiel #4
0
# __LICENSE_GOES_HERE__
from buildutil import tardep, DEBUG, git, cd, run, DEPS_DIR, copy_different
from os.path import isdir
import os.path

thisdir = os.path.dirname(os.path.abspath(__file__))

lzma_sdk = tardep("http://mini/mirror/", "lzma920", ".tar.bz2", 534077, indir="lzma920")

ppmd7_git_url = "http://mini/git/pyppmd.git"
ppmd7_dir = "pyppmd"


def build():
    with cd(thisdir):
        lzma_dir = lzma_sdk.get()

        if not isdir(ppmd7_dir):
            git.run(["clone", ppmd7_git_url])
            assert isdir(ppmd7_dir)

        with cd(ppmd7_dir):
            libname = "ppmd7"
            config = "Release" if not DEBUG else "Debug"
            run(["vcbuild", "libppmd7.sln", "%s|Win32" % config])
            for ext in (".dll", ".pdb"):
                copy_different(os.path.join(config, libname + ext), DEPS_DIR)


if __name__ == "__main__":
    build()
Beispiel #5
0
#__LICENSE_GOES_HERE__
from buildutil import tardep, DEBUG, git, cd, run, DEPS_DIR, copy_different
from os.path import isdir
import os.path
thisdir = os.path.dirname(os.path.abspath(__file__))

lzma_sdk = tardep('http://mini/mirror/',
                  'lzma920',
                  '.tar.bz2',
                  534077,
                  indir='lzma920')

ppmd7_git_url = 'http://mini/git/pyppmd.git'
ppmd7_dir = 'pyppmd'


def build():
    with cd(thisdir):
        lzma_dir = lzma_sdk.get()

        if not isdir(ppmd7_dir):
            git.run(['clone', ppmd7_git_url])
            assert isdir(ppmd7_dir)

        with cd(ppmd7_dir):
            libname = 'ppmd7'
            config = 'Release' if not DEBUG else 'Debug'
            run(['vcbuild', 'libppmd7.sln', '%s|Win32' % config])
            for ext in ('.dll', '.pdb'):
                copy_different(os.path.join(config, libname + ext), DEPS_DIR)
Beispiel #6
0
    if cfg == 'debug':
        sys._build_debug = True

import shutil
import os

sys.path.append('..') if '..' not in sys.path else None
from buildutil import run, cd, tardep, unzip, filerepl, git, inform, timed, DEBUG, copy_different, DEPS_DIR, get_patch_cmd
from os import makedirs, environ
from os.path import isdir, abspath, exists, join as pathjoin, isfile
from constants import TARBALL_URL, WXWEBKIT_GIT_REPO
from shutil import move

thisdir = abspath(os.path.dirname(__file__))

zlib = tardep('http://symbolsystem.com/build/msvc2008/', 'zlib-1.2.3', '.zip',
              629830)

patch_cmd = get_patch_cmd()

icu = tardep('http://download.icu-project.org/files/icu4c/49.1.2/',
             'icu4c-49_1_2-Win32-msvc10',
             '.zip',
             9327628,
             dirname='icu')

# WARNING: if the cURL version changes, make sure that the accompanying patch file (curl_patch) is updated
curl = tardep('http://curl.haxx.se/download/', 'curl-7.18.1', '.tar.bz2',
              1700966)

# this patch hacks cURL to assume all URLS are UTF-8 encoded (which is true when they are coming from webkit,
# our only user of cURL. this fixes problems when accessing file:/// paths on the hard disk under non-english