mirror of
https://github.com/selfxyz/self.git
synced 2026-02-08 21:35:13 -05:00
22 lines
557 B
Bash
Executable File
22 lines
557 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# update xcconfig
|
|
MODES="debug release"
|
|
XCCONFIG_PATH=Pods/Target\ Support\ Files/MoproKit
|
|
CONFIGS="
|
|
LIBRARY_SEARCH_PATHS=\${SRCROOT}/../MoproKit/Libs
|
|
OTHER_LDFLAGS=-lmopro_ffi
|
|
USER_HEADER_SEARCH_PATHS=\${SRCROOT}/../MoproKit/include
|
|
"
|
|
for mode in ${MODES}
|
|
do
|
|
FILE_NAME=${XCCONFIG_PATH}/MoproKit.${mode}.xcconfig
|
|
for config in ${CONFIGS}; do
|
|
EXIST=$(grep -c "${config}" "${FILE_NAME}")
|
|
if [[ $EXIST -eq 0 ]]; then
|
|
echo "${config}" >> "${FILE_NAME}"
|
|
fi
|
|
done
|
|
done
|
|
|
|
echo "Finished updating xcconfig" |