Skip to content

Commit

Permalink
added wine support and debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Sep 16, 2023
1 parent 7c10bd2 commit 8cbff66
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ src/vmtest.cpp
resources/
archive/
.vscode/
build/
build/
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ endif()

# Define preprocessor macros based on the build type
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_definitions(__DEBUG__)
add_compile_definitions(__VMAWARE_DEBUG__)
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
add_compile_definitions(__RELEASE__)
add_compile_definitions(__VMAWARE_RELEASE__)
endif()


Expand All @@ -49,7 +49,7 @@ set(TARGET "vmaware")
if (NOT MSVC)
if(CMAKE_BUILD_TYPE MATCHES "Debug")
MESSAGE(STATUS "Build set to debug mode")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DDEBUG -O0 -fsanitize=address,undefined,nullability") # -fsanitize=address,undefined,nullability
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DDEBUG -O0 -fsanitize=address")
elseif(CMAKE_BUILD_TYPE MATCHES "Release")
MESSAGE(STATUS "Build set to release mode")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -g0")
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ sudo make install
You can view the full docs [here](docs/documentation.md)


# Q&A



# Issues and pull requests
If you have any suggestions, ideas, or any sort of contribution, feel free to ask! I'll be more than happy to discuss. If you found this project useful, a star would be appreciated :)

Expand Down
9 changes: 8 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@


# distant plans
- add ARM support
- add ARM support


# fully tackled VMs
- [x] Wine
- [ ] QEMU
- [ ] VMware
- [ ] VBox
1 change: 1 addition & 0 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
| Check DLLs | Match for VM-specific DLLs | `VM::DLL` | Windows |
| Check registry | Look throughout the registry for all sorts of VMs | `VM::REGISTRY` | Windows |
| Check Sunbelt | Detect for Sunbelt technology | `VM::SUNBELT` | Windows |
| Check Wine | Find for a Wine-specific file | `VM::WINE` | Windows |

# Non-technique flags
| Flag | Description |
Expand Down
Loading

0 comments on commit 8cbff66

Please sign in to comment.