summaryrefslogtreecommitdiff
path: root/build/cmake.command
blob: 4c540e6487d89891785818dcacab5bf97ab2855b (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
#!/bin/bash
# =================================================================================================
# ADOBE SYSTEMS INCORPORATED
# Copyright 2013 Adobe Systems Incorporated
# All Rights Reserved
#
# NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
# of the Adobe license agreement accompanying it.
# =================================================================================================
# Get the absolut path of the script
abspath=$(cd ${0%/*} && echo $PWD/${0##*/})

# to get the path only - not the script name
path_only=$(dirname "$abspath")

#Set XMPROOT for further reference
XMPROOT=$path_only/..

# defines some handy function used over in several scripts
source "$XMPROOT/build/shared/CMakeUtils.sh"

# generate projects in above file defined function
GenerateBuildProjects "$@"
if [ $? -ne 0 ]; then
    echo "cmake.command failed";
    exit 1;
else
    echo "cmake.command Success";
    exit 0;
fi