#include "awtk.h"
#include "base/assets_manager.h"
#ifndef WITH_FS_RES
#include "default/inc/ui/main/main.data"
#include "default/inc/ui/notify_dialog/notify_dialog.data"
#include "default/inc/strings/en_US.data"
#include "default/inc/strings/zh_CN.data"
#include "default/inc/styles/default.data"
#include "default/inc/styles/main.data"
#ifdef WITH_STB_IMAGE
#include "default/inc/images/alert_down.res"
#include "default/inc/images/alert_up.res"
#include "default/inc/images/arrow_down_d.res"
#include "default/inc/images/arrow_down_f.res"
#include "default/inc/images/arrow_down_n.res"
#include "default/inc/images/arrow_down_o.res"
#include "default/inc/images/arrow_down_p.res"
#include "default/inc/images/arrow_left_d.res"
#include "default/inc/images/arrow_left_f.res"
#include "default/inc/images/arrow_left_n.res"
#include "default/inc/images/arrow_left_o.res"
#include "default/inc/images/arrow_left_p.res"
#include "default/inc/images/arrow_right_d.res"
#include "default/inc/images/arrow_right_f.res"
#include "default/inc/images/arrow_right_n.res"
#include "default/inc/images/arrow_right_o.res"
#include "default/inc/images/arrow_right_p.res"
#include "default/inc/images/arrow_up_d.res"
#include "default/inc/images/arrow_up_f.res"
#include "default/inc/images/arrow_up_n.res"
#include "default/inc/images/arrow_up_o.res"
#include "default/inc/images/arrow_up_p.res"
#include "default/inc/images/blue_indicate_light.res"
#include "default/inc/images/cchand.res"
#include "default/inc/images/cchand_over.res"
#include "default/inc/images/check_checked_d.res"
#include "default/inc/images/check_checked_f.res"
#include "default/inc/images/check_checked_n.res"
#include "default/inc/images/check_checked_o.res"
#include "default/inc/images/check_checked_p.res"
#include "default/inc/images/check_d.res"
#include "default/inc/images/check_f.res"
#include "default/inc/images/check_n.res"
#include "default/inc/images/check_o.res"
#include "default/inc/images/check_p.res"
#include "default/inc/images/cross.res"
#include "default/inc/images/cursor_over.res"
#include "default/inc/images/gray_indicate_light.res"
#include "default/inc/images/hand.res"
#include "default/inc/images/magnify.res"
#include "default/inc/images/magnify_p.res"
#include "default/inc/images/mouse.res"
#include "default/inc/images/num0.res"
#include "default/inc/images/num1.res"
#include "default/inc/images/num2.res"
#include "default/inc/images/num3.res"
#include "default/inc/images/num4.res"
#include "default/inc/images/num5.res"
#include "default/inc/images/num6.res"
#include "default/inc/images/num7.res"
#include "default/inc/images/num8.res"
#include "default/inc/images/num9.res"
#include "default/inc/images/numdot.res"
#include "default/inc/images/radio_checked_d.res"
#include "default/inc/images/radio_checked_f.res"
#include "default/inc/images/radio_checked_n.res"
#include "default/inc/images/radio_checked_o.res"
#include "default/inc/images/radio_checked_p.res"
#include "default/inc/images/radio_d.res"
#include "default/inc/images/radio_f.res"
#include "default/inc/images/radio_n.res"
#include "default/inc/images/radio_o.res"
#include "default/inc/images/radio_p.res"
#include "default/inc/images/red_indicate_light.res"
#include "default/inc/images/restore.res"
#include "default/inc/images/restore_p.res"
#include "default/inc/images/rounded_n.res"
#include "default/inc/images/rounded_o.res"
#include "default/inc/images/rounded_p.res"
#include "default/inc/images/serial_status_off.res"
#include "default/inc/images/serial_status_on.res"
#include "default/inc/images/shrink.res"
#include "default/inc/images/shrink_p.res"
#include "default/inc/images/tps02r_module.res"
#include "default/inc/images/tps08u_module.res"
#include "default/inc/images/x_axis.res"
#include "default/inc/images/y_axis.res"
#include "default/inc/images/zam4004_module.res"
#include "default/inc/images/zam5404_module.res"
#include "default/inc/images/zam6218_module.res"
#include "default/inc/images/zam6222_module.res"
#include "default/inc/images/ZAM6228.res"
#else
#endif /*WITH_STB_IMAGE*/
#ifdef WITH_VGCANVAS
#endif /*WITH_VGCANVAS*/
#ifdef WITH_TRUETYPE_FONT
#include "default/inc/fonts/default.res"
#else /*WITH_TRUETYPE_FONT*/
#endif /*WITH_TRUETYPE_FONT*/
#endif /*WITH_FS_RES*/

ret_t assets_init_default(void) {
  assets_manager_t* am = assets_manager();

#ifdef WITH_FS_RES
  assets_manager_preload(am, ASSET_TYPE_STYLE, "default");
#else
  assets_manager_add(am, ui_main_main);
  assets_manager_add(am, ui_notify_dialog_notify_dialog);
  assets_manager_add(am, strings_en_US);
  assets_manager_add(am, strings_zh_CN);
  assets_manager_add(am, style_default);
  assets_manager_add(am, style_main);
  assets_manager_add(am, image_alert_down);
  assets_manager_add(am, image_alert_up);
  assets_manager_add(am, image_arrow_down_d);
  assets_manager_add(am, image_arrow_down_f);
  assets_manager_add(am, image_arrow_down_n);
  assets_manager_add(am, image_arrow_down_o);
  assets_manager_add(am, image_arrow_down_p);
  assets_manager_add(am, image_arrow_left_d);
  assets_manager_add(am, image_arrow_left_f);
  assets_manager_add(am, image_arrow_left_n);
  assets_manager_add(am, image_arrow_left_o);
  assets_manager_add(am, image_arrow_left_p);
  assets_manager_add(am, image_arrow_right_d);
  assets_manager_add(am, image_arrow_right_f);
  assets_manager_add(am, image_arrow_right_n);
  assets_manager_add(am, image_arrow_right_o);
  assets_manager_add(am, image_arrow_right_p);
  assets_manager_add(am, image_arrow_up_d);
  assets_manager_add(am, image_arrow_up_f);
  assets_manager_add(am, image_arrow_up_n);
  assets_manager_add(am, image_arrow_up_o);
  assets_manager_add(am, image_arrow_up_p);
  assets_manager_add(am, image_blue_indicate_light);
  assets_manager_add(am, image_cchand);
  assets_manager_add(am, image_cchand_over);
  assets_manager_add(am, image_check_checked_d);
  assets_manager_add(am, image_check_checked_f);
  assets_manager_add(am, image_check_checked_n);
  assets_manager_add(am, image_check_checked_o);
  assets_manager_add(am, image_check_checked_p);
  assets_manager_add(am, image_check_d);
  assets_manager_add(am, image_check_f);
  assets_manager_add(am, image_check_n);
  assets_manager_add(am, image_check_o);
  assets_manager_add(am, image_check_p);
  assets_manager_add(am, image_cross);
  assets_manager_add(am, image_cursor_over);
  assets_manager_add(am, image_gray_indicate_light);
  assets_manager_add(am, image_hand);
  assets_manager_add(am, image_magnify);
  assets_manager_add(am, image_magnify_p);
  assets_manager_add(am, image_mouse);
  assets_manager_add(am, image_num0);
  assets_manager_add(am, image_num1);
  assets_manager_add(am, image_num2);
  assets_manager_add(am, image_num3);
  assets_manager_add(am, image_num4);
  assets_manager_add(am, image_num5);
  assets_manager_add(am, image_num6);
  assets_manager_add(am, image_num7);
  assets_manager_add(am, image_num8);
  assets_manager_add(am, image_num9);
  assets_manager_add(am, image_numdot);
  assets_manager_add(am, image_radio_checked_d);
  assets_manager_add(am, image_radio_checked_f);
  assets_manager_add(am, image_radio_checked_n);
  assets_manager_add(am, image_radio_checked_o);
  assets_manager_add(am, image_radio_checked_p);
  assets_manager_add(am, image_radio_d);
  assets_manager_add(am, image_radio_f);
  assets_manager_add(am, image_radio_n);
  assets_manager_add(am, image_radio_o);
  assets_manager_add(am, image_radio_p);
  assets_manager_add(am, image_red_indicate_light);
  assets_manager_add(am, image_restore);
  assets_manager_add(am, image_restore_p);
  assets_manager_add(am, image_rounded_n);
  assets_manager_add(am, image_rounded_o);
  assets_manager_add(am, image_rounded_p);
  assets_manager_add(am, image_serial_status_off);
  assets_manager_add(am, image_serial_status_on);
  assets_manager_add(am, image_shrink);
  assets_manager_add(am, image_shrink_p);
  assets_manager_add(am, image_tps02r_module);
  assets_manager_add(am, image_tps08u_module);
  assets_manager_add(am, image_x_axis);
  assets_manager_add(am, image_y_axis);
  assets_manager_add(am, image_zam4004_module);
  assets_manager_add(am, image_zam5404_module);
  assets_manager_add(am, image_zam6218_module);
  assets_manager_add(am, image_zam6222_module);
  assets_manager_add(am, image_ZAM6228);
#ifdef WITH_VGCANVAS
#endif /*WITH_VGCANVAS*/
#ifdef WITH_TRUETYPE_FONT
  assets_manager_add(am, font_default);
#else /*WITH_TRUETYPE_FONT*/
#endif /*WITH_TRUETYPE_FONT*/
#endif

  tk_init_assets();
  return RET_OK;
}
