summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows3x.cmake
diff options
context:
space:
mode:
authorJiri Malak <malak.jiri@gmail.com>2023-01-24 21:36:24 (GMT)
committerJiri Malak <malak.jiri@gmail.com>2023-01-25 16:53:03 (GMT)
commite194caa5a3c35be8b9322304e87b9a38239d65ea (patch)
tree9c2ae6f179704b09c3be7e49d7c0675e1ee11be0 /Modules/Platform/Windows3x.cmake
parent950effe434623b50a1c85e2c53ed592210e79ceb (diff)
downloadCMake-e194caa5a3c35be8b9322304e87b9a38239d65ea.zip
CMake-e194caa5a3c35be8b9322304e87b9a38239d65ea.tar.gz
CMake-e194caa5a3c35be8b9322304e87b9a38239d65ea.tar.bz2
OpenWatcom: Add correct support for 16-bit Windows
This add correct Open Watcom support for 16-bit Windows 3.x. It replace existing strange mixture with WIN32 stuff which implement 16-bit Windows target partially as part of WIN32 stuff. Now pre-defined OS ID Windows3x is used instead of confusing WIN32. It support properly 16-bit and 32-bit application for 16-bit Windows host. 32-bit applications are build with OW WIN386 extender. It is used similar as for other platforms by set CMAKE_SYSTEM_NAME=Windows3x and CMAKE_SYSTEM_PROCESSOR=I86 for 16-bit application or CMAKE_SYSTEM_PROCESSOR=x86 for 32-bit WIN386 extender application running on 16-bit Windows 3.x. CMAKE_SYSTEM_NAME=Windows is used only for WIN32 applications.
Diffstat (limited to 'Modules/Platform/Windows3x.cmake')
-rw-r--r--Modules/Platform/Windows3x.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/Platform/Windows3x.cmake b/Modules/Platform/Windows3x.cmake
new file mode 100644
index 0000000..856f4b1
--- /dev/null
+++ b/Modules/Platform/Windows3x.cmake
@@ -0,0 +1,12 @@
+set(CMAKE_STATIC_LIBRARY_PREFIX "")
+set(CMAKE_STATIC_LIBRARY_SUFFIX ".lib")
+set(CMAKE_SHARED_LIBRARY_PREFIX "")
+set(CMAKE_SHARED_LIBRARY_SUFFIX ".dll")
+set(CMAKE_IMPORT_LIBRARY_PREFIX "")
+set(CMAKE_IMPORT_LIBRARY_SUFFIX ".lib")
+set(CMAKE_EXECUTABLE_SUFFIX ".exe")
+set(CMAKE_LINK_LIBRARY_SUFFIX ".lib")
+set(CMAKE_DL_LIBS "")
+
+set(CMAKE_FIND_LIBRARY_PREFIXES "")
+set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")