예제 #1
0
def transpile_web_uis(production,
                      target_gen_dir,
                      root_gen_dir,
                      entry_points,
                      depfile_path,
                      depfile_sourcename,
                      public_asset_path=None,
                      env=None):
    if env is None:
        env = os.environ.copy()

    args = [NPM, 'run', 'web-ui', '--']

    if production:
        args.append("--mode=production")
    else:
        args.append("--mode=development")

    if public_asset_path is not None:
        args.append("--output-public-path=" + public_asset_path)

    # entrypoints
    for entry in entry_points:
        args.append(entry)
    env["ROOT_GEN_DIR"] = root_gen_dir
    env["TARGET_GEN_DIR"] = target_gen_dir
    env["DEPFILE_PATH"] = depfile_path
    env["DEPFILE_SOURCE_NAME"] = depfile_sourcename

    dirname = os.path.abspath(os.path.join(__file__, '..', '..'))
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #2
0
def rebuild_native_modules(verbose, configuration):
    script_path = os.path.join(SOURCE_ROOT, 'script',
                               'rebuild-test-modules.py')
    args = ['--configuration', configuration]
    if verbose:
        args += ['--verbose']
    execute_stdout([sys.executable, script_path] + args)
예제 #3
0
def build_libchromiumcontent(verbose, target_arch, defines):
    args = [os.path.join(SOURCE_ROOT, 'script', 'build-libchromiumcontent.py')]
    if verbose:
        args += ['-v']
    if defines:
        args += ['--defines', defines]
    execute_stdout(args + ['--target_arch', target_arch])
예제 #4
0
def create_node_headers():
    execute_stdout([
        sys.executable,
        os.path.join(SOURCE_ROOT, 'script', 'create-node-headers.py'),
        '--version',
        get_electron_version()
    ])
예제 #5
0
def download_sysroot(target_arch):
  if target_arch == 'ia32':
    target_arch = 'i386'
  if target_arch == 'x64':
    target_arch = 'amd64'
  execute_stdout([os.path.join(SOURCE_ROOT, 'script', 'install-sysroot.py'),
                  '--arch', target_arch])
def main():
  os.chdir(SOURCE_ROOT)

  args = parse_args()
  config = args.configuration

  if args.verbose:
    enable_verbose_mode()

  spec_modules = os.path.join(SOURCE_ROOT, 'spec', 'node_modules')
  out_dir = os.path.join(SOURCE_ROOT, 'out', config)
  version = get_electron_version()
  node_dir = os.path.join(out_dir, 'node-{0}'.format(version))

  # Create node headers
  script_path = os.path.join(SOURCE_ROOT, 'script', 'create-node-headers.py')
  execute_stdout([sys.executable, script_path, '--version', version,
                  '--directory', out_dir])

  if PLATFORM == 'win32':
    lib_dir = os.path.join(node_dir, 'Release')
    safe_mkdir(lib_dir)
    iojs_lib = os.path.join(lib_dir, 'iojs.lib')
    atom_lib = os.path.join(out_dir, 'node.dll.lib')
    shutil.copy2(atom_lib, iojs_lib)
    node_lib = os.path.join(lib_dir, 'node.lib')
    shutil.copy2(atom_lib, node_lib)

  # Native modules can only be compiled against release builds on Windows
  if config[0] == 'R' or PLATFORM != 'win32':
    update_electron_modules(os.path.dirname(spec_modules), get_target_arch(),
                            node_dir)
  else:
    update_node_modules(os.path.dirname(spec_modules))
예제 #7
0
def download_sysroot(target_arch):
    if target_arch == 'ia32':
        target_arch = 'i386'
    execute_stdout([
        os.path.join(SOURCE_ROOT, 'script', 'install-sysroot.py'), '--arch',
        target_arch
    ])
예제 #8
0
def transpile_web_uis(options):
    env = os.environ.copy()

    args = [NPM, 'run', 'web-ui', '--']

    if options['production']:
        args.append("--mode=production")
    else:
        args.append("--mode=development")

    if options['public_asset_path'] is not None:
        args.append("--output-public-path=" + options['public_asset_path'])

    # web pack aliases
    for alias in options['webpack_aliases']:
        args.append("--webpack_alias=" + alias)

    # extra module locations
    for module_path in options['extra_modules']:
        args.append("--extra_modules=" + module_path)

    # entrypoints
    for entry in options['entry_points']:
        args.append(entry)
    env["ROOT_GEN_DIR"] = options['root_gen_dir']
    env["TARGET_GEN_DIR"] = options['target_gen_dir']
    env["DEPFILE_PATH"] = options['depfile_path']
    env["DEPFILE_SOURCE_NAME"] = options['depfile_sourcename']

    dirname = os.path.abspath(os.path.join(__file__, '..', '..'))
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #9
0
def build_libchromiumcontent(verbose, target_arch, defines):
    args = [sys.executable, os.path.join(SOURCE_ROOT, "script", "build-libchromiumcontent.py")]
    if verbose:
        args += ["-v"]
    if defines:
        args += ["--defines", defines]
    execute_stdout(args + ["--target_arch", target_arch])
예제 #10
0
def build_libchromiumcontent(verbose, target_arch, defines):
  args = [os.path.join(SOURCE_ROOT, 'script', 'build-libchromiumcontent.py')]
  if verbose:
    args += ['-v']
  if defines:
    args += ['--defines', defines]
  execute_stdout(args + ['--target_arch', target_arch])
예제 #11
0
def main():
  os.chdir(SOURCE_ROOT)

  args = parse_args()

  if args.verbose:
    enable_verbose_mode()

  # ./script/bootstrap
  # ./script/update -t x64 --defines=''
  # ./script/build --no_shared_library -t x64
  # ./script/create-dist -c static_library -t x64 --no_zip
  script_dir = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor',
                            'libchromiumcontent', 'script')
  bootstrap = os.path.join(script_dir, 'bootstrap')
  update = os.path.join(script_dir, 'update')
  build = os.path.join(script_dir, 'build')
  create_dist = os.path.join(script_dir, 'create-dist')
  execute_stdout([sys.executable, bootstrap])
  execute_stdout([sys.executable, update, '-t', args.target_arch,
                  '--defines', args.defines])
  # without static library
  execute_stdout([sys.executable, build, '-t', args.target_arch, '-c', 'shared_library'])
  execute_stdout([sys.executable, build, '-t', args.target_arch, '-c', 'ffmpeg'])
  execute_stdout([sys.executable, create_dist, '-c', 'shared_library',
                  '--no_zip', '-t', args.target_arch])
def main():
    os.chdir(SOURCE_ROOT)

    args = parse_args()
    config = args.configuration

    if args.verbose:
        enable_verbose_mode()

    spec_modules = os.path.join(SOURCE_ROOT, 'spec', 'node_modules')
    out_dir = os.path.join(SOURCE_ROOT, 'out', config)
    version = get_electron_version()
    node_dir = os.path.join(out_dir, 'node-{0}'.format(version))

    # Create node headers
    script_path = os.path.join(SOURCE_ROOT, 'script', 'create-node-headers.py')
    execute_stdout([
        sys.executable, script_path, '--version', version, '--directory',
        out_dir
    ])

    if PLATFORM == 'win32':
        lib_dir = os.path.join(node_dir, 'Release')
        safe_mkdir(lib_dir)
        iojs_lib = os.path.join(lib_dir, 'iojs.lib')
        atom_lib = os.path.join(out_dir, 'node.dll.lib')
        shutil.copy2(atom_lib, iojs_lib)

    # Native modules can only be compiled against release builds on Windows
    if config == 'R' or PLATFORM != 'win32':
        update_electron_modules(os.path.dirname(spec_modules),
                                get_target_arch(), node_dir)
    else:
        update_node_modules(os.path.dirname(spec_modules))
예제 #13
0
def update_atom_modules(dirname):
  with scoped_cwd(dirname):
    apm = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'apm')
    if sys.platform in ['win32', 'cygwin']:
      apm = os.path.join(SOURCE_ROOT, 'node_modules', 'atom-package-manager',
                         'bin', 'apm.cmd')
    execute_stdout([apm, 'install'])
예제 #14
0
def build_extension(dirname, env=None):
    if env is None:
        env = os.environ.copy()

    args = [NPM, 'run', 'build']
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #15
0
def run_update(defines, msvs):
  args = [sys.executable, os.path.join(SOURCE_ROOT, 'script', 'update.py')]
  if defines:
    args += ['--defines', defines]
  if msvs:
    args += ['--msvs']

  execute_stdout(args)
예제 #16
0
def update_node_modules(dirname, env=None):
    if env is None:
        env = os.environ
    with scoped_cwd(dirname):
        if is_verbose_mode():
            execute_stdout([NPM, 'install', '--verbose'], env)
        else:
            execute_stdout([NPM, 'install'], env)
예제 #17
0
def run_update(defines, msvs):
    args = [sys.executable, os.path.join(SOURCE_ROOT, 'script', 'update.py')]
    if defines:
        args += ['--defines', defines]
    if msvs:
        args += ['--msvs']

    execute_stdout(args)
예제 #18
0
def run_update(defines, disable_clang, clang_dir):
    env = os.environ.copy()
    if not disable_clang and clang_dir == '':
        # Build with prebuilt clang.
        set_clang_env(env)

    update = os.path.join(SOURCE_ROOT, 'script', 'update.py')
    execute_stdout([sys.executable, update, '--defines', defines], env)
예제 #19
0
def update_node_modules(dirname, env=None):
    if env is None:
        env = os.environ.copy()
    with scoped_cwd(dirname):
        args = [NPM, 'install']
        if is_verbose_mode():
            args += ['--verbose']
        execute_stdout(args, env)
예제 #20
0
파일: bootstrap.py 프로젝트: brave/electron
def update_node_modules(dirname, env=None):
  if env is None:
    env = os.environ.copy()
  with scoped_cwd(dirname):
    args = [NPM, 'install']
    if is_verbose_mode():
      args += ['--verbose']
    execute_stdout(args, env)
예제 #21
0
def run_update(defines, msvs):
    args = [sys.executable, os.path.join(SOURCE_ROOT, "script", "update.py")]
    if defines:
        args += ["--defines", defines]
    if msvs:
        args += ["--msvs"]

    execute_stdout(args)
예제 #22
0
def run_update(defines, disable_clang, clang_dir):
  env = os.environ.copy()
  if not disable_clang and clang_dir == '':
    # Build with prebuilt clang.
    set_clang_env(env)

  update = os.path.join(SOURCE_ROOT, 'script', 'update.py')
  execute_stdout([sys.executable, update, '--defines', defines], env)
예제 #23
0
def update_node_modules(dirname, env=None):
  if env is None:
    env = os.environ
  with scoped_cwd(dirname):
    if is_verbose_mode():
      execute_stdout([NPM, 'install', '--verbose'], env)
    else:
      execute_stdout([NPM, 'install'], env)
예제 #24
0
def build_libchromiumcontent(verbose, target_arch):
    args = [
        sys.executable,
        os.path.join(SOURCE_ROOT, 'script', 'build-libchromiumcontent.py')
    ]
    if verbose:
        args += ['-v']

    execute_stdout(args + ['--target_arch', target_arch])
def build_extension(dirname, build_dir, env=None):
    if env is None:
        env = os.environ.copy()

    env["TARGET_GEN_DIR"] = os.path.abspath(build_dir)

    args = [NPM, 'run', 'build']
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #26
0
파일: bootstrap.py 프로젝트: Ankitvaibs/SM
def download_sysroot(target_arch):
  if target_arch == 'ia32':
    target_arch = 'i386'
  if target_arch == 'x64':
    target_arch = 'amd64'
  execute_stdout([sys.executable,
                  os.path.join(SOURCE_ROOT, 'script', 'install-sysroot.py'),
                  '--arch', target_arch],
                  cwd=VENDOR_DIR)
예제 #27
0
def bootstrap_brightray(is_dev, url, target_arch):
  bootstrap = os.path.join(VENDOR_DIR, 'brightray', 'script', 'bootstrap')
  args = [
    '--commit', LIBCHROMIUMCONTENT_COMMIT,
    '--target_arch', target_arch,
    url,
  ]
  if is_dev:
    args = ['--dev'] + args
  execute_stdout([sys.executable, bootstrap] + args)
예제 #28
0
def bootstrap_brightray(is_dev, url, target_arch):
  bootstrap = os.path.join(VENDOR_DIR, 'brightray', 'script', 'bootstrap')
  args = [
    '--commit', LIBCHROMIUMCONTENT_COMMIT,
    '--target_arch', target_arch,
    url,
  ]
  if is_dev:
    args = ['--dev'] + args
  execute_stdout([sys.executable, bootstrap] + args)
예제 #29
0
def generate_tsconfig(root_gen_dir, env=None):
    if env is None:
        env = os.environ.copy()

    args = [NPM, 'run', 'web-ui-gen-tsconfig']

    env["ROOT_GEN_DIR"] = root_gen_dir

    dirname = os.path.abspath(os.path.join(__file__, '..', '..'))
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #30
0
def build_libchromiumcontent(verbose, target_arch, debug,
                             force_update):
  args = [sys.executable,
          os.path.join(SOURCE_ROOT, 'script', 'build-libchromiumcontent.py')]
  if debug:
    args += ['-d']
  if force_update:
    args += ['--force-update']
  if verbose:
    args += ['-v']
  execute_stdout(args + ['--target_arch', target_arch])
예제 #31
0
def main():
    args = parse_args()
    env = os.environ.copy()

    with scoped_cwd(WEB_DISCOVERY_DIR):
        if args.verbose:
            enable_verbose_mode()
        if args.install:
            execute_stdout([NPM, 'install'], env=env)
        if args.build:
            execute_stdout([NPM, 'run', 'build-module'], env=env)
예제 #32
0
def build_libchromiumcontent(verbose, target_arch, debug,
                             force_update):
  args = [sys.executable,
          os.path.join(SOURCE_ROOT, 'script', 'build-libchromiumcontent.py')]
  if debug:
    args += ['-d']
  if force_update:
    args += ['--force-update']
  if verbose:
    args += ['-v']
  execute_stdout(args + ['--target_arch', target_arch])
예제 #33
0
def transpile_web_uis(dirname, production, target_gen_dir, env=None):
    if env is None:
        env = os.environ.copy()

    if production:
        args = [NPM, 'run', 'web-ui']
    else:
        args = [NPM, 'run', 'web-ui-dev']

    env["TARGET_GEN_DIR"] = target_gen_dir
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #34
0
def main():
    args = parse_args()
    env = os.environ.copy()

    with scoped_cwd(WEB_DISCOVERY_DIR):
        if args.verbose:
            enable_verbose_mode()
        if args.install:
            execute_stdout([NPM, 'install', '--no-save', '--yes'], env=env)
        if args.build:
            env["OUTPUT_PATH"] = args.output_path
            execute_stdout([NPM, 'run', 'build-module'], env=env)
예제 #35
0
def transpile_web_uis(production, target_gen_dir, env=None):
    if env is None:
        env = os.environ.copy()

    if production:
        args = [NPM, 'run', 'web-ui']
    else:
        args = [NPM, 'run', 'web-ui-dev']

    env["TARGET_GEN_DIR"] = target_gen_dir
    dirname = os.path.abspath(os.path.join(__file__, '..', '..'))
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #36
0
def generate_grd(target_include_dir, resource_name, env=None):
    if env is None:
        env = os.environ.copy()

    args = [NPM, 'run', 'web-ui-gen-grd']

    env["RESOURCE_NAME"] = resource_name
    env["ID_PREFIX"] = "IDR_" + resource_name.upper() + '_'
    env["TARGET_DIR"] = os.path.abspath(target_include_dir)

    dirname = os.path.abspath(os.path.join(__file__, '..', '..'))
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #37
0
def generate_grd(target_include_dir, resource_name, env=None):
    if env is None:
        env = os.environ.copy()

    args = [NPM, 'run', 'web-ui-gen-grd']

    env["RESOURCE_NAME"] = resource_name
    env["ID_PREFIX"] = "IDR_" + resource_name.upper() + '_'
    env["TARGET_DIR"] = os.path.abspath(target_include_dir)

    dirname = os.path.abspath(os.path.join(__file__, '..', '..'))
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #38
0
def update_node_modules(dirname, env=None):
  if env is None:
    env = os.environ
  if PLATFORM == 'linux':
    llvm_dir = os.path.join(SOURCE_ROOT, 'vendor', 'llvm-build',
                            'Release+Asserts', 'bin')
    env['CC']  = os.path.join(llvm_dir, 'clang')
    env['CXX'] = os.path.join(llvm_dir, 'clang++')
    env['npm_config_clang'] = '1'
  with scoped_cwd(dirname):
    if is_verbose_mode():
      execute_stdout([NPM, 'install', '--verbose'], env)
    else:
      execute_stdout([NPM, 'install'], env)
예제 #39
0
def bootstrap_brightray(is_dev, url, target_arch, libcc_source_path,
                        libcc_shared_library_path, libcc_static_library_path):
    bootstrap = os.path.join(VENDOR_DIR, 'brightray', 'script', 'bootstrap')
    args = [
        '--commit', LIBCHROMIUMCONTENT_COMMIT, '--target_arch', target_arch,
        url
    ]
    if is_dev:
        args = ['--dev'] + args
    if (libcc_source_path != None and libcc_shared_library_path != None
            and libcc_static_library_path != None):
        args += [
            '--libcc_source_path', libcc_source_path,
            '--libcc_shared_library_path', libcc_shared_library_path,
            '--libcc_static_library_path', libcc_static_library_path
        ]
    execute_stdout([sys.executable, bootstrap] + args)
예제 #40
0
def bootstrap_brightray(
    is_dev, url, target_arch, libcc_source_path, libcc_shared_library_path, libcc_static_library_path
):
    bootstrap = os.path.join(VENDOR_DIR, "brightray", "script", "bootstrap")
    args = ["--commit", LIBCHROMIUMCONTENT_COMMIT, "--target_arch", target_arch, url]
    if is_dev:
        args = ["--dev"] + args
    if libcc_source_path != None and libcc_shared_library_path != None and libcc_static_library_path != None:
        args += [
            "--libcc_source_path",
            libcc_source_path,
            "--libcc_shared_library_path",
            libcc_shared_library_path,
            "--libcc_static_library_path",
            libcc_static_library_path,
        ]
    execute_stdout([sys.executable, bootstrap] + args)
예제 #41
0
def bootstrap_brightray(is_dev, url, target_arch, libcc_source_path,
                        libcc_shared_library_path,
                        libcc_static_library_path):
  bootstrap = os.path.join(VENDOR_DIR, 'brightray', 'script', 'bootstrap')
  args = [
    '--commit', LIBCHROMIUMCONTENT_COMMIT,
    '--target_arch', target_arch,
    url
  ]
  if is_dev:
    args = ['--dev'] + args
  if (libcc_source_path != None and
      libcc_shared_library_path != None and
      libcc_static_library_path != None):
    args += ['--libcc_source_path', libcc_source_path,
             '--libcc_shared_library_path', libcc_shared_library_path,
             '--libcc_static_library_path', libcc_static_library_path]
  execute_stdout([sys.executable, bootstrap] + args)
예제 #42
0
def update_node_modules(dirname, env=None):
  if env is None:
    env = os.environ.copy()
  if PLATFORM == 'linux':
    # Use prebuilt clang for building native modules.
    set_clang_env(env)
    env['npm_config_clang'] = '1'
  with scoped_cwd(dirname):
    args = [NPM, 'install']
    if is_verbose_mode():
      args += ['--verbose']
    # Ignore npm install errors when running in CI.
    if os.environ.has_key('CI'):
      try:
        execute_stdout(args, env)
      except subprocess.CalledProcessError:
        pass
    else:
      execute_stdout(args, env)
예제 #43
0
def update_node_modules(dirname, env=None):
    if env is None:
        env = os.environ.copy()
    if PLATFORM == 'linux':
        # Use prebuilt clang for building native modules.
        set_clang_env(env)
        env['npm_config_clang'] = '1'
    with scoped_cwd(dirname):
        args = [NPM, 'install']
        if is_verbose_mode():
            args += ['--verbose']
        # Ignore npm install errors when running in CI.
        if os.environ.has_key('CI'):
            try:
                execute_stdout(args, env)
            except subprocess.CalledProcessError:
                pass
        else:
            execute_stdout(args, env)
예제 #44
0
def update_node_modules(dirname, env=None):
    if env is None:
        env = os.environ
    if PLATFORM == 'linux':
        # Use prebuilt clang for building native modules.
        llvm_dir = os.path.join(SOURCE_ROOT, 'vendor', 'llvm-build',
                                'Release+Asserts', 'bin')
        env['CC'] = os.path.join(llvm_dir, 'clang')
        env['CXX'] = os.path.join(llvm_dir, 'clang++')
        env['npm_config_clang'] = '1'
    with scoped_cwd(dirname):
        args = [NPM, 'install']
        if is_verbose_mode():
            args += ['--verbose']
        # Ignore npm install errors when running in CI.
        if os.environ.has_key('CI'):
            try:
                execute_stdout(args, env)
            except subprocess.CalledProcessError:
                pass
        else:
            execute_stdout(args, env)
예제 #45
0
def update_node_modules(dirname, env=None):
  if env is None:
    env = os.environ
  if PLATFORM == 'linux':
    # Use prebuilt clang for building native modules.
    llvm_dir = os.path.join(SOURCE_ROOT, 'vendor', 'llvm-build',
                            'Release+Asserts', 'bin')
    env['CC']  = os.path.join(llvm_dir, 'clang')
    env['CXX'] = os.path.join(llvm_dir, 'clang++')
    env['npm_config_clang'] = '1'
  with scoped_cwd(dirname):
    args = [NPM, 'install']
    if is_verbose_mode():
      args += ['--verbose']
    # Ignore npm install errors when running in CI.
    if os.environ.has_key('CI'):
      try:
        execute_stdout(args, env)
      except subprocess.CalledProcessError:
        pass
    else:
      execute_stdout(args, env)
예제 #46
0
def transpile_web_uis(production, target_gen_dir,
                      entry_points, public_asset_path=None, env=None):
    if env is None:
        env = os.environ.copy()

    args = [NPM, 'run', 'web-ui', '--']

    if production:
        args.append("--mode=production")
    else:
        args.append("--mode=development")

    if public_asset_path is not None:
        args.append("--output-public-path=" + public_asset_path)

    # entrypoints
    for entry in entry_points:
        args.append(entry)

    env["TARGET_GEN_DIR"] = os.path.abspath(target_gen_dir)

    dirname = os.path.abspath(os.path.join(__file__, '..', '..'))
    with scoped_cwd(dirname):
        execute_stdout(args, env)
예제 #47
0
def main():
  os.chdir(SOURCE_ROOT)

  args = parse_args()
  if args.verbose:
    enable_verbose_mode()

  # ./script/bootstrap
  # ./script/update -t x64 --defines=''
  # ./script/build --no_shared_library -t x64
  # ./script/create-dist -c static_library -t x64 --no_zip
  script_dir = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor',
                            'libchromiumcontent', 'script')
  bootstrap = os.path.join(script_dir, 'bootstrap')
  update = os.path.join(script_dir, 'update')
  build = os.path.join(script_dir, 'build')
  create_dist = os.path.join(script_dir, 'create-dist')
  execute_stdout([sys.executable, bootstrap])
  execute_stdout([sys.executable, update, '-t', args.target_arch,
                  '--defines', args.defines])
  execute_stdout([sys.executable, build, '-R', '-t', args.target_arch])
  execute_stdout([sys.executable, create_dist, '-c', 'static_library',
                  '--no_zip', '-t', args.target_arch])
예제 #48
0
def update_win32_python():
  with scoped_cwd(VENDOR_DIR):
    if not os.path.exists('python_26'):
      execute_stdout(['git', 'clone', PYTHON_26_URL])
예제 #49
0
def setup_requests():
  with scoped_cwd(os.path.join(VENDOR_DIR, 'requests')):
    execute_stdout([sys.executable, 'setup.py', 'build'])
예제 #50
0
def update_submodules():
  execute_stdout(['git', 'submodule', 'sync'])
  execute_stdout(['git', 'submodule', 'update', '--init', '--recursive'])
예제 #51
0
def run_update():
  update = os.path.join(SOURCE_ROOT, 'script', 'update.py')
  execute_stdout([sys.executable, update])
예제 #52
0
def update_clang():
  execute_stdout([os.path.join(SOURCE_ROOT, 'script', 'update-clang.sh')])
예제 #53
0
def update_win32_python():
  with scoped_cwd(VENDOR_DIR):
    if not os.path.exists('python_26'):
      execute_stdout(['git', 'clone', PYTHON_26_URL])
예제 #54
0
파일: test.py 프로젝트: akrick/electron
def rebuild_native_modules(verbose, configuration):
  script_path = os.path.join(SOURCE_ROOT, 'script', 'rebuild-test-modules.py')
  args = ['--configuration', configuration]
  if verbose:
    args += ['--verbose']
  execute_stdout([sys.executable, script_path] + args)
예제 #55
0
def setup_python_libs():
  for lib in ('requests', 'boto'):
    with scoped_cwd(os.path.join(VENDOR_DIR, lib)):
      execute_stdout([sys.executable, 'setup.py', 'build'])
예제 #56
0
def update_node_modules(dirname):
  with scoped_cwd(dirname):
    if is_verbose_mode():
      execute_stdout([NPM, 'install', '--verbose'])
    else:
      execute_stdout([NPM, 'install'])
예제 #57
0
def bootstrap_brightray(url):
  bootstrap = os.path.join(VENDOR_DIR, 'brightray', 'script', 'bootstrap')
  execute_stdout([sys.executable, bootstrap, '--commit',
                  LIBCHROMIUMCONTENT_COMMIT, url])
예제 #58
0
def update_atom_shell():
  update = os.path.join(SOURCE_ROOT, 'script', 'update.py')
  execute_stdout([sys.executable, update])