bin/installs.py
changeset 21 e81654f8e7d8
parent 15 4d00362086e0
equal deleted inserted replaced
19:47ae52d1c868 21:e81654f8e7d8
    83             if include_exclude(filepath):
    83             if include_exclude(filepath):
    84                 target = make_target(root)
    84                 target = make_target(root)
    85                 relpath = os.path.relpath(root, input_dir).replace("\\", "/")
    85                 relpath = os.path.relpath(root, input_dir).replace("\\", "/")
    86                 if os.path.splitext(file)[1] == ".zip":
    86                 if os.path.splitext(file)[1] == ".zip":
    87                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    87                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    88                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/winscw/c/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    88                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/release/winscw/urel/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
       
    89                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    89                     out.write("!isEmpty(%s.commands): %s.commands += &&\n" % (target, target))
    90                     out.write("!isEmpty(%s.commands): %s.commands += &&\n" % (target, target))
    90                     out.write("%s.commands += $$QMAKE_UNZIP %s -d $$(HB_THEMES_DIR)/themes/%s\n" % (target, filepath, relpath))
    91                     out.write("%s.commands += $$QMAKE_UNZIP %s -d $$(HB_THEMES_DIR)/themes/%s\n" % (target, filepath, relpath))
    91                 else:
    92                 else:
    92                     out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    93                     out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    93                     out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/winscw/c/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    94                     out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/release/winscw/urel/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
       
    95                     out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    94                     out.write("%s.files += %s\n" % (target, filepath))
    96                     out.write("%s.files += %s\n" % (target, filepath))
    95                 if root not in roots:
    97                 if root not in roots:
    96                     out.write("%s.CONFIG += no_build\n" % target)
    98                     out.write("%s.CONFIG += no_build\n" % target)
    97                     out.write("%s.path = $$(HB_THEMES_DIR)/themes/%s\n" % (target, relpath))
    99                     out.write("%s.path = $$(HB_THEMES_DIR)/themes/%s\n" % (target, relpath))
    98                     out.write("INSTALLS += %s\n" % target)
   100                     out.write("INSTALLS += %s\n" % target)