FreeCalypso > hg > fc-magnetite
comparison configure.sh @ 65:bb53b2e2d548
revamped the handling of blob libs
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 01 Oct 2016 19:36:13 +0000 |
parents | 9c16635ee5d2 |
children | 46d9d68a3911 |
comparison
equal
deleted
inserted
replaced
64:84f4a04fde24 | 65:bb53b2e2d548 |
---|---|
82 SUBDIR="$SUBDIR $1" | 82 SUBDIR="$SUBDIR $1" |
83 current_lib=$1/$1.lib | 83 current_lib=$1/$1.lib |
84 LIBS="$LIBS $current_lib" | 84 LIBS="$LIBS $current_lib" |
85 } | 85 } |
86 | 86 |
87 blob_lib() { | 87 blob_lib_std() { |
88 if [ $# != 1 ] | 88 if [ $# != 1 ] |
89 then | 89 then |
90 echo "Error: blob_lib takes 1 argument" 1>&2 | 90 echo "Error: blob_lib_std takes 1 argument" 1>&2 |
91 exit 1 | 91 exit 1 |
92 fi | 92 fi |
93 current_lib="../$1" | 93 current_lib="../blobs/libs/$1.lib" |
94 LIBS="$LIBS $current_lib" | |
95 } | |
96 | |
97 blob_lib_gpf() { | |
98 if [ $# != 1 ] | |
99 then | |
100 echo "Error: blob_lib_gpf takes 1 argument" 1>&2 | |
101 exit 1 | |
102 fi | |
103 current_lib="../blobs/gpflibs/$1.lib" | |
104 LIBS="$LIBS $current_lib" | |
105 } | |
106 | |
107 blob_lib_os() { | |
108 if [ $# != 1 ] | |
109 then | |
110 echo "Error: blob_lib_os takes 1 argument" 1>&2 | |
111 exit 1 | |
112 fi | |
113 current_lib="../blobs/oslibs/$1.lib" | |
114 LIBS="$LIBS $current_lib" | |
115 } | |
116 | |
117 blob_lib_custom() { | |
118 if [ $# != 2 ] | |
119 then | |
120 echo "Error: blob_lib_custom takes 2 arguments" 1>&2 | |
121 exit 1 | |
122 fi | |
123 if [ -z "$1" ] | |
124 then | |
125 echo "Error: this config is not supported on this target" 1>&2 | |
126 exit 1 | |
127 fi | |
128 cp $1 $BUILD_DIR/$2.lib | |
129 current_lib=$2.lib | |
94 LIBS="$LIBS $current_lib" | 130 LIBS="$LIBS $current_lib" |
95 } | 131 } |
96 | 132 |
97 lib_link_magic() { | 133 lib_link_magic() { |
98 if [ $# != 1 ] | 134 if [ $# != 1 ] |