OW tools usage with VSCode
Fred Eckert edited this page Apr 9, 2022
·
5 revisions
Install Open Watcom V2 with DOS target operating system and environment variables. Install Visual Studio Code with C/C++, CMake, and CMake Tools extensions.
Ctrl+Shift+P> CMake: Edit User-Local CMake Kits
Add Open Watcom kits to cmake-tools-kits.json
{
"name": "OpenWatcom v2 Beta (32-bit DOS)",
"compilers": {
"C": "C:\\WATCOM\\binnt64\\wcl386.exe",
"CXX": "C:\\WATCOM\\binnt64\\wcl386.exe"
},
"preferredGenerator": {
"name": "Watcom WMake"
},
"cmakeSettings": {
"CMAKE_SYSTEM_NAME":"DOS"
},
{
"name": "OpenWatcom v2 Beta (16-bit DOS)",
"compilers": {
"C": "C:\\WATCOM\\binnt64\\wcl.exe",
"CXX": "C:\\WATCOM\\binnt64\\wcl.exe"
},
"preferredGenerator": {
"name": "Watcom WMake"
},
"cmakeSettings": {
"CMAKE_SYSTEM_NAME":"DOS",
"CMAKE_SYSTEM_PROCESSOR": "I86"
}
}
}
Ctrl+Shift+P> Preferences: Open Workspace Settings (JSON)
Add open watcom setting overrides to workspace .vscode/settings.json
{
"cmake.configureArgs": [
"-DCMAKE_CXX_COMPILER_WORKS=1",
"-DCMAKE_C_COMPILER_WORKS=1"
],
"cmake.generator": "Watcom WMake", //Comment this if you aren't using OpenWatcom compiler.
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
}
Ctrl+Shift+P> C/C++ Edit Configurations (JSON)
Add open watcom configuration overrides to workspace .vscode/c_cpp_properties.json
{
"configurations": [
{
"name": "DOS32",
"includePath": [
"${workspaceFolder}/**",
"C:/watcom/h/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"__WATCOMC__"
],
"cStandard": "c89",
"cppStandard": "c++98",
"intelliSenseMode": "msvc-x86",
"configurationProvider": "ms-vscode.cmake-tools",
"compilerPath": "C:\\WATCOM\\binnt64\\wcl386.exe"
}
Restart VSCode to load the configuration changes.
CMake: Edit User-Local CMake Kits Preferences: Open Workspace Settings (JSON) C/C++: Edit Configurations (JSON) CMake: Reset CMake Tools Extension State CMake: Delete Cache and Reconfigure CMake: Quick Start
- Welcome
- Building
- Open Watcom Documentation
- Notes
- Relicensing effort
- Debugging
- OW tools usage Overview
- OW tools usage with CMake
- OW tools usage with Visual Studio Code
- Open Watcom 1.9 Wiki
OW Development
WGML Development
- WGML
- Augmented Devices
- Binary Device Files
- Common File Blocks
- COP Files
- Device File Blocks
- Device Function Language
- Device Function Notes
- Device Functions
- Directory File Format
- Drawing Boxes
- Driver File Blocks
- File and Directory Names
- Font File Blocks
- Fonts
- GML Tag Notes
- Keyword Statistics
- Macros and User Defined Tags
- Meta Data
- Page Layout Subsystem
- Search Paths
- Sequencing
- System Symbol Notes
- Tabs and Tabbing
- whpcvt Utility interaction