File: COCOA.md

package info (click to toggle)
utox 0.18.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 10,792 kB
  • sloc: ansic: 102,804; objc: 2,385; cpp: 2,069; java: 1,094; python: 868; javascript: 703; xml: 424; sh: 208; makefile: 53; sed: 9
file content (92 lines) | stat: -rw-r--r-- 1,994 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# uTox-cocoa specific notes

* 10.10 SDK is required to build, but the product should be
  compatible back to 10.7.
  * Support for Mavericks SDK is TODO (ifdef out 10.10 bits)
  * Please make sure your dependencies are built with the lowest
    `MACOSX_DEPLOYMENT_TARGET` possible
  * The gameplan for 10.6 is to just replace AVFoundation with QTKit
    equivalents.
    * 32-bit support would be nice too (PowerPC is probably too much)
* Build an OS X .app package by using `make uTox.app`.
  * Some features will not work unless you run from a `.app`. These
    include desktop notifications and the dock icon (???).
  * An Xcode project file is TODO
* It is recommended to define `UTOX_COCOA_BRAVE` while building for
  release. It will disable some basic sanity checks which should
  always pass if the code is correct.
* You can instruct uTox to use Yosemite blur as a UI element colour
  in utox_theme.ini by (not implemented currently)
* When filing issues directly related to uTox-cocoa, please @stal888 in
  your issue so I get notified.

## How to compile dependencies

### with Homebrew

```bash
brew tap tox/tox
brew install --only-dependencies --HEAD utox
```

### with Autotools

```bash
git clone git://github.com/irungentoo/filter_audio.git
cd filter_audio
make
make install
cd ..

git clone git://github.com/TokTok/c-toxcore.git
cd c-toxcore
cmake .
make
make install
cd ..
```

## How to compile uTox

```bash
git clone --recursive git://github.com/uTox/uTox.git
cd uTox
mkdir build
cd build
cmake ..
make
```

### How to install uTox

```bash
sudo make install
```

### How to create a DMG for distribution

```bash
cmake .. -DSTATIC_ALL=ON
make
sudo make package
```

Done!

## How to create an Xcode project

1. Install the [dependencies](#how-to-compile-dependencies)

```bash
git clone --recursive git://github.com/uTox/uTox.git
cd uTox
mkdir build
cd build
cmake -GXcode ..

xcodebuild -configuration Release
```

## Adding to uTox-cocoa

* Please keep your C straight