wxOS2 with Open Watcom: correct PCH usage, missing headers, warning fixes, source cleaning and other Watcom adjustements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -279,7 +279,7 @@ to run the tests, include CppUnit library here.
|
|||||||
|
|
||||||
|
|
||||||
<!-- ================================================================== -->
|
<!-- ================================================================== -->
|
||||||
<!-- windows compilers -->
|
<!-- windows/dos/os2 compilers -->
|
||||||
<!-- ================================================================== -->
|
<!-- ================================================================== -->
|
||||||
|
|
||||||
<if cond="FORMAT!='autoconf'">
|
<if cond="FORMAT!='autoconf'">
|
||||||
@@ -296,8 +296,10 @@ it if SHARED=1 unless you know what you are doing.
|
|||||||
<set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
|
<set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
|
||||||
|
|
||||||
<set var="TOOLKIT" overwrite="0">
|
<set var="TOOLKIT" overwrite="0">
|
||||||
<if cond="FORMAT!='msevc4prj'">MSW</if>
|
|
||||||
<if cond="FORMAT=='msevc4prj'">WINCE</if>
|
<if cond="FORMAT=='msevc4prj'">WINCE</if>
|
||||||
|
<if cond="FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW</if>
|
||||||
|
<if cond="PLATFORM_MSDOS=='1'">DOS</if>
|
||||||
|
<if cond="PLATFORM_OS2=='1'">PM</if>
|
||||||
</set>
|
</set>
|
||||||
<set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
|
<set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
|
||||||
<set var="TOOLKIT_VERSION"/>
|
<set var="TOOLKIT_VERSION"/>
|
||||||
|
@@ -29,6 +29,9 @@
|
|||||||
<define cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
|
<define cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
|
||||||
COMPILED_FROM_DSP
|
COMPILED_FROM_DSP
|
||||||
</define>
|
</define>
|
||||||
|
<define cond="FORMAT=='watcom' and PLATFORM_OS2=='1'">
|
||||||
|
OS2_32
|
||||||
|
</define>
|
||||||
<cflags-borland>-w-8004 -w-8008 -w-8012 -w-8057 -w-8066</cflags-borland>
|
<cflags-borland>-w-8004 -w-8008 -w-8012 -w-8057 -w-8066</cflags-borland>
|
||||||
<sources>
|
<sources>
|
||||||
src/expat/lib/xmlparse.c
|
src/expat/lib/xmlparse.c
|
||||||
|
@@ -1626,6 +1626,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
|||||||
src/os2/ownerdrw.cpp
|
src/os2/ownerdrw.cpp
|
||||||
src/os2/palette.cpp
|
src/os2/palette.cpp
|
||||||
src/os2/pen.cpp
|
src/os2/pen.cpp
|
||||||
|
src/os2/popupwin.cpp
|
||||||
src/os2/print.cpp
|
src/os2/print.cpp
|
||||||
src/os2/radiobox.cpp
|
src/os2/radiobox.cpp
|
||||||
src/os2/radiobut.cpp
|
src/os2/radiobut.cpp
|
||||||
|
@@ -28,7 +28,8 @@
|
|||||||
<set var="TIFF_PLATFORM_SRC">
|
<set var="TIFF_PLATFORM_SRC">
|
||||||
<if cond="PLATFORM_UNIX=='1'">src/tiff/tif_unix.c</if>
|
<if cond="PLATFORM_UNIX=='1'">src/tiff/tif_unix.c</if>
|
||||||
<if cond="PLATFORM_MACOSX=='1'">src/tiff/tif_unix.c</if>
|
<if cond="PLATFORM_MACOSX=='1'">src/tiff/tif_unix.c</if>
|
||||||
<if cond="PLATFORM_OS2=='1'">src/tiff/tif_unix.c</if>
|
<if cond="PLATFORM_OS2=='1' and FORMAT!='watcom'">src/tiff/tif_unix.c</if>
|
||||||
|
<if cond="PLATFORM_OS2=='1' and FORMAT=='watcom'">src/tiff/tif_os2.c</if>
|
||||||
<if cond="PLATFORM_WIN32=='1'">src/tiff/tif_win32.c</if>
|
<if cond="PLATFORM_WIN32=='1'">src/tiff/tif_win32.c</if>
|
||||||
<if cond="PLATFORM_MACOS=='1'">src/tiff/tif_apple.c</if>
|
<if cond="PLATFORM_MACOS=='1'">src/tiff/tif_apple.c</if>
|
||||||
<if cond="PLATFORM_MSDOS=='1'">src/tiff/tif_msdos.c</if>
|
<if cond="PLATFORM_MSDOS=='1'">src/tiff/tif_msdos.c</if>
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
<include>$(INC_JPEG)</include>
|
<include>$(INC_JPEG)</include>
|
||||||
<cflags-borland>-w-8004 -w-8012 -w-8057 -w-8060 -w-8066</cflags-borland>
|
<cflags-borland>-w-8004 -w-8012 -w-8057 -w-8060 -w-8066</cflags-borland>
|
||||||
<cflags-dmars>-w2</cflags-dmars>
|
<cflags-dmars>-w2</cflags-dmars>
|
||||||
|
<define cond="PLATFORM_OS2=='1' and FORMAT=='watcom'">OS2_32</define>
|
||||||
<sources>
|
<sources>
|
||||||
$(TIFF_PLATFORM_SRC)
|
$(TIFF_PLATFORM_SRC)
|
||||||
src/tiff/tif_aux.c
|
src/tiff/tif_aux.c
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
<subproject id="samples">
|
<subproject id="samples">
|
||||||
<installable>no</installable>
|
<installable>no</installable>
|
||||||
<dir cond="FORMAT=='autoconf'">samples</dir>
|
<dir cond="FORMAT=='autoconf'">samples</dir>
|
||||||
<dir cond="FORMAT!='autoconf' and TOOLKIT in ['MSW','MGL']">../../samples</dir>
|
<dir cond="FORMAT!='autoconf' and TOOLKIT in ['PM','MSW','MGL']">../../samples</dir>
|
||||||
</subproject>
|
</subproject>
|
||||||
|
|
||||||
<if cond="FORMAT=='autoconf'">
|
<if cond="FORMAT=='autoconf'">
|
||||||
@@ -145,8 +145,8 @@
|
|||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
||||||
<!-- copy setup.h on DOS/Windows: -->
|
<!-- copy setup.h on DOS/OS2/Windows: -->
|
||||||
<if cond="FORMAT!='autoconf' and TOOLKIT in ['MSW','MGL']">
|
<if cond="FORMAT!='autoconf' and TOOLKIT in ['PM','MSW','MGL']">
|
||||||
<mkdir id="libdir">
|
<mkdir id="libdir">
|
||||||
<dir>$(LIBDIRNAME)</dir>
|
<dir>$(LIBDIRNAME)</dir>
|
||||||
</mkdir>
|
</mkdir>
|
||||||
@@ -162,7 +162,8 @@
|
|||||||
|
|
||||||
<set var="SETUP_H_SUBDIR">
|
<set var="SETUP_H_SUBDIR">
|
||||||
<if cond="WXUNIV=='1'">univ</if>
|
<if cond="WXUNIV=='1'">univ</if>
|
||||||
<if cond="WXUNIV=='0'">$(TOOLKIT_LOWERCASE)</if>
|
<if cond="WXUNIV=='0' and TOOLKIT!='PM'">$(TOOLKIT_LOWERCASE)</if>
|
||||||
|
<if cond="WXUNIV=='0' and TOOLKIT=='PM'">os2</if>
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
<copy-file-to-file-if-not-exist id="master_setup.h">
|
<copy-file-to-file-if-not-exist id="master_setup.h">
|
||||||
|
@@ -218,5 +218,8 @@ extern int creat(const char *path, int mode);
|
|||||||
#define HOST_BIGENDIAN 0
|
#define HOST_BIGENDIAN 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef LINKAGEMODE
|
||||||
|
#define LINKAGEMODE
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _COMPAT_ */
|
#endif /* _COMPAT_ */
|
||||||
|
Reference in New Issue
Block a user