/Trevi-sys

Swift libuv bindings for Trevi

Primary LanguageSwiftApache License 2.0Apache-2.0

Trevi-sys

Swift 2.2 Mac OS X Ubuntu Apache 2

Overview

This is the TreviSys module for Trevi project.

Swift version

Trevi works with the latest version of Swift 2.2 Snapshot. You can download Swift binaries on here.

Installation (Ubuntu; APT-based linux)

  1. Install Swift dependencies on linux :

    sudo apt-get install clang libicu-dev
  2. Install libuv dependencies on linux :

    sudo apt-get install autoconf make build-essential gcc g++
  3. Install Swift depending on your platform on the follow link (The latest version are recommended).

  4. After installation of Swift, check your PATH environment variable whether Swift binary path is set or not. If it is not set execute below. :

    $ export PATH=/path/to/swift/installed:"${PATH}"

    More details : 'Linux' on here

  5. Clone libuv :

    $ git clone https://github.com/libuv/libuv.git
  6. Install libuv :

    $ cd libuv
    $ sh autogen.sh
    $ ./configure
    $ make
    $ make check
    $ make install

    More details : Build Instructions on libuv

Installation (OS X)

  1. Install Swift depending on your platform on the follow link (The latest version are recommended).

  2. After installation of Swift, check your PATH environment variable whether Swift binary path is set or not. If it is not set execute below. :

    $ export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"

    More details : 'Apple Platforms' on here

  3. Clone libuv :

    $ git clone https://github.com/libuv/libuv.git
  4. Install libuv :

    $ cd libuv
    $ sh autogen.sh
    $ ./configure
    $ make
    $ make check
    $ make install

    or using Homebrew :

    $ brew install --HEAD libuv

    More details : Build Instructions on libuv

Versioning

TreviSys follows the semantic versioning scheme. The API change and backwards compatibility rules are those indicated by SemVer.

License

This library is licensed under Apache 2.0. Full license text is available in LICENSE.

Copyright 2015 Trevi Community

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.