Beispiel #1
0
def is_dependencies_ok():
    dependencies = ['bsvggen', 'fontgen', 'imagegen', 'resgen', 'strgen', 'themegen', 'xml_to_ui']
    for d in dependencies:
      if not os.path.exists(common.join_path(TOOLS_ROOT, common.to_exe(d))):
          print('Can\'t find ' + common.to_exe(d) + ', please build AWTK.')
          return False

    if IS_GENERATE_INC_BITMAP:
        for t in THEMES:
            if isinstance(t, dict):
                print(t['imagegen_options'])
                if 'imagegen_options' in t and t['imagegen_options'] == 'mono':
                    if not os.path.exists(common.join_path(TOOLS_ROOT, common.to_exe('fontgen_ft'))):
                        print('If you need to generate fonts those display on MONO LCD, please generate fontgen_ft.')
                        return False

    return True
Beispiel #2
0
def buildTools():
    common.init(AWTK_ROOT, ASSETS_ROOT, 'default', ASSET_C)
    os.system('scons '+common.to_exe('bsvggen'))
    os.system('scons '+common.to_exe('strgen'))
    os.system('scons '+common.to_exe('resgen'))
    os.system('scons '+common.to_exe('themegen'))
    os.system('scons '+common.to_exe('imagegen'))
    os.system('scons '+common.to_exe('fontgen'))
    os.system('scons '+common.to_exe('xml_to_ui'))