build: add support for disabling native command support
This commit is contained in:
+9
-1
@@ -7,6 +7,10 @@ if (NOT DEFINED bshell_interactive)
|
||||
set(bshell_interactive 1)
|
||||
endif ()
|
||||
|
||||
if (NOT DEFINED bshell_enable_native_commands)
|
||||
set(bshell_enable_native_commands 1)
|
||||
endif ()
|
||||
|
||||
if (NOT DEFINED bshell_verbose)
|
||||
set(bshell_verbose 0)
|
||||
endif ()
|
||||
@@ -15,12 +19,16 @@ if (NOT DEFINED bshell_enable_floating_point)
|
||||
set(bshell_enable_floating_point 1)
|
||||
endif ()
|
||||
|
||||
set(required_fx_assemblies fx.runtime fx.collections fx.io fx.diagnostics fx.cmdline)
|
||||
set(required_fx_assemblies fx.runtime fx.collections fx.cmdline fx.io)
|
||||
|
||||
if (bshell_interactive)
|
||||
set(required_fx_assemblies ${required_fx_assemblies} fx.term)
|
||||
endif ()
|
||||
|
||||
if (bshell_enable_native_commands)
|
||||
set(required_fx_assemblies ${required_fx_assemblies} fx.diagnostics)
|
||||
endif ()
|
||||
|
||||
find_package(Python COMPONENTS Interpreter REQUIRED)
|
||||
find_package(FX REQUIRED COMPONENTS ${required_fx_assemblies})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user