with_config:
bash scripts/embed.bash gwion.config.json
touch src/main.c
- USE_CONFIG=1 CFLAGS="-DGWION_EMBED_GW -Iembed $(eval ${CFLAGS})" ${MAKE}
+ ${MAKE} USE_CONFIG=1
touch src/main.c
almost_gwion: ${almost_obj} ${ALMOST_LIBS}
echo "LDFLAGS += $ldflag "
done
} >> embed/embed.mk
+standalone=$(jq -rc '.standalone' <<< "$json")
+[ "$standalone" = "true" ] && {
+ echo "CFLAGS += -DGWION_STANDALONE"
+} >> embed/embed.mk
vector_init(&arg->add);
vector_init(&arg->lib);
vector_init(&arg->config);
+#ifndef GWION_STANDALONE
vector_add(&arg->lib, (vtype)plug_dir());
+#endif
arg->color = COLOR_AUTO;
}
#ifdef __FUZZING
return;
#endif
+#ifndef GWION_STANDALONE
config_default(&arg);
+#endif
return _arg_parse(&arg);
}