README.md 2.44 KB
Newer Older
1 2
Ring Mac OSX
**********
Socapex's avatar
Socapex committed
3

4
This is the official Mac port of Ring.
Socapex's avatar
Socapex committed
5

6 7 8 9 10
For more information about the ring project, see the following:
- Main website: https://ring.cx/
- Bug tracker: https://tuleap.ring.cx/projects/ring/
- Repositories: https://gerrit-ring.savoirfairelinux.com

11 12
| App | CI | Packaging
| :-: | :-: | :-:
13
| [![Download from ring.cx](https://img.shields.io/badge/download-cx.ring-blue.svg)](https://ring.cx/en/download/mac-osx) | [![Build Status](https://test.savoirfairelinux.com/buildStatus/icon?job=ring-client-macosx)](https://test.savoirfairelinux.com/job/ring-client-macosx/) | [![Build Status](https://test.savoirfairelinux.com/buildStatus/icon?job=ring-packaging-client-macosx)](https://test.savoirfairelinux.com/job/ring-packaging-client-macosx/)
14

15 16 17 18 19 20 21 22 23 24 25
Requirements
=============

- Ring daemon
- libRingClient (Qt5 version)
- Qt5 Core
- Cocoa framework

Build instructions
==================

26 27 28 29 30
Build Sparkle framework (optional)
----------------------------------
Ring can ship with the Sparkle framework to allow automatic app updates.
This can be disabled for your custom build by specifying -DENABLE_SPARKLE=false
in the cmake phase.
31

32 33 34 35 36 37 38 39 40 41 42 43 44
1. cd sparkle/
2. git submodule update
3. cd Sparkle/
4. make release
5. A Finder window will popup in the directory where Sparkle has been built.
Copy-paste the Sparkle.framework in sparkle/ in our project, or in
/Library/Frameworks on your system.

Build Client
------------

1. mkdir build && cd build

45
2. export CMAKE_PREFIX_PATH=\<dir_to_qt5\>
46 47

Now generate an Xcode project with CMake:
48
3. cmake ../ -DCMAKE_INSTALL_PREFIX=\<libringclient_install_path\> -G Xcode
49 50
4. open Ring.xcodeproj/
5. Build and run it from Xcode. You can also generate the final Ring.app bundle.
51 52 53

You can also build it from the command line:

54
3. cmake ../ -DCMAKE_INSTALL_PREFIX=\<libringclient_install_path\>
55 56 57 58 59 60 61 62 63
4. make
5. open Ring.app/

If you want to create the final app (self-containing .dmg):

4. make install
5. cpack -G DragNDrop Ring

Notes:
64

65
By default the client version is specified in CMakeLists.txt but it can be
66
overriden by specifying -DRING_VERSION=\<num\> in the cmake command line.
67

68 69 70
You can specify a custom ringtone folder containing audio files (only)
with -DRINGTONE_DIR option

71 72 73 74 75 76 77
Debugging
==================

For now, the build type of the client is "Debug" by default, however it is
useful to also have the debug symbols of libRingClient. To do this, specify this
when compiling libRingClient with '-DCMAKE_BUILD_TYPE=Debug' in the cmake
options.