Showing the changes to src/core/chuck_compile.cpp (1 of 26 files). Show all
Unified · Split
| @@ -32,7 +32,9 @@ · 31 unmodified lines | ||
| 32 | 32 | #include "chuck_compile.h" |
| 33 | 33 | #include "chuck_lang.h" |
| 34 | 34 | #include "chuck_errmsg.h" |
| 35 | −//#include "chuck_otf.h" | |
| 35 | +#ifndef __DISABLE_OTF_SERVER__ | |
| 36 | +#include "chuck_otf.h" | |
| 37 | +#endif | |
| 36 | 38 | |
| 37 | 39 | #include "ugen_osc.h" |
| 38 | 40 | #include "ugen_xxx.h" |
| @@ -40,12 +42,23 @@ · 1 unmodified line | ||
| 40 | 42 | #include "ugen_stk.h" |
| 41 | 43 | #include "uana_xform.h" |
| 42 | 44 | #include "uana_extract.h" |
| 43 | −//#include "ulib_machine.h" | |
| 45 | + | |
| 46 | +#ifndef __DISABLE_OTF_SERVER__ | |
| 47 | +#include "ulib_machine.h" | |
| 48 | +#endif | |
| 49 | + | |
| 44 | 50 | #include "ulib_math.h" |
| 45 | 51 | #include "ulib_std.h" |
| 46 | −//#include "ulib_opsc.h" | |
| 52 | + | |
| 53 | +#ifndef __DISABLE_NETWORK__ | |
| 54 | +#include "ulib_opsc.h" | |
| 55 | +#endif | |
| 56 | + | |
| 47 | 57 | #include "ulib_regex.h" |
| 48 | −//#include "chuck_io.h" | |
| 58 | + | |
| 59 | +#ifndef __DISABLE_SERIAL__ | |
| 60 | +#include "chuck_io.h" | |
| 61 | +#endif | |
| 49 | 62 | |
| 50 | 63 | #if defined(__PLATFORM_WIN32__) |
| 51 | 64 | #include "dirent_win32.h" |
| @@ -649,22 +662,35 @@ t_CKBOOL load_internal_modules( Chuck_Compiler * compiler ) · 597 unmodified lines | ||
| 649 | 662 | load_module( compiler, env, extract_query, "extract", "global" ); |
| 650 | 663 | |
| 651 | 664 | // load |
| 665 | + #ifndef __DISABLE_OTF_SERVER__ | |
| 652 | 666 | EM_log( CK_LOG_SEVERE, "class 'machine'..." ); |
| 653 | −// if( !load_module( compiler, env, machine_query, "Machine", "global" ) ) goto error; | |
| 654 | −// machine_init( compiler, otf_process_msg ); | |
| 667 | + if( !load_module( compiler, env, machine_query, "Machine", "global" ) ) goto error; | |
| 668 | + machine_init( compiler, otf_process_msg ); | |
| 669 | + #endif | |
| 670 | + | |
| 655 | 671 | EM_log( CK_LOG_SEVERE, "class 'std'..." ); |
| 656 | 672 | if( !load_module( compiler, env, libstd_query, "Std", "global" ) ) goto error; |
| 657 | 673 | EM_log( CK_LOG_SEVERE, "class 'math'..." ); |
| 658 | 674 | if( !load_module( compiler, env, libmath_query, "Math", "global" ) ) goto error; |
| 659 | 675 | |
| 660 | −// EM_log( CK_LOG_SEVERE, "class 'opsc'..." ); | |
| 661 | −// if( !load_module( compiler, env, opensoundcontrol_query, "opsc", "global" ) ) goto error; | |
| 676 | + #ifndef __DISABLE_NETWORK__ | |
| 677 | + EM_log( CK_LOG_SEVERE, "class 'opsc'..." ); | |
| 678 | + if( !load_module( compiler, env, opensoundcontrol_query, "opsc", "global" ) ) goto error; | |
| 679 | + #endif | |
| 680 | + | |
| 662 | 681 | EM_log( CK_LOG_SEVERE, "class 'RegEx'..." ); |
| 663 | 682 | if( !load_module( compiler, env, regex_query, "RegEx", "global" ) ) goto error; |
| 683 | + | |
| 684 | + // Deprecated: | |
| 664 | 685 | // if( !load_module( compiler, env, net_query, "net", "global" ) ) goto error; |
| 665 | 686 | |
| 666 | −// if( !init_class_HID( env ) ) goto error; | |
| 667 | −// if( !init_class_serialio( env ) ) goto error; | |
| 687 | + #ifndef __DISABLE_HID__ | |
| 688 | + if( !init_class_HID( env ) ) goto error; | |
| 689 | + #endif | |
| 690 | + | |
| 691 | + #ifndef __DISABLE_SERIAL__ | |
| 692 | + if( !init_class_serialio( env ) ) goto error; | |
| 693 | + #endif | |
| 668 | 694 | |
| 669 | 695 | // clear context |
| 670 | 696 | type_engine_unload_context( env ); |