Added a new makefile target to help us with Apple builds where the installhdrs
will copy the headers for the shared library. Prior to this fix, the install
headers directory would contain the unix style paths to all public header
files ("#include lldb/API/SBDefines.h") instead of the fixed up framework
header paths ("#include <LLDB/SBDefines.h>").
llvm-svn: 152253
18 lines
523 B
Makefile
18 lines
523 B
Makefile
installsrc:
|
|
echo "installsrc (doing nothing)"
|
|
|
|
install:
|
|
echo "install (doing nothing)"
|
|
|
|
clean:
|
|
echo "clean (doing nothing)"
|
|
|
|
installhdrs:
|
|
cd "${TARGET_BUILD_DIR}/${LLDB_FRAMEWORK_INSTALL_DIR}/LLDB.framework/Headers" ;\
|
|
for file in *.h ;\
|
|
do \
|
|
/usr/bin/sed -i '' 's/\(#include\)[ ]*"lldb\/\(API\/\)\{0,1\}\(.*\)"/\1 <LLDB\/\3>/1' "$$file" ;\
|
|
/usr/bin/sed -i '' 's|<LLDB/Utility|<LLDB|' "$$file" ;\
|
|
/usr/bin/sed -i '' "s|//#define LLDB_VERSION|#define LLDB_VERSION ${CURRENT_PROJECT_VERSION} |" "$$file" ;\
|
|
done
|