diff options
| author | Todd Fiala <todd.fiala@gmail.com> | 2016-01-28 22:34:36 +0000 |
|---|---|---|
| committer | Todd Fiala <todd.fiala@gmail.com> | 2016-01-28 22:34:36 +0000 |
| commit | 56d207331972f4eb3d0d9fd971d2e80a6c6d771d (patch) | |
| tree | 1d192bca2232e65f122e12a6d29a85426df22c46 /lldb/tools/install-headers | |
| parent | 04241cef2cf183e7ccacf47bced0e85b5d2bf228 (diff) | |
| download | bcm5719-llvm-56d207331972f4eb3d0d9fd971d2e80a6c6d771d.tar.gz bcm5719-llvm-56d207331972f4eb3d0d9fd971d2e80a6c6d771d.zip | |
add back an Xcode-specific Makefile for header installation
llvm-svn: 259102
Diffstat (limited to 'lldb/tools/install-headers')
| -rw-r--r-- | lldb/tools/install-headers/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lldb/tools/install-headers/Makefile b/lldb/tools/install-headers/Makefile new file mode 100644 index 00000000000..384a54e6d6f --- /dev/null +++ b/lldb/tools/install-headers/Makefile @@ -0,0 +1,23 @@ +installsrc: + echo "installsrc (doing nothing)" + +install: + echo "install (doing nothing)" + +clean: + echo "clean (doing nothing)" + +LLDB_VERSION=`echo ${CURRENT_PROJECT_VERSION} | /usr/bin/sed -E 's/^([0-9]+).([0-9]+).([0-9]+)(.[0-9]+)?$$/\1/g'` +LLDB_REVISION=`echo ${CURRENT_PROJECT_VERSION} | /usr/bin/sed -E 's/^([0-9]+).([0-9]+).([0-9]+)(.[0-9]+)?$$/\3/g'` +LLDB_VERSION_STRING=`echo ${CURRENT_PROJECT_VERSION}` + +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 $(LLDB_VERSION) |" "$$file" ;\ + /usr/bin/sed -i '' "s|//#define LLDB_REVISION|#define LLDB_REVISION $(LLDB_REVISION) |" "$$file" ;\ + /usr/bin/sed -i '' "s|//#define LLDB_VERSION_STRING|#define LLDB_VERSION_STRING \"$(LLDB_VERSION_STRING)\" |" "$$file" ;\ + done |

