src/hbcore/hbcore.pro
changeset 34 ed14f46c0e55
parent 7 923ff622b8b9
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    31 DEFINES += HB_BIN_DIR=\"\\\"$${HB_BIN_DIR}\\\"\"
    31 DEFINES += HB_BIN_DIR=\"\\\"$${HB_BIN_DIR}\\\"\"
    32 DEFINES += HB_PLUGINS_DIR=\"\\\"$${HB_PLUGINS_DIR}\\\"\"
    32 DEFINES += HB_PLUGINS_DIR=\"\\\"$${HB_PLUGINS_DIR}\\\"\"
    33 DEFINES += HB_RESOURCES_DIR=\"\\\"$${HB_RESOURCES_DIR}\\\"\"
    33 DEFINES += HB_RESOURCES_DIR=\"\\\"$${HB_RESOURCES_DIR}\\\"\"
    34 DEFINES += HB_BUILD_DIR=\"\\\"$${HB_BUILD_DIR}\\\"\"
    34 DEFINES += HB_BUILD_DIR=\"\\\"$${HB_BUILD_DIR}\\\"\"
    35 DEFINES += HB_INSTALL_DIR=\"\\\"$${HB_INSTALL_DIR}\\\"\"
    35 DEFINES += HB_INSTALL_DIR=\"\\\"$${HB_INSTALL_DIR}\\\"\"
       
    36 DEFINES += HB_TRANSLATIONS_DIR=\"\\\"$${HB_TRANSLATIONS_DIR}\\\"\"
    36 *-maemo*:DEFINES += HB_Q_WS_MAEMO
    37 *-maemo*:DEFINES += HB_Q_WS_MAEMO
    37 
    38 
    38 # directories
    39 # directories
    39 DESTDIR = $${HB_BUILD_DIR}/lib
    40 DESTDIR = $${HB_BUILD_DIR}/lib
    40 win32:DLLDESTDIR = $${HB_BUILD_DIR}/bin
    41 win32:DLLDESTDIR = $${HB_BUILD_DIR}/bin
    49 # components
    50 # components
    50 include(core/core.pri)
    51 include(core/core.pri)
    51 include(cssparser/hbcssparser.pri)
    52 include(cssparser/hbcssparser.pri)
    52 include(decorators/decorators.pri)
    53 include(decorators/decorators.pri)
    53 include(devicedialogbase/devicedialogbase.pri)
    54 include(devicedialogbase/devicedialogbase.pri)
    54 effects {
    55 include(effects/effects.pri)
    55     include(effects/effects.pri)
    56 include(ovgeffects/ovgeffects.pri)
    56     include(ovgeffects/ovgeffects.pri)
       
    57 }
       
    58 include(gui/gui.pri)
    57 include(gui/gui.pri)
    59 include(i18n/i18n.pri)
    58 include(i18n/i18n.pri)
    60 include(image/image.pri)
    59 include(image/image.pri)
    61 include(indicatorplugins/indicatorplugins.pri)
    60 include(indicatorplugins/indicatorplugins.pri)
    62 include(inputfw/inputfw.pri)
    61 include(inputfw/inputfw.pri)
    99 }
    98 }
   100 
    99 
   101 #QMAKE_DISTCLEAN += $$hbNativePath($${HB_BUILD_DIR}/include/hbcore/*)
   100 #QMAKE_DISTCLEAN += $$hbNativePath($${HB_BUILD_DIR}/include/hbcore/*)
   102 #QMAKE_DISTCLEAN += $$hbNativePath($${HB_BUILD_DIR}/include/hbcore/private/*)
   101 #QMAKE_DISTCLEAN += $$hbNativePath($${HB_BUILD_DIR}/include/hbcore/private/*)
   103 
   102 
   104 TRANSLATIONS += i18n/translations/directorylocalizer_en_GB.ts
       
   105 TRANSLATIONS += i18n/translations/directorylocalizer_de_DE.ts
       
   106 TRANSLATIONS += i18n/translations/languages.ts
       
   107 TRANSLATIONS += i18n/translations/collations.ts
       
   108 TRANSLATIONS += i18n/translations/regions.ts
       
   109 TRANSLATIONS += i18n/translations/languages_OLD.ts
       
   110 
       
   111 symbian {
   103 symbian {
   112     defFilePath = defs
   104     defFilePath = defs
   113     
   105     
   114     TARGET.EPOCALLOWDLLDATA = 1
   106     TARGET.EPOCALLOWDLLDATA = 1
   115     TARGET.CAPABILITY = CAP_GENERAL_DLL
   107     TARGET.CAPABILITY = CAP_GENERAL_DLL
   116     TARGET.UID3=0x20022EDC
   108     TARGET.UID3=0x20022EDC
       
   109     MMP_RULES += SMPSAFE
   117     #DEPLOYMENT_PLUGIN += qjpeg # TODO: Removed because this is already in qt.sis and that caused problems
   110     #DEPLOYMENT_PLUGIN += qjpeg # TODO: Removed because this is already in qt.sis and that caused problems
   118     DEFINES += SYMBIAN_TARGET_ICON_CACHE_SIZE # TODO: what's this? why not use Q_OS_SYMBIAN?
   111     DEFINES += SYMBIAN_TARGET_ICON_CACHE_SIZE # TODO: what's this? why not use Q_OS_SYMBIAN?
   119 
   112 
   120     # Executable section is now over 4MB in Symbian. Extend it to 8MB
   113     # Executable section is now over 4MB in Symbian. Extend it to 8MB
   121     QMAKE_LFLAGS.ARMCC += --rw-base 0x800000
   114     QMAKE_LFLAGS.ARMCC += --rw-base 0x800000
   123     INCLUDEPATH += $${EPOCROOT}epoc32/include/osextensions/stdapis/stlport # TODO: depends on S60 version?
   116     INCLUDEPATH += $${EPOCROOT}epoc32/include/osextensions/stdapis/stlport # TODO: depends on S60 version?
   124     INCLUDEPATH += $${EPOCROOT}epoc32/include/hwrm # TODO: depends on S60 version?
   117     INCLUDEPATH += $${EPOCROOT}epoc32/include/hwrm # TODO: depends on S60 version?
   125     nvg:DEFINES += HB_NVG_CS_ICON
   118     nvg:DEFINES += HB_NVG_CS_ICON
   126     sgimage:DEFINES += HB_SGIMAGE_ICON
   119     sgimage:DEFINES += HB_SGIMAGE_ICON
   127 
   120 
       
   121     load(symbian_i18n.prf):TRANSLATIONS = directorynamelocalizer.ts
       
   122 
   128     nvg {
   123     nvg {
   129         include(svgext/svgext.pri)
   124         include(svgext/svgext.pri)
   130         LIBS += -llibOpenVG
   125         LIBS += -llibOpenVG
   131         LIBS += -llibOpenVGU
   126         LIBS += -llibOpenVGU
   132         LIBS += -lsvgengine
   127         LIBS += -lsvgengine
   133         LIBS += -llibegl
   128         LIBS += -llibegl
       
   129         LIBS += -lNVGDecoder_SW
       
   130         LIBS += -llibvgi
   134     }
   131     }
   135     sgimage {
   132     sgimage {
   136         INCLUDEPATH += $${EPOCROOT}epoc32/include/platform #For SGImage Support
   133         INCLUDEPATH += $${EPOCROOT}epoc32/include/platform #For SGImage Support
   137         LIBS += -lsgresource #For SGImage Support
   134         LIBS += -lsgresource #For SGImage Support
   138     }
   135     }
   151         INCLUDEPATH += $${EPOCROOT}epoc32/include/mw
   148         INCLUDEPATH += $${EPOCROOT}epoc32/include/mw
   152     }
   149     }
   153 
   150 
   154     hbExportHeaders(hbcore)
   151     hbExportHeaders(hbcore)
   155 
   152 
   156     # i18n's .qm files export
   153     hbPrjExport("$${PWD}/i18n/translations/language_list.txt", "$${EPOCROOT}epoc32/data/z/resource/hb/translations/language_list.txt")
   157     exportqm.path = $${EPOCROOT}epoc32/winscw/c/resource/hbi18n/translations
   154     hbPrjExport("$${PWD}/i18n/translations/language_list.txt", "$${EPOCROOT}epoc32/release/winscw/udeb/resource/hb/translations/language_list.txt")
   158     exportqm.sources = $$TRANSLATIONS
   155     hbPrjExport("$${PWD}/i18n/translations/locale_mappings.txt", "$${EPOCROOT}epoc32/data/z/resource/hb/translations/locale_mappings.txt")
   159     for(file, exportqm.sources) {
   156     hbPrjExport("$${PWD}/i18n/translations/locale_mappings.txt", "$${EPOCROOT}epoc32/release/winscw/udeb/resource/hb/translations/locale_mappings.txt")
   160         file2 = $$replace(file, .ts, .qm)
   157     hbPrjExport("$${PWD}/i18n/translations/collations.qm", "$${EPOCROOT}epoc32/data/z/resource/hb/translations/collations.qm")
   161         file3 = $${PWD}/$$file2
   158     hbPrjExport("$${PWD}/i18n/translations/collations.qm", "$${EPOCROOT}epoc32/release/winscw/udeb/resource/hb/translations/collations.qm")
   162         BLD_INF_RULES.prj_exports += "$$section(file3, ":", 1) $$exportqm.path/$$basename(file2)"
   159     hbPrjExport("$${PWD}/i18n/translations/languages.qm", "$${EPOCROOT}epoc32/data/z/resource/hb/translations/languages.qm")
   163     }
   160     hbPrjExport("$${PWD}/i18n/translations/languages.qm", "$${EPOCROOT}epoc32/release/winscw/udeb/resource/hb/translations/languages.qm")
   164     # i18n's other files export
   161     hbPrjExport("$${PWD}/i18n/translations/regions.qm", "$${EPOCROOT}epoc32/data/z/resource/hb/translations/regions.qm")
   165     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/i18n/translations/language_list.txt $${EPOCROOT}epoc32/winscw/c/resource/hbi18n/translations/language_list.txt"
   162     hbPrjExport("$${PWD}/i18n/translations/regions.qm", "$${EPOCROOT}epoc32/release/winscw/udeb/resource/hb/translations/regions.qm")
   166     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/i18n/translations/locale_mappings.txt $${EPOCROOT}epoc32/winscw/c/resource/hbi18n/translations/locale_mappings.txt"
       
   167 
   163 
   168     LIBS += -lapparc
   164     LIBS += -lapparc
   169     LIBS += -lavkon
   165     LIBS += -lavkon
   170     LIBS += -lbafl
   166     LIBS += -lbafl
   171     LIBS += -lSensrvClient
   167     LIBS += -lSensrvClient
   178     LIBS += -lapgrfx
   174     LIBS += -lapgrfx
   179     LIBS += -lcone
   175     LIBS += -lcone
   180     LIBS += -lsystemtoneservice
   176     LIBS += -lsystemtoneservice
   181 
   177 
   182     # central repository
   178     # central repository
   183     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C304.txt $${EPOCROOT}epoc32/data/z/private/10202BE9/2002C304.txt"
   179     hbPrjExport("$${PWD}/resources/centralrepository/2002C304.txt", "$${EPOCROOT}epoc32/data/z/private/10202BE9/2002C304.txt")
   184     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C304.txt $${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/2002C304.txt"
   180     hbPrjExport("$${PWD}/resources/centralrepository/2002C304.txt", "$${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/2002C304.txt")
   185     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C304.txt $${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/2002C304.txt"
   181     hbPrjExport("$${PWD}/resources/centralrepository/2002C304.txt", "$${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/2002C304.txt")
   186 
   182     hbPrjExport("$${PWD}/resources/centralrepository/2002C384.txt", "$${EPOCROOT}epoc32/data/z/private/10202BE9/2002C384.txt")
   187     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C384.txt $${EPOCROOT}epoc32/data/z/private/10202BE9/2002C384.txt"
   183     hbPrjExport("$${PWD}/resources/centralrepository/2002C384.txt", "$${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/2002C384.txt")
   188     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C384.txt $${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/2002C384.txt"
   184     hbPrjExport("$${PWD}/resources/centralrepository/2002C384.txt", "$${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/2002C384.txt")
   189     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C384.txt $${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/2002C384.txt"
   185     hbPrjExport("$${PWD}/resources/centralrepository/2002C3AE.txt", "$${EPOCROOT}epoc32/data/z/private/10202BE9/2002C3AE.txt")
   190     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C3AE.txt $${EPOCROOT}epoc32/data/z/private/10202BE9/2002C3AE.txt"
   186     hbPrjExport("$${PWD}/resources/centralrepository/2002C3AE.txt", "$${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/2002C3AE.txt")
   191     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C3AE.txt $${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/2002C3AE.txt"
   187     hbPrjExport("$${PWD}/resources/centralrepository/2002C3AE.txt", "$${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/2002C3AE.txt")
   192     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C3AE.txt $${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/2002C3AE.txt"
   188     hbPrjExport("$${PWD}/resources/centralrepository/20022E82.txt", "$${EPOCROOT}epoc32/data/z/private/10202BE9/20022E82.txt")
   193     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/20022E82.txt $${EPOCROOT}epoc32/data/z/private/10202BE9/20022E82.txt"
   189     hbPrjExport("$${PWD}/resources/centralrepository/20022E82.txt", "$${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/20022E82.txt")
   194     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/20022E82.txt $${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/20022E82.txt"
   190     hbPrjExport("$${PWD}/resources/centralrepository/20022E82.txt", "$${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/20022E82.txt")
   195     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/20022E82.txt $${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/20022E82.txt"
       
   196 }
       
   197 
       
   198 hb_maemo_dui {
       
   199     INCLUDEPATH += /usr/include/dui
       
   200     INCLUDEPATH += /usr/local/include/dui
       
   201     LIBS += -ldui
       
   202 }
   191 }
   203 
   192 
   204 include($${HB_SOURCE_DIR}/src/hbcommon.pri)
   193 include($${HB_SOURCE_DIR}/src/hbcommon.pri)