Skip to content

Commit

Permalink
feature: option to build tcvm without skia
Browse files Browse the repository at this point in the history
This feature ables to build TCVM without Skia. By default, this option is ON.
Without Skia, is possible to generate a very little final libtcvm
(~3MB on Linux).
It's also now possible to test the VM on OpenBSD.
Usage - Disable Skia: cmake <source_dir> -DUSE_SKIA=OFF
  • Loading branch information
erathke committed Jan 30, 2021
1 parent 2f1c900 commit 77b6091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TotalCrossVM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ENDIF (NOT (DEFINED ANDROID_ABI OR MSVC OR CMAKE_GENERATOR STREQUAL Xcode))
if(NOT MSVC AND USE_SKIA)
find_package(Skia REQUIRED)
include_directories(${SKIA_INCLUDE_DIRS})
add_compile_definitions(USE_SKIA)
add_definitions(-DUSE_SKIA)
endif(NOT MSVC AND USE_SKIA)

set(TC_SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}/src")
Expand Down

0 comments on commit 77b6091

Please sign in to comment.