llvm.org GIT mirror llvm / a4c9751
Get VC++ building again git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19140 91177308-0d34-0410-b5e6-96231b3b80d8 Jeff Cohen 14 years ago
3 changed file(s) with 6 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/System/DynamicLibrary.h"
14 #include "llvm/Config/config.h"
1415
1516 // It is not possible to use ltdl.c on VC++ builds as the terms of its LGPL
1617 // license and special exception would cause all of LLVM to be placed under
1819 // used, and obviously libtool is not used with Visual Studio. An entirely
1920 // separate implementation is provided in win32/DynamicLibrary.cpp.
2021
21 #ifdef _WIN32
22 #ifdef LLVM_ON_WIN32
2223
2324 #include "win32/DynamicLibrary.cpp"
2425
147148 return lt_dlsym((lt_dlhandle) handle, symbolName);
148149 }
149150
150 #endif // _WIN32
151 #endif // LLVM_ON_WIN32
7272 Name="Configure|Win32">
7373
7474 Name="VCCustomBuildTool"
75 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 \"\"/;"
75 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/;"
7676 "
7777 Outputs="$(ProjectDir)..\llvm\Config\config.h"/>
7878
4343 Name="VCPostBuildEventTool"/>
4444
4545 Name="VCPreBuildEventTool"
46 CommandLine="if not exist ..\..\lib\System\platform\DynamicLibrary.cpp echo #include "../win32/DynamicLibrary.cpp" >..\..\lib\System\platform\DynamicLibrary.cpp
47 if not exist ..\..\lib\System\platform\MappedFile.cpp echo #include "../win32/MappedFile.cpp" >..\..\lib\System\platform\MappedFile.cpp
46 CommandLine="if not exist ..\..\lib\System\platform\MappedFile.cpp echo #include "../win32/MappedFile.cpp" >..\..\lib\System\platform\MappedFile.cpp
4847 if not exist ..\..\lib\System\platform\Memory.cpp echo #include "../win32/Memory.cpp" >..\..\lib\System\platform\Memory.cpp
49 if not exist ..\..\lib\System\platform\Path.cpp echo #include "../win32/Path.cpp" >..\..\lib\System\platform\Path.cpp
5048 if not exist ..\..\lib\System\platform\Process.cpp echo #include "../win32/Process.cpp" >..\..\lib\System\platform\Process.cpp
5149 if not exist ..\..\lib\System\platform\Program.cpp echo #include "../win32/Program.cpp" >..\..\lib\System\platform\Program.cpp
5250 if not exist ..\..\lib\System\platform\Signals.cpp echo #include "../win32/Signals.cpp" >..\..\lib\System\platform\Signals.cpp
9593 Name="VCPostBuildEventTool"/>
9694
9795 Name="VCPreBuildEventTool"
98 CommandLine="if not exist ..\..\lib\System\platform\DynamicLibrary.cpp echo #include "../win32/DynamicLibrary.cpp" >..\..\lib\System\platform\DynamicLibrary.cpp
99 if not exist ..\..\lib\System\platform\MappedFile.cpp echo #include "../win32/MappedFile.cpp" >..\..\lib\System\platform\MappedFile.cpp
96 CommandLine="if not exist ..\..\lib\System\platform\MappedFile.cpp echo #include "../win32/MappedFile.cpp" >..\..\lib\System\platform\MappedFile.cpp
10097 if not exist ..\..\lib\System\platform\Memory.cpp echo #include "../win32/Memory.cpp" >..\..\lib\System\platform\Memory.cpp
101 if not exist ..\..\lib\System\platform\Path.cpp echo #include "../win32/Path.cpp" >..\..\lib\System\platform\Path.cpp
10298 if not exist ..\..\lib\System\platform\Process.cpp echo #include "../win32/Process.cpp" >..\..\lib\System\platform\Process.cpp
10399 if not exist ..\..\lib\System\platform\Program.cpp echo #include "../win32/Program.cpp" >..\..\lib\System\platform\Program.cpp
104100 if not exist ..\..\lib\System\platform\Signals.cpp echo #include "../win32/Signals.cpp" >..\..\lib\System\platform\Signals.cpp