Welcome to mirror list, hosted at ThFree Co, Russian Federation.

run-script-for-target.sh « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 53e73079b9d3548ecac4a3534f85c54d1b8d14d6 (plain)
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
#!/bin/bash
# This script builds C++ core libs and inserts some private variables.
# Should be run from Run Script phase in target's settings.

LOWERED_CONFIG=`echo $CONFIGURATION | tr [A-Z] [a-z]`
CONF="simulator"
DRAPE_CONF="old_renderer"
if [[ "$LOWERED_CONFIG" == *production* || "$LOWERED_CONFIG" == *adhoc* ]]; then
  CONF="production"
elif [[ "$LOWERED_CONFIG" == *debug* ]]; then
  CONF="debug"
elif [[ "$LOWERED_CONFIG" == *release* ]]; then
  if [[ "$LOWERED_CONFIG" == *simulator* ]]; then
    CONF="simulator-release"
  else
    CONF="release"
  fi
fi

if [[ "$LOWERED_CONFIG" == *drape* ]]; then
  echo "Drape renderer building"
  DRAPE_CONF="drape"
fi

# Respect "Build for active arch only" project setting.
if [[ "$ONLY_ACTIVE_ARCH" == YES ]]; then
  if [[ ! -z $CURRENT_ARCH ]]; then
    VALID_ARCHS="$CURRENT_ARCH"
  fi
fi

echo "Building $CONF configuration"
bash "$SRCROOT/../../tools/autobuild/ios.sh" $CONF $DRAPE_CONF