-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathinter-shellb.sh.tem
33 lines (33 loc) · 1.39 KB
/
inter-shellb.sh.tem
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
function do_setup() {
LOG_MODE=1
BUILD_SYS=emb
BUILD_PLATFORM=c_cpp
}
function do_start() {
set_out "."
finc_cpp_compiler "Please install a c++ compiler to proceed"
cpp_flags "@CPPFLAGS@"
l_flags "@LFLAGS@"
add_lib_path "/usr/local/opt/openssl/lib" "/usr/local/lib" "/opt/homebrew/lib"
add_inc_path "/opt/homebrew/include" "/opt/homebrew/include/postgresql" "/opt/homebrew/include/pgsql" "/opt/homebrew/include/libmongoc-1.0" "/opt/homebrew/include/libbson-1.0"
add_inc_path "/usr/local/opt/openssl/include" "/usr/local/include" "/usr/include/libmongoc-1.0"
add_inc_path "/usr/include/libbson-1.0" "/usr/local/include/libmongoc-1.0" "/usr/local/include/libbson-1.0"
add_inc_path "/usr/include/postgresql" "/usr/include/pgsql" "/usr/local/include/postgresql" "/usr/local/include/pgsql"
add_lib "@LIBS@"
add_inc_path "../include"
add_lib_path "../lib"
for wedbdir in ../web/*
do
wedbdir=${wedbdir%*/}
wedbdir="${wedbdir##*/}"
add_inc_path "../web/$wedbdir/include"
if [ -f "../lib/lib${wedbdir}.${SHLIB_EXT}" ]; then
add_lib "-l${wedbdir}"
fi
done
set_src_files "ReflectorInterface.cpp,SerializeInterface.cpp,AjaxInterface.cpp,WsInterface.cpp" "shared:inter" "ffead-framework,ffead-modules"
set_src_files "DCPInterface.cpp,TemplateInterface.cpp" "shared:dinter" "ffead-framework,ffead-modules"
}
function do_install() {
mv ".bin/libinter.${SHLIB_EXT}" ".bin/libdinter.${SHLIB_EXT}" ../lib/
}