root/branch/3.3.1/generate_xcode_project

Revision 686, 1.8 kB (checked in by mswat, 4 years ago)

Started new branch 3.3.1 - it will have steering, and other upgrades but probably not the new PyQt? player

Line 
1
2#!/bin/bash
3
4function usage
5{
6    # Temporary function stub
7    echo "USAGE: ./install_full --install_path <directory where CompuCell will be installed>"
8    echo "or"
9    echo "USAGE: ./install_full -i <directory where CompuCell will be installed>"
10}
11
12export source_dir=${PWD}
13
14export install_path
15export build_type=Release
16
17export xcode_project_path=${source_dir}/xcode_project
18
19#export source_dir
20
21while [ "$1" != "" ]; do
22    case $1 in
23        -i | --install_path )           shift
24                                install_path=$1
25                                echo "install_path: $install_path"
26                                ;;
27
28        -d | --xcode_project_path )           shift
29                                xcode_project_path=$1
30                                echo "xcode_project_path: $xcode_project_path"
31                                ;;
32
33        -t | --build_type )           shift
34                                build_type=$1
35                                echo "build_type: $build_type"
36                                ;;
37
38
39
40        -h | --help )           usage
41                                exit
42                                ;;
43        * )                     usage
44                                exit 1
45    esac
46    shift
47done
48
49
50if [ -w $install_path ]
51then
52    echo "Everything seems to be OK permission wise"
53else
54    if mkdir $install_path; then
55        echo "Successfully created installation directory: $install_path"
56        mkdir $install_path/cmake_binary_dir
57    else
58        echo "Could not create directory $install_path. Check if you have right permissions"
59        exit 1
60    fi
61
62fi
63
64echo "will generate xcode file in ${xcode_project_path}"
65
66mkdir ${xcode_project_path}
67cd ${xcode_project_path}
68cmake -GXcode -DCMAKE_INSTALL_PREFIX:STRING=$install_path -DCMAKE_BUILD_TYPE:STRING=$build_type ${source_dir};
69
70exit 0
71
Note: See TracBrowser for help on using the browser.