diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-10-26 14:48:53 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-10-26 14:48:53 +0000 |
commit | 8030c258827a44c676cef7d31f53a8cd3b285063 (patch) | |
tree | 38614d85b6a990bdd2672c694f931c92e9309404 /win32/Configure | |
parent | 4ed1de843dddb681b6a868d8acf2cb2f20f70131 (diff) | |
download | external_llvm-8030c258827a44c676cef7d31f53a8cd3b285063.zip external_llvm-8030c258827a44c676cef7d31f53a8cd3b285063.tar.gz external_llvm-8030c258827a44c676cef7d31f53a8cd3b285063.tar.bz2 |
Eliminate use of sed in Visual Studio builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'win32/Configure')
-rw-r--r-- | win32/Configure/Configure.vcproj | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/win32/Configure/Configure.vcproj b/win32/Configure/Configure.vcproj index 847d0d1..9aca7bd 100644 --- a/win32/Configure/Configure.vcproj +++ b/win32/Configure/Configure.vcproj @@ -74,8 +74,24 @@ <Tool Name="VCCustomBuildTool" Description="Generating $(SolutionDir)llvm\Config\config.h" - CommandLine="..\tools\sed <$(InputPath) >$(ProjectDir)..\llvm\Config\config.h "s/#undef PACKAGE_NAME/#define PACKAGE_NAME \"LLVM (win32 vc7.1)\"/;s/#undef PACKAGE_VERSION/#define PACKAGE_VERSION 1.4/;s/#undef HAVE_WINDOWS_H/#define HAVE_WINDOWS_H 1/;s/#undef HAVE_LIMITS_H/#define HAVE_LIMITS_H 1/;s/#undef HAVE_SYS_STAT_H/#define HAVE_SYS_STAT_H 1/;s/#undef HAVE_STDLIB_H/#define HAVE_STDLIB_H 1/;s/#undef HAVE_STDIO_H/#define HAVE_STDIO_H 1/;s/#undef HAVE_STRING_H/#define HAVE_STRING_H 1/;s/#undef SHLIBEXT/#define SHLIBEXT \".lib\"/;s/#undef error_t/#define error_t int/;s/#undef HAVE_ERRNO_H/#define HAVE_ERRNO_H 1/;s/#undef LTDL_DLOPEN_DEPLIBS/#define LTDL_DLOPEN_DEPLIBS 1/;s/#undef LTDL_OBJDIR/#define LTDL_OBJDIR \"_libs\"/;s/#undef LTDL_SHLIBPATH_VAR/#define LTDL_SHLIBPATH_VAR \"PATH\"/;s/#undef LTDL_SHLIB_EXT/#define LTDL_SHLIB_EXT \".dll\"/;s/#undef LTDL_SYSSEARCHPATH/#define LTDL_SYSSEARCHPATH \"\"/;s/#undef LLVM_ON_WIN32/#define LLVM_ON_WIN32 1/;" -" + CommandLine="copy $(InputPath) $(ProjectDir)..\llvm\Config\config.h +echo #define PACKAGE_NAME "LLVM (win32 vc7.1)" >>$(ProjectDir)..\llvm\Config\config.h +echo #define PACKAGE_VERSION 1.4 >>$(ProjectDir)..\llvm\Config\config.h +echo #define HAVE_WINDOWS_H 1 >>$(ProjectDir)..\llvm\Config\config.h +echo #define HAVE_LIMITS_H 1 >>$(ProjectDir)..\llvm\Config\config.h +echo #define HAVE_SYS_STAT_H 1 >>$(ProjectDir)..\llvm\Config\config.h +echo #define HAVE_STDLIB_H 1 >>$(ProjectDir)..\llvm\Config\config.h +echo #define HAVE_STDIO_H 1 >>$(ProjectDir)..\llvm\Config\config.h +echo #define HAVE_STRING_H 1 >>$(ProjectDir)..\llvm\Config\config.h +echo #define SHLIBEXT ".lib" >>$(ProjectDir)..\llvm\Config\config.h +echo #define error_t int >>$(ProjectDir)..\llvm\Config\config.h +echo #define HAVE_ERRNO_H 1 >>$(ProjectDir)..\llvm\Config\config.h +echo #define LTDL_DLOPEN_DEPLIBS 1 >>$(ProjectDir)..\llvm\Config\config.h +echo #define LTDL_OBJDIR "_libs" >>$(ProjectDir)..\llvm\Config\config.h +echo #define LTDL_SHLIBPATH_VAR "PATH" >>$(ProjectDir)..\llvm\Config\config.h +echo #define LTDL_SHLIB_EXT ".dll" >>$(ProjectDir)..\llvm\Config\config.h +echo #define LTDL_SYSSEARCHPATH "" >>$(ProjectDir)..\llvm\Config\config.h +echo #define LLVM_ON_WIN32 1 >>$(ProjectDir)..\llvm\Config\config.h" Outputs="$(ProjectDir)..\llvm\Config\config.h"/> </FileConfiguration> </File> @@ -86,8 +102,7 @@ <Tool Name="VCCustomBuildTool" Description="Generating $(SolutionDir)llvm\Support\DataTypes.h" - CommandLine="..\tools\sed <$(InputPath) >$(ProjectDir)..\llvm\Support\DataTypes.h "s/#undef HAVE_SYS_TYPES_H/#define HAVE_SYS_TYPES_H 1/;s/#undef HAVE_INTTYPES_H/#define HAVE_INTTYPES_H 1/;s/#undef HAVE_STDINT_H/#define HAVE_STD_INT_H 1/" -" + CommandLine="copy $(InputPath) $(ProjectDir)..\llvm\Support\DataTypes.h" Outputs="$(ProjectDir)..\llvm\Support\DataTypes.h"/> </FileConfiguration> </File> @@ -98,8 +113,7 @@ <Tool Name="VCCustomBuildTool" Description="Generating $(SolutionDir)llvm\ADT\hash_map" - CommandLine="..\tools\sed <$(InputPath) >$(ProjectDir)..\llvm\ADT\hash_map "s/#undef HAVE_GLOBAL_HASH_MAP/#define HAVE_GLOBAL_HASH_MAP 1/;/using HASH_NAMESPACE\:\:hash;.*$/{D};s/define HASH_NAMESPACE std/define HASH_NAMESPACE stdext\nusing std::_Distance;/" -" + CommandLine="copy $(InputPath) $(ProjectDir)..\llvm\ADT\hash_map" Outputs="$(ProjectDir)..\llvm\ADT\hash_map"/> </FileConfiguration> </File> @@ -110,8 +124,7 @@ <Tool Name="VCCustomBuildTool" Description="Generating $(SolutionDir)llvm\ADT\hash_set" - CommandLine="..\tools\sed <$(InputPath) >$(ProjectDir)..\llvm\ADT\hash_set "s/#undef HAVE_GLOBAL_HASH_SET/#define HAVE_GLOBAL_HASH_SET 1/;/using HASH_NAMESPACE\:\:hash;.*$/{D};/#include.*HashExtras.*$/{D};s/define HASH_NAMESPACE std/define HASH_NAMESPACE stdext/" -" + CommandLine="copy $(InputPath) $(ProjectDir)..\llvm\ADT\hash_set" Outputs="$(ProjectDir)..\llvm\ADT\hash_set"/> </FileConfiguration> </File> @@ -122,8 +135,7 @@ <Tool Name="VCCustomBuildTool" Description="Generating $(SolutionDir)llvm\ADT\iterator" - CommandLine="..\tools\sed <$(InputPath) >$(ProjectDir)..\llvm\ADT\iterator "s/#undef HAVE_BI_ITERATOR/#define HAVE_BI_ITERATOR 0/;s/#undef HAVE_STD_ITERATOR/#define HAVE_STD_ITERATOR 1/;s/#undef HAVE_FWD_ITERATOR/#define HAVE_FWD_ITERATOR 0/" -" + CommandLine="copy $(InputPath) $(ProjectDir)..\llvm\ADT\iterator" Outputs="$(ProjectDir)..\llvm\ADT\iterator"/> </FileConfiguration> </File> |