82 filepath = os.path.splitdrive(filepath)[1] |
82 filepath = os.path.splitdrive(filepath)[1] |
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/winscw/c/resource/hb/themes/%s/\"\n" % (filepath, relpath)) |
89 out.write("!isEmpty(%s.commands): %s.commands += &&\n" % (target, target)) |
89 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)) |
90 out.write("%s.commands += $$QMAKE_UNZIP %s -d $$(HB_THEMES_DIR)/themes/%s\n" % (target, filepath, relpath)) |
91 else: |
91 else: |
92 out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath)) |
92 out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath)) |