ruki преди 2 години
родител
ревизия
140704aed2
променени са 2 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 1 0
      README.md
  2. 7 0
      configure

+ 1 - 0
README.md

@@ -186,6 +186,7 @@ $ make run
 - [x] is_mode
 - [x] is_config
 - [x] has_config
+- [x] set_config
 - [x] target
   - [x] set_kind
   - [x] add_deps

+ 7 - 0
configure

@@ -1056,6 +1056,13 @@ has_config() {
     return 1
 }
 
+# set config for option, we can use it to modify option status when loading targets
+set_config() {
+    local name=${1}
+    local value=${2}
+    _set_option_value "${name}" "${value}"
+}
+
 # set showmenu in option
 set_showmenu() {
     if ! ${_loading_options}; then