Skip to content

Commit 8085ea2

Browse files
authored
Copy extra headers to OSX framework (#1147)
1 parent 3f94f19 commit 8085ea2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build_scripts/desktop/finish_darwin.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ if [[ ! -d "${packagepath}/libs/${os}/universal" ]]; then
7474
mkdir "${packagepath}/libs/${os}/universal"
7575
echo "Creating universal libraries..."
7676
for lib in "${packagepath}/libs/${os}/${architectures[0]}"/*.a; do
77-
libname=$(basename ${lib})
78-
xcrun lipo "${packagepath}/libs/${os}"/*/"${libname}" -create -output "${packagepath}/libs/${os}/universal/${libname}"
77+
libname=$(basename ${lib})
78+
xcrun lipo "${packagepath}/libs/${os}"/*/"${libname}" -create -output "${packagepath}/libs/${os}/universal/${libname}"
7979
done
8080

8181
# Done, remove old library backups.
@@ -97,13 +97,16 @@ for arch in universal ${architectures[*]}; do
9797
if [[ "${framework}" == "firebase_app" ]]; then
9898
framework="firebase"
9999
add_headers=1
100+
echo "Need to add extra Headers"
100101
fi
101102
framework_dir="${packagepath}/frameworks/${os}/${arch}/${framework}.framework"
102103
mkdir -p "${framework_dir}"
103104
cp -f "${library}" "${framework_dir}/${framework}"
104105
if [[ ${add_headers} -eq 1 ]]; then
106+
echo "Adding extra Headers to framework ${framework_dir}"
105107
mkdir "${framework_dir}/Headers"
106108
cp -af "${includepath}/firebase/"* "${framework_dir}/Headers/"
109+
cp -af "${packagepath}/include/firebase/"* "${framework_dir}/Headers/"
107110
fi
108111
done
109112
done

0 commit comments

Comments
 (0)