aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2016-09-24 13:02:32 +0200
committerMemphiz <memphis@machzwo.de>2016-09-24 13:02:32 +0200
commit6f78f1d4e446dab2ea63e961ac881635e80eaf8b (patch)
treea7a91ac23733049f64c4ceb2a27c38fca9bc5996 /docs
parentc5c1d72327c6784ea5b5af0187b95a16324b17eb (diff)
Revert "[osx/readme] - remove KODI_HOME bits from readme (not needed anymore)"
its still needed in the default xcode setup as it seems This reverts commit fbc59139074ac7ce1c2f6730f914b661138044c2.
Diffstat (limited to 'docs')
-rw-r--r--docs/README.osx15
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/README.osx b/docs/README.osx
index 42b3fef703..e730cd6177 100644
--- a/docs/README.osx
+++ b/docs/README.osx
@@ -139,6 +139,14 @@ binaries from git that might cause problems.
4.1 Using Xcode
-----------------------------------------------------------------------------
Start XCode and open the Kodi project (Kodi.xcodeproj) located in $HOME/Kodi.
+For development, Kodi is run from the $HOME/Kodi directory and needs to have
+the KODI_HOME environment variable set to know where that directory is located.
+To set KODI_HOME environment variable:
+
+Xcode 6 and later
+ Menu -> Product -> Edit Sheme -> "Run Kodi"/"Debug" -> Add KODI_HOME into
+ the List of "Environment Variables". Set the value to the path to the Kodi
+ root folder. For example, "/Users/bigdog/Documents/Kodi"
There are two build targets "Kodi" and "Kodi.app" (each in 32Bit and 64Bit flavour)
with debug and release settings. The "Kodi" target is used for rapid build and
@@ -158,8 +166,9 @@ and dynamic libraries that will need to be built. Once these are built,
subsequent builds will be faster.
After the build, you can ether run Kodi for Mac from Xcode or run it from
-the command-line.
-To run the debug version:
+the command-line. If you run it from the command-line, make sure your set
+the KODI_HOME environment variable (export KODI_HOME=$HOME/Kodi). Then, to
+run the debug version:
$ ./build/Debug/Kodi
@@ -187,12 +196,14 @@ below(normally unneeded - for advanced developers).
a)
$ cd $HOME/Kodi
+ $ export KODI_HOME=`pwd`
$ make xcode_depends
$ xcodebuild -sdk macosx10.9 -project Kodi.xcodeproj -target Kodi.app ONLY_ACTIVE_ARCH=YES \
ARCHS=x86_64 VALID_ARCHS=x86_64 -configuration Release build
b) Building via make:
$ cd $HOME/Kodi
+ $ export KODI_HOME=`pwd`
$ make
$ ./Kodi.bin