removed duplicated code and really fixed setup.h problems in regex.lib
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cb979facf3
commit
cb9548d9a7
@ -256,7 +256,37 @@
|
||||
-->
|
||||
<install-if>SHARED=='0'</install-if>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- deal with the need to copy setup.h here: -->
|
||||
|
||||
<define-tag name="msvc-headers" rules="dll,lib">
|
||||
<if cond="FORMAT=='msvc6prj'">
|
||||
<msvc-project-files>
|
||||
$(addPrefixToList('include\', wxwin.headersOnly(value)))
|
||||
</msvc-project-files>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<define-tag name="msvc-copy-setup-h" rules="dll,lib">
|
||||
<if cond="FORMAT=='msvc6prj'">
|
||||
<msvc-headers>wx/msw/setup.h</msvc-headers>
|
||||
<set var="__custom_build_files" append="1">
|
||||
include\wx\msw\setup.h
|
||||
</set>
|
||||
<set var="__custom_build_include_wx_msw_setup_h">
|
||||
Creating $(SETUPHDIR)\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
|
||||
$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
||||
</set>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<template id="msvc_setup_h">
|
||||
<msvc-copy-setup-h/>
|
||||
</template>
|
||||
|
||||
<!-- =============================================================== -->
|
||||
<!-- 3rd party libs: -->
|
||||
@ -332,30 +362,6 @@
|
||||
</if>
|
||||
</template>
|
||||
|
||||
<define-tag name="msvc-headers" rules="dll,lib">
|
||||
<if cond="FORMAT=='msvc6prj'">
|
||||
<msvc-project-files>
|
||||
$(addPrefixToList('include\', wxwin.headersOnly(value)))
|
||||
</msvc-project-files>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<define-tag name="msvc-copy-setup-h" rules="dll,lib">
|
||||
<if cond="FORMAT=='msvc6prj'">
|
||||
<msvc-headers>wx/msw/setup.h</msvc-headers>
|
||||
<set var="__custom_build_files" append="1">
|
||||
include\wx\msw\setup.h
|
||||
</set>
|
||||
<set var="__custom_build_include_wx_msw_setup_h">
|
||||
Creating $(SETUPHDIR)\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
|
||||
$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
||||
</set>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
|
||||
<!-- for GUI libs/samples: -->
|
||||
<template id="wx_append_nomono" template="wx_append_base_nomono">
|
||||
@ -439,10 +445,6 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
||||
<include>$(INC_REGEX)</include>
|
||||
<include>$(INC_EXPAT)</include>
|
||||
</template>
|
||||
|
||||
<template id="msvc_setup_h">
|
||||
<msvc-copy-setup-h/>
|
||||
</template>
|
||||
|
||||
<template id="wx_lib"
|
||||
template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
|
||||
|
@ -1,39 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!-- $Id$ -->
|
||||
|
||||
<makefile>
|
||||
|
||||
<set var="UNICODE_DEFINE">
|
||||
<if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if>
|
||||
</set>
|
||||
|
||||
<set var="UNICOWS_LIB">
|
||||
<if cond="MSLU=='1'">unicows</if>
|
||||
</set>
|
||||
|
||||
<define-tag name="msvc-headers" rules="dll,lib">
|
||||
<if cond="FORMAT=='msvc6prj'">
|
||||
<msvc-project-files>
|
||||
$(addPrefixToList('include\', wxwin.headersOnly(value)))
|
||||
</msvc-project-files>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<define-tag name="msvc-copy-setup-h" rules="dll,lib">
|
||||
<if cond="FORMAT=='msvc6prj'">
|
||||
<msvc-headers>wx/msw/setup.h</msvc-headers>
|
||||
<set var="__custom_build_files" append="1">
|
||||
include\wx\msw\setup.h
|
||||
</set>
|
||||
<set var="__custom_build_include_wx_msw_setup_h">
|
||||
Creating $(SETUPHDIR)\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
|
||||
$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
||||
</set>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<option name="wxUSE_REGEX"/>
|
||||
</if>
|
||||
@ -47,7 +16,7 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
|
||||
<if cond="wxUSE_REGEX=='builtin'">$(TOP_SRCDIR)src/regex</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxregex" template="3rdparty_lib"
|
||||
<lib id="wxregex" template="msvc_setup_h,3rdparty_lib"
|
||||
cond="wxUSE_REGEX=='builtin' and BUILDING_LIB=='1'">
|
||||
<include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
|
||||
<include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
|
||||
|
@ -448,6 +448,177 @@ SOURCE=..\..\src\regex\regexec.c
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\src\regex\regfree.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\wx\msw\setup.h
|
||||
|
||||
!IF "$(CFG)" == "wxregex - Win32 DLL Universal Unicode Release"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_dll\mswunivu\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_dll\mswunivu\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_dll\mswunivu\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 DLL Universal Unicode Debug"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_dll\mswunivud\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_dll\mswunivud\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_dll\mswunivud\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 DLL Universal Release"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_dll\mswuniv\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_dll\mswuniv\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_dll\mswuniv\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 DLL Universal Debug"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_dll\mswunivd\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_dll\mswunivd\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_dll\mswunivd\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 DLL Unicode Release"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_dll\mswu\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_dll\mswu\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_dll\mswu\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 DLL Unicode Debug"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_dll\mswud\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_dll\mswud\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_dll\mswud\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 DLL Release"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_dll\msw\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_dll\msw\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_dll\msw\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 DLL Debug"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_dll\mswd\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_dll\mswd\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_dll\mswd\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 Universal Unicode Release"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_lib\mswunivu\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_lib\mswunivu\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_lib\mswunivu\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 Universal Unicode Debug"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_lib\mswunivud\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_lib\mswunivud\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_lib\mswunivud\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 Universal Release"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_lib\mswuniv\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_lib\mswuniv\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_lib\mswuniv\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 Universal Debug"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_lib\mswunivd\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_lib\mswunivd\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_lib\mswunivd\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 Unicode Release"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_lib\mswu\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_lib\mswu\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_lib\mswu\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 Unicode Debug"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_lib\mswud\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_lib\mswud\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_lib\mswud\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 Release"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_lib\msw\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_lib\msw\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_lib\msw\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "wxregex - Win32 Debug"
|
||||
|
||||
# Begin Custom Build - Creating ..\..\lib\vc_lib\mswd\wx\setup.h
|
||||
InputPath=..\include\wx\msw\setup.h
|
||||
|
||||
"..\..\lib\vc_lib\mswd\wx\setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
copy "$(InputPath)" ..\..\lib\vc_lib\mswd\wx\setup.h
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
|
Loading…
Reference in New Issue
Block a user