mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
* Added Solution and VC++ Project files for compiling the nglib library using the Windows Platform.
* Added a post-build script for installing nglib similar to the netgen script. * Modified Makefile.am to reflect the changes made to the windows directory.
This commit is contained in:
parent
f5dbea25dd
commit
92ae9c33ba
@ -1,3 +1,3 @@
|
|||||||
dist_noinst_DATA = netgen.sln netgen.vcproj netgen_MSVC2005.sln netgen_MSVC2005.vcproj postBuild_Install.bat
|
dist_noinst_DATA = netgen.sln netgen.vcproj netgen_MSVC2005.sln netgen_MSVC2005.vcproj postBuild_netgen.bat nglib.sln nglib.vcproj nglib_MSVC2005.sln nglib_MSVC2005.vcproj postBuild_nglib.bat
|
||||||
|
|
||||||
|
|
||||||
|
20
windows/nglib.sln
Normal file
20
windows/nglib.sln
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||||
|
# Visual C++ Express 2008
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nglib", "nglib.vcproj", "{2E260C8C-595C-442A-A962-51AC06EF8143}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
1196
windows/nglib.vcproj
Normal file
1196
windows/nglib.vcproj
Normal file
File diff suppressed because it is too large
Load Diff
20
windows/nglib_MSVC2005.sln
Normal file
20
windows/nglib_MSVC2005.sln
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||||
|
# Visual C++ Express 2005
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nglib", "nglib_MSVC2005.vcproj", "{2E260C8C-595C-442A-A962-51AC06EF8143}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
1196
windows/nglib_MSVC2005.vcproj
Normal file
1196
windows/nglib_MSVC2005.vcproj
Normal file
File diff suppressed because it is too large
Load Diff
46
windows/postBuild_nglib.bat
Normal file
46
windows/postBuild_nglib.bat
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
REM *********************************************************************************
|
||||||
|
REM *** Netgen Library (nglib) Windows Post-Build Script
|
||||||
|
REM *** Author: Philippose Rajan
|
||||||
|
REM *** Date: 15/02/2009
|
||||||
|
REM ***
|
||||||
|
REM *** Used to perform an "Install" of the generated Dynamic Link Library (DLL)
|
||||||
|
REM *** and the corresponding LIB file.
|
||||||
|
REM ***
|
||||||
|
REM *** Call from Visual C++ using:
|
||||||
|
REM *** postBuild_nglib.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)
|
||||||
|
REM *********************************************************************************
|
||||||
|
if [%1]==[] goto BuildEventFailed
|
||||||
|
set PROJ_NAME=%1
|
||||||
|
set PROJ_EXEC=%2
|
||||||
|
set BUILD_TYPE=%3
|
||||||
|
set PROJ_DIR=%4
|
||||||
|
|
||||||
|
REM *** Change these Folders if required ***
|
||||||
|
set NETGEN_TCLSRC=%PROJ_DIR%..\ng
|
||||||
|
set INSTALL_FOLDER=%PROJ_DIR%%BUILD_TYPE%-lib\
|
||||||
|
|
||||||
|
echo POSTBUILD Script for %PROJ_NAME% ........
|
||||||
|
|
||||||
|
REM *** Embed the Windows Manifest into the Executable File ***
|
||||||
|
echo Embedding Manifest into the executable: %PROJ_EXEC% ....
|
||||||
|
mt.exe -manifest "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%.intermediate.manifest" "-outputresource:%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%;2"
|
||||||
|
if errorlevel 1 goto BuildEventFailed
|
||||||
|
|
||||||
|
REM *** Copy the DLL and LIB Files into the install folder ***
|
||||||
|
echo Installing required files into %INSTALL_FOLDER% ....
|
||||||
|
xcopy "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%" /i /d /y
|
||||||
|
if errorlevel 1 goto BuildEventFailed
|
||||||
|
xcopy "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_NAME%.lib" "%INSTALL_FOLDER%" /i /d /y
|
||||||
|
if errorlevel 1 goto BuildEventFailed
|
||||||
|
|
||||||
|
REM *** Clean up the build directory by deleting the OBJ files ***
|
||||||
|
REM echo Deleting the %PROJ_NAME% build folder %PROJ_DIR%%PROJ_NAME% ....
|
||||||
|
REM rmdir %PROJ_DIR%%PROJ_NAME% /s /q
|
||||||
|
|
||||||
|
REM *** If there have been no errors so far, we are done ***
|
||||||
|
goto BuildEventOK
|
||||||
|
:BuildEventFailed
|
||||||
|
echo POSTBUILD Script for %PROJ_NAME% FAILED..... Install Manually !!!
|
||||||
|
exit 1
|
||||||
|
:BuildEventOK
|
||||||
|
echo POSTBUILD Script for %PROJ_NAME% completed OK.....!!
|
Loading…
Reference in New Issue
Block a user