Option LOMSE_USING_EMSCRIPTEN (Default: OFF) is oriented to build JavaScript bindings using the Emscripten SDK. This new option is used to inform cmake script that it is being run with Emscripten tools. When setting this, all other settings, such as LOMSE_BUILD_SHARED_LIB, LOMSE_BUILD_TESTS, LOMSE_ENABLE_COMPRESSION, etc. are ignored and the cmake script will instead use the pre-defined settings required for JavaScript bindings.
Option LOMSE_ENABLE_FONTCONFIG (Default value: ON) is only meaningful for Linux systems and is used to control the dependency from the ‘fontconfig’ library. By setting this to OFF the dependency from 'fontconfig' is removed and Lomse will use only the fonts available in the path provided by the user application at Lomse initialization, instead of using system installed fonts.
Option LOMSE_ENABLE_THREADS (Default value: ON) allows to control whether Lomse will use threads or not, and can be used to remove the dependency from the 'threads' library. Lomse uses threads for the ScorePlayer class, also used by ScorePlayerCtrl class. If your application will not use ScorePlayer, you can reduce lomse size and avoid the pthreads dependency by disabling the use of threads.
This PR adds additional options for building:
Option
LOMSE_USING_EMSCRIPTEN
(Default:OFF
) is oriented to build JavaScript bindings using theEmscripten SDK
. This new option is used to inform cmake script that it is being run with Emscripten tools. When setting this, all other settings, such asLOMSE_BUILD_SHARED_LIB
,LOMSE_BUILD_TESTS
,LOMSE_ENABLE_COMPRESSION
, etc. are ignored and the cmake script will instead use the pre-defined settings required for JavaScript bindings.Option
LOMSE_ENABLE_FONTCONFIG
(Default value:ON
) is only meaningful for Linux systems and is used to control the dependency from the ‘fontconfig’ library. By setting this toOFF
the dependency from 'fontconfig' is removed and Lomse will use only the fonts available in the path provided by the user application at Lomse initialization, instead of using system installed fonts.Option
LOMSE_ENABLE_THREADS
(Default value:ON
) allows to control whether Lomse will use threads or not, and can be used to remove the dependency from the 'threads' library. Lomse uses threads for theScorePlayer
class, also used byScorePlayerCtrl
class. If your application will not useScorePlayer
, you can reduce lomse size and avoid thepthreads
dependency by disabling the use of threads.