Exemplo n.º 1
0
def copy_python_binding_release_files(softdevice_name='s130'):
    s130_bindings_release_path = posixpath.join(config.RELEASE_DIR, 'python')
    utility.make_clean_directory(s130_bindings_release_path)

    python_binding_lib_name = softdevice_name + '_' + config.LIB_NAME
    python_binding_py_name = python_binding_lib_name + '.py'
    python_binding_pyd_name = '_' + python_binding_lib_name + config.PYTHON_BINDING_SUFFIX

    python_bindings_build_path = posixpath.join(config.BUILD_DIR, 'python')
    python_binding_release_path = posixpath.join(config.RELEASE_DIR, 'python')

    utility.make_directory(python_binding_release_path)

    python_binding_py_path = posixpath.join(python_bindings_build_path,
                                            python_binding_py_name)
    python_binding_pyd_path = posixpath.join(python_bindings_build_path,
                                             python_binding_pyd_name)

    shutil.copy2(python_binding_py_path, python_binding_release_path)
    shutil.copy2(python_binding_pyd_path, python_binding_release_path)

    python_binding_path = config.BINDINGS_DIR
    python_binding_examples_path = posixpath.join(python_binding_path,
                                                  'examples')
    python_binding_examples_release_path = posixpath.join(
        python_binding_release_path, 'examples')

    python_bindings_util_path = posixpath.join(python_binding_path, 'src',
                                               'ble_driver_util.py')
    shutil.copy2(python_bindings_util_path, python_binding_release_path)
    shutil.copytree(python_binding_examples_path,
                    python_binding_examples_release_path)
Exemplo n.º 2
0
def copy_python_binding_release_files(softdevice_name='s130'):
    s130_bindings_release_path = posixpath.join(config.RELEASE_DIR, 'python')
    utility.make_clean_directory(s130_bindings_release_path)

    python_binding_lib_name = softdevice_name + '_' + config.LIB_NAME
    python_binding_py_name = python_binding_lib_name + '.py'
    python_binding_pyd_name = '_' + python_binding_lib_name + config.PYTHON_BINDING_SUFFIX

    python_bindings_build_path = posixpath.join(config.BUILD_DIR, 'python')
    python_binding_release_path = posixpath.join(config.RELEASE_DIR, 'python')

    utility.make_directory(python_binding_release_path)

    python_binding_py_path = posixpath.join(python_bindings_build_path,
                                            python_binding_py_name)
    python_binding_pyd_path = posixpath.join(python_bindings_build_path,
                                             python_binding_pyd_name)

    shutil.copy2(python_binding_py_path, python_binding_release_path)
    shutil.copy2(python_binding_pyd_path, python_binding_release_path)

    python_binding_path = config.BINDINGS_DIR
    python_binding_examples_path = posixpath.join(python_binding_path, 'examples')
    python_binding_examples_release_path = posixpath.join(python_binding_release_path, 'examples')

    python_bindings_util_path = posixpath.join(python_binding_path, 'src', 'ble_driver_util.py')
    shutil.copy2(python_bindings_util_path, python_binding_release_path)
    shutil.copytree(python_binding_examples_path, python_binding_examples_release_path)
Exemplo n.º 3
0
def copy_serialization_dll_release_files():
    logger.info('Copying built artifacts to %s.', config.RELEASE_DIR)

    utility.make_clean_directory(config.RELEASE_DIR)

    copy_licenses()
    copy_documentation()
    copy_serialization_dll()

    if config.PLATFORM_SYSTEM == 'Windows':
        copy_windows_lib()

    copy_header_files()
    copy_hex_files()
    copy_example_files()
Exemplo n.º 4
0
def copy_serialization_dll_release_files():
    logger.info('Copying built artifacts to %s.', config.RELEASE_DIR)

    utility.make_clean_directory(config.RELEASE_DIR)

    copy_licenses()
    copy_documentation()
    copy_serialization_dll()

    if config.PLATFORM_SYSTEM == 'Windows':
        copy_windows_lib()

    copy_header_files()
    copy_hex_files()
    copy_example_files()