Code

disable more features with --enable-mini
[ncmpc.git] / src / options.c
index 853f105452c0d47c610b1b8c7381600d9c71bfca..b6a49e3c68204d7cdef42abb9271c5c8d0e73145 100644 (file)
@@ -49,12 +49,16 @@ options_t options = {
        .port = DEFAULT_PORT,
        .crossfade_time = DEFAULT_CROSSFADE_TIME,
        .seek_time = 1,
+#ifdef ENABLE_LYRICS_SCREEN
        .lyrics_timeout = DEFAULT_LYRICS_TIMEOUT,
+#endif
        .find_wrap = true,
        .wide_cursor = true,
        .audible_bell = true,
+#ifndef NCMPC_MINI
        .scroll = DEFAULT_SCROLL,
        .welcome_screen_list = true,
+#endif
 };
 
 static const arg_opt_t option_table[] = {
@@ -190,10 +194,14 @@ handle_option(int c, const char *arg)
 #endif
                break;
        case 'm': /* --mouse */
+#ifdef HAVE_GETMOUSE
                options.enable_mouse = true;
+#endif
                break;
        case 'M': /* --no-mouse */
+#ifdef HAVE_GETMOUSE
                options.enable_mouse = false;
+#endif
                break;
        case 'e': /* --exit */
                /* deprecated */
@@ -347,5 +355,7 @@ options_init(void)
        options.status_format = g_strdup(DEFAULT_STATUS_FORMAT);
        options.screen_list = g_strsplit_set(DEFAULT_SCREEN_LIST, " ", 0);
        options.timedisplay_type = g_strdup(DEFAULT_TIMEDISPLAY_TYPE);
+#ifndef NCMPC_MINI
        options.scroll_sep = g_strdup(DEFAULT_SCROLL_SEP);
+#endif
 }