mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
wl1744 - ndb on windows
Add rules for creating dsp-files
This commit is contained in:
parent
fdc79aa30a
commit
f0614a9fec
52 changed files with 732 additions and 3 deletions
8
ndb/config/win-includes
Executable file
8
ndb/config/win-includes
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
dst=$1
|
||||
shift
|
||||
|
||||
out=`echo $* | sed 's/-I\([^ ]*\)/\/I "\1"/g'`
|
||||
sed -e "s!@includes@!$out!g" $dst > /tmp/$dst.$$
|
||||
mv /tmp/$dst.$$ $dst
|
||||
159
ndb/config/win-lib.am
Normal file
159
ndb/config/win-lib.am
Normal file
|
|
@ -0,0 +1,159 @@
|
|||
# Microsoft Developer Studio Project File - Name="@name@" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
CFG=@name@ - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "@name@.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "@name@.mak" CFG="@name@ - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "@name@ - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "@name@ - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "@name@ - Win32 TLS_DEBUG" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "@name@ - Win32 TLS" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=xicl6.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "@name@ - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "release"
|
||||
# PROP Intermediate_Dir "release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
# ADD CPP /nologo /G6 /MT /W3 /O2 /D "WIN32" /D "DBUG_OFF" /D "_WINDOWS" /D "NDEBUG" /FD /c
|
||||
# ADD BASE CPP @includes@
|
||||
# ADD CPP @includes@
|
||||
# SUBTRACT CPP /YX
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=xilink6.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"..\lib_release\@name@.lib"
|
||||
@release_libs@
|
||||
|
||||
!ELSEIF "$(CFG)" == "@name@ - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "debug"
|
||||
# PROP Intermediate_Dir "debug"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
# ADD CPP /nologo /G6 /MTd /W3 /Z7 /Od /Gf /D "WIN32" /D "_DEBUG" /D "SAFEMALLOC" /D "SAFE_MUTEX" /D "_WINDOWS" /FD /c
|
||||
# ADD BASE CPP @includes@
|
||||
# ADD CPP @includes@
|
||||
# SUBTRACT CPP /YX
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=xilink6.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"..\lib_debug\@name@.lib"
|
||||
@debug_libs@
|
||||
|
||||
!ELSEIF "$(CFG)" == "@name@ - Win32 TLS_DEBUG"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "@name@___Win32_TLS_DEBUG"
|
||||
# PROP BASE Intermediate_Dir "@name@___Win32_TLS_DEBUG"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "@name@___Win32_TLS_DEBUG"
|
||||
# PROP Intermediate_Dir "@name@___Win32_TLS_DEBUG"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /G6 /MTd /W3 /Z7 /Od /Gf /D "WIN32" /D "_DEBUG" /D "SAFEMALLOC" /D "SAFE_MUTEX" /D "_WINDOWS" /FD /c
|
||||
# SUBTRACT BASE CPP /YX
|
||||
# ADD CPP /nologo /G6 /MTd /W3 /Z7 /Od /Gf /D "WIN32" /D "_DEBUG" /D "SAFEMALLOC" /D "SAFE_MUTEX" /D "_WINDOWS" /D "USE_TLS" /FD /c
|
||||
# ADD BASE CPP @includes@
|
||||
# ADD CPP @includes@
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo /out:"..\lib_debug\@name@_tls.lib"
|
||||
# ADD LIB32 /nologo /out:"..\lib_debug\@name@_tls.lib"
|
||||
@tls_debug_libs@
|
||||
|
||||
!ELSEIF "$(CFG)" == "@name@ - Win32 TLS"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "@name@___Win32_TLS"
|
||||
# PROP BASE Intermediate_Dir "@name@___Win32_TLS"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "@name@___Win32_TLS"
|
||||
# PROP Intermediate_Dir "@name@___Win32_TLS"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /G6 /MT /W3 /O2 /D "WIN32" /D "DBUG_OFF" /D "_WINDOWS" /D "NDEBUG" /FD /c
|
||||
# SUBTRACT BASE CPP /YX
|
||||
# ADD CPP /nologo /G6 /MT /W3 /O2 /D "WIN32" /D "DBUG_OFF" /D "_WINDOWS" /D "NDEBUG" /D "USE_TLS" /FD /c
|
||||
# ADD BASE CPP @includes@
|
||||
# ADD CPP @includes@
|
||||
# SUBTRACT CPP /YX
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo /out:"..\lib_release\@name@_tls.lib"
|
||||
# ADD LIB32 /nologo /out:"..\lib_release\@name@_tls.lib"
|
||||
@tls_release_libs@
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "@name@ - Win32 Release"
|
||||
# Name "@name@ - Win32 Debug"
|
||||
# Name "@name@ - Win32 TLS_DEBUG"
|
||||
# Name "@name@ - Win32 TLS"
|
||||
|
||||
# Begin Group "Source Files"
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
|
||||
@sources@
|
||||
|
||||
# End Group
|
||||
|
||||
# End Target
|
||||
# End Project
|
||||
42
ndb/config/win-libraries
Executable file
42
ndb/config/win-libraries
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
|
||||
dst=$1
|
||||
shift
|
||||
|
||||
add_lib(){
|
||||
echo `dirname $2`/$1/`basename $2 | sed "s/\.[l]*a/$3.lib/g"`
|
||||
}
|
||||
|
||||
out_rel=
|
||||
out_deb=
|
||||
out_tls_rel=
|
||||
out_tls_deb=
|
||||
for i in $*
|
||||
do
|
||||
if [ `echo $i | grep -c gcc` -eq 0 ]
|
||||
then
|
||||
out_rel="${out_rel} `add_lib lib_release $i`"
|
||||
out_deb="${out_deb} `add_lib lib_debug $i`"
|
||||
out_tls_rel="${out_tls_rel} `add_lib lib_release $i _tls`"
|
||||
out_tls_deb="${out_tls_deb} `add_lib lib_debug $i _tls`"
|
||||
fi
|
||||
done
|
||||
|
||||
fix(){
|
||||
echo "# ADD BASE LIB32 $*\n# ADD LIB32 $*\n"
|
||||
}
|
||||
|
||||
if [ "$out_rel" ]
|
||||
then
|
||||
out_rel=`fix $out_rel`
|
||||
out_deb=`fix $out_deb`
|
||||
out_tls_rel=`fix $out_tls_rel`
|
||||
out_tls_deb=`fix $out_tls_deb`
|
||||
fi
|
||||
|
||||
sed -e "s!@release_libs@!$out_rel!g" \
|
||||
-e "s!@debug_libs@!$out_deb!g" \
|
||||
-e "s!@tls_release_libs@!$out_tls_rel!g" \
|
||||
-e "s!@tls_debug_libs@!$out_tls_deb!g" \
|
||||
$dst > !tmp!$dst.$$
|
||||
mv !tmp!$dst.$$ $dst
|
||||
7
ndb/config/win-name
Executable file
7
ndb/config/win-name
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
dst=$1
|
||||
shift
|
||||
|
||||
sed -e "s/@name@/`echo $1 | sed 's/\.[l]*a//g'`/g" $dst > /tmp/$dst.$$
|
||||
mv /tmp/$dst.$$ $dst
|
||||
8
ndb/config/win-sources
Executable file
8
ndb/config/win-sources
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
dst=$1
|
||||
shift
|
||||
|
||||
out=`echo $* | sed 's!\([^ ]*\)!# Begin Source File\\\nSOURCE=\1\\\n# End Source File\\\n!g'`
|
||||
sed -e "s/@sources@/$out/g" $dst > /tmp/$dst.$$
|
||||
mv /tmp/$dst.$$ $dst
|
||||
Loading…
Add table
Add a link
Reference in a new issue