Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (64 sloc) 2.55 KB

Configuration

To configure your Uno environment, edit the file ~/.unoconfig (or %USERPROFILE%\.unoconfig on Windows) - create it if necessary.

Type uno config to review your current configuration.

Standard library

To work with fuselibs source code, add this snippet to your .unoconfig, after cloning the repo:

C:\> git clone https://github.com/fusetools/fuselibs-public.git
if (DEV) {
    Packages.SourcePaths += "C:\\fuselibs-public\\Source"
}

(Replace C:\fuselibs-public\Source with your own location.)

The if (DEV) test makes sure we only use those packages when running uno built from source. If omitted, the packages are also made available to any installed versions of Fuse Studio and Uno.

To build your standard library, type uno doctor -e.

Android

To support building Android apps, we need to know where your Android SDKs are installed.

Windows

Android.NDK.Directory: "%LOCALAPPDATA%\\Android\\sdk\\ndk-bundle"
Android.SDK.Directory: "%LOCALAPPDATA%\\Android\\sdk"
Java.JDK.Directory: "%PROGRAMFILES%\\Java\\jdk1.8.0_40"

macOS

Android.NDK.Directory: %HOME%/Library/Android/sdk/ndk-bundle
Android.SDK.Directory: %HOME%/Library/Android/sdk

If you have Fuse Studio, running fuse install android will set this up automatically.

iOS

To support building iOS apps, we need macOS and Xcode.

  • Cocoapods is required by some Uno packages.

This is usually automatically detected, but configuring a signing identity can be useful.

iOS.DeveloperTeam: ABCD012345

Native

To support building native apps, we need CMake and C++ compilers.

  • macOS: Xcode with command line tools
  • Windows: Visual Studio 2017

If cmake isn't in your PATH, the location can be provided like this:

Tools.CMake: `%PROGRAMFILES%\CMake\bin\cmake.exe`

Node.js

We need node / npm to install and use JavaScript packages.

If the commands aren't in your PATH, their locations can be provided like this:

Tools.Node: `%PROGRAMFILES%\nodejs\node.exe`
Tools.NPM: `%PROGRAMFILES%\nodejs\npm.cmd`

Package manager

These properties have meaningful defaults, but can be customized like this:

Packages.Feeds += "https://www.packages.org/api/v2"
Packages.InstallDirectory: install/my/packages/here
Packages.SearchPaths += find/my/packages/here
Packages.SourcePaths += build/these/projects