src/src.pro
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
     1 TEMPLATE = subdirs
     1 TEMPLATE = subdirs
     2 
     2 
     3 # this order is important
     3 # this order is important
     4 unset(SRC_SUBDIRS)
     4 unset(SRC_SUBDIRS)
     5 win32:SRC_SUBDIRS += src_winmain
     5 win32:SRC_SUBDIRS += src_winmain
     6 wince*:{
     6 symbian:SRC_SUBDIRS += src_s60main
     7   SRC_SUBDIRS += src_corelib src_xml src_gui src_sql src_network src_testlib
     7 SRC_SUBDIRS += src_corelib src_xml src_network src_sql src_testlib
     8 } else:symbian {
     8 !symbian:contains(QT_CONFIG, dbus):SRC_SUBDIRS += src_dbus
     9   SRC_SUBDIRS += src_s60main src_corelib src_xml src_gui src_network src_sql src_testlib src_s60installs
     9 !contains(QT_CONFIG, no-gui): SRC_SUBDIRS += src_gui
    10 } else {
    10 !wince*:!symbian:!vxworks:contains(QT_CONFIG, qt3support): SRC_SUBDIRS += src_qt3support
    11     SRC_SUBDIRS += src_corelib src_xml src_network src_gui src_sql src_testlib
    11 
    12     !vxworks:contains(QT_CONFIG, qt3support): SRC_SUBDIRS += src_qt3support
    12 !wince*:!symbian-abld:!symbian-sbsv2:include(tools/tools.pro)
    13     include(tools/tools.pro)
       
    14     contains(QT_CONFIG, dbus):SRC_SUBDIRS += src_dbus
       
    15 }
       
    16 win32:SRC_SUBDIRS += src_activeqt
    13 win32:SRC_SUBDIRS += src_activeqt
    17 
    14 
    18 contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2): SRC_SUBDIRS += src_opengl
    15 contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2): SRC_SUBDIRS += src_opengl
    19 contains(QT_CONFIG, openvg): SRC_SUBDIRS += src_openvg
    16 contains(QT_CONFIG, openvg): SRC_SUBDIRS += src_openvg
    20 contains(QT_CONFIG, xmlpatterns): SRC_SUBDIRS += src_xmlpatterns
    17 contains(QT_CONFIG, xmlpatterns): SRC_SUBDIRS += src_xmlpatterns
    21 contains(QT_CONFIG, phonon): SRC_SUBDIRS += src_phonon
    18 contains(QT_CONFIG, phonon): SRC_SUBDIRS += src_phonon
    22 contains(QT_CONFIG, multimedia): SRC_SUBDIRS += src_multimedia
    19 contains(QT_CONFIG, multimedia): SRC_SUBDIRS += src_multimedia
    23 contains(QT_CONFIG, svg): SRC_SUBDIRS += src_svg
    20 contains(QT_CONFIG, svg): SRC_SUBDIRS += src_svg
    24 contains(QT_CONFIG, webkit)  {
    21 contains(QT_CONFIG, webkit)  {
    25     #exists($$QT_SOURCE_TREE/src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro): SRC_SUBDIRS += src_javascriptcore
    22     exists($$QT_SOURCE_TREE/src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro): SRC_SUBDIRS += src_javascriptcore
    26     SRC_SUBDIRS += src_webkit
    23     SRC_SUBDIRS += src_webkit
    27 }
    24 }
    28 contains(QT_CONFIG, script): SRC_SUBDIRS += src_script
    25 contains(QT_CONFIG, script): SRC_SUBDIRS += src_script
    29 contains(QT_CONFIG, scripttools): SRC_SUBDIRS += src_scripttools
    26 !contains(QT_CONFIG, no-gui):contains(QT_CONFIG, scripttools): SRC_SUBDIRS += src_scripttools
    30 contains(QT_CONFIG, declarative): SRC_SUBDIRS += src_declarative
    27 contains(QT_CONFIG, declarative): SRC_SUBDIRS += src_declarative
    31 SRC_SUBDIRS += src_plugins
    28 SRC_SUBDIRS += src_plugins
       
    29 contains(QT_CONFIG, declarative): SRC_SUBDIRS += src_imports
       
    30 
       
    31 # s60installs need to be at the end, because projects.pro does an ordered build,
       
    32 # and s60installs depends on all the others.
       
    33 symbian:SRC_SUBDIRS += src_s60installs
    32 
    34 
    33 src_s60main.subdir = $$QT_SOURCE_TREE/src/s60main
    35 src_s60main.subdir = $$QT_SOURCE_TREE/src/s60main
    34 src_s60main.target = sub-s60main
    36 src_s60main.target = sub-s60main
    35 src_s60installs.subdir = $$QT_SOURCE_TREE/src/s60installs
    37 src_s60installs.subdir = $$QT_SOURCE_TREE/src/s60installs
    36 src_s60installs.target = sub-s60installs
    38 src_s60installs.target = sub-s60installs
    68 src_multimedia.target = sub-multimedia
    70 src_multimedia.target = sub-multimedia
    69 src_activeqt.subdir = $$QT_SOURCE_TREE/src/activeqt
    71 src_activeqt.subdir = $$QT_SOURCE_TREE/src/activeqt
    70 src_activeqt.target = sub-activeqt
    72 src_activeqt.target = sub-activeqt
    71 src_plugins.subdir = $$QT_SOURCE_TREE/src/plugins
    73 src_plugins.subdir = $$QT_SOURCE_TREE/src/plugins
    72 src_plugins.target = sub-plugins
    74 src_plugins.target = sub-plugins
       
    75 src_imports.subdir = $$QT_SOURCE_TREE/src/imports
       
    76 src_imports.target = sub-imports
    73 src_testlib.subdir = $$QT_SOURCE_TREE/src/testlib
    77 src_testlib.subdir = $$QT_SOURCE_TREE/src/testlib
    74 src_testlib.target = sub-testlib
    78 src_testlib.target = sub-testlib
    75 src_javascriptcore.subdir = $$QT_SOURCE_TREE/src/3rdparty/webkit/JavaScriptCore
    79 src_javascriptcore.subdir = $$QT_SOURCE_TREE/src/3rdparty/webkit/JavaScriptCore
    76 src_javascriptcore.target = sub-javascriptcore
    80 src_javascriptcore.target = sub-javascriptcore
    77 src_webkit.subdir = $$QT_SOURCE_TREE/src/3rdparty/webkit/WebCore
    81 src_webkit.subdir = $$QT_SOURCE_TREE/src/3rdparty/webkit/WebCore
    78 src_webkit.target = sub-webkit
    82 src_webkit.target = sub-webkit
    79 src_declarative.subdir = $$QT_SOURCE_TREE/src/declarative
    83 src_declarative.subdir = $$QT_SOURCE_TREE/src/declarative
    80 src_declarative.target = sub-declarative
    84 src_declarative.target = sub-declarative
    81 
    85 
    82 #CONFIG += ordered
    86 #CONFIG += ordered
    83 !wince*:!symbian:!ordered {
    87 !wince*:!ordered {
    84    src_corelib.depends = src_tools_moc src_tools_rcc
    88    src_corelib.depends = src_tools_moc src_tools_rcc
    85    src_gui.depends = src_corelib src_tools_uic
    89    src_gui.depends = src_corelib src_tools_uic
    86    embedded: src_gui.depends += src_network
    90    embedded: src_gui.depends += src_network
    87    src_xml.depends = src_corelib
    91    src_xml.depends = src_corelib
    88    src_xmlpatterns.depends = src_corelib src_network
    92    src_xmlpatterns.depends = src_corelib src_network
    89    src_dbus.depends = src_corelib src_xml
    93    src_dbus.depends = src_corelib src_xml
    90    src_svg.depends = src_xml src_gui
    94    src_svg.depends = src_corelib src_gui
    91    src_script.depends = src_corelib
    95    src_script.depends = src_corelib
    92    src_scripttools.depends = src_script src_gui src_network
    96    src_scripttools.depends = src_script src_gui src_network
    93    src_network.depends = src_corelib
    97    src_network.depends = src_corelib
    94    src_opengl.depends = src_gui
    98    src_opengl.depends = src_gui
    95    src_openvg.depends = src_gui
    99    src_openvg.depends = src_gui
    98    src_qt3support.depends = src_gui src_xml src_network src_sql
   102    src_qt3support.depends = src_gui src_xml src_network src_sql
    99    src_tools_idc.depends = src_corelib             # target defined in tools.pro
   103    src_tools_idc.depends = src_corelib             # target defined in tools.pro
   100    src_tools_uic3.depends = src_qt3support src_xml # target defined in tools.pro
   104    src_tools_uic3.depends = src_qt3support src_xml # target defined in tools.pro
   101    src_phonon.depends = src_gui
   105    src_phonon.depends = src_gui
   102    src_multimedia.depends = src_gui
   106    src_multimedia.depends = src_gui
       
   107    contains(QT_CONFIG, opengl):src_multimedia.depends += src_opengl
   103    src_tools_activeqt.depends = src_tools_idc src_gui
   108    src_tools_activeqt.depends = src_tools_idc src_gui
   104    src_declarative.depends = src_xml src_gui src_script src_network src_svg
   109    src_declarative.depends = src_gui src_script src_network
   105    src_plugins.depends = src_gui src_sql src_svg
   110    src_plugins.depends = src_gui src_sql src_svg src_multimedia
       
   111    src_s60installs.depends = $$TOOLS_SUBDIRS $$SRC_SUBDIRS
       
   112    src_imports.depends = src_gui src_declarative
   106    contains(QT_CONFIG, webkit)  {
   113    contains(QT_CONFIG, webkit)  {
   107       src_webkit.depends = src_gui src_sql src_network src_xml 
   114       src_webkit.depends = src_gui src_sql src_network
   108       contains(QT_CONFIG, phonon):src_webkit.depends += src_phonon
       
   109       contains(QT_CONFIG, xmlpatterns): src_webkit.depends += src_xmlpatterns
   115       contains(QT_CONFIG, xmlpatterns): src_webkit.depends += src_xmlpatterns
   110       contains(QT_CONFIG, declarative):src_declarative.depends += src_webkit
   116       src_imports.depends += src_webkit
   111       #exists($$QT_SOURCE_TREE/src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro): src_webkit.depends += src_javascriptcore
   117       exists($$QT_SOURCE_TREE/src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro): src_webkit.depends += src_javascriptcore
   112    }
   118    }
   113    contains(QT_CONFIG, qt3support): src_plugins.depends += src_qt3support
   119    contains(QT_CONFIG, qt3support): src_plugins.depends += src_qt3support
   114    contains(QT_CONFIG, dbus):{
   120    contains(QT_CONFIG, dbus):{
   115       src_plugins.depends += src_dbus
   121       src_plugins.depends += src_dbus
   116       src_phonon.depends +=  src_dbus
   122       src_phonon.depends +=  src_dbus
   117    }
   123    }
   118    contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2): src_plugins.depends += src_opengl
   124    contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
       
   125       src_plugins.depends += src_opengl
       
   126       src_declarative.depends += src_opengl
       
   127       src_webkit.depends += src_opengl
       
   128    }
       
   129    contains(QT_CONFIG, xmlpatterns) {
       
   130       src_declarative.depends += src_xmlpatterns
       
   131       src_webkit.depends += src_xmlpatterns
       
   132    }
       
   133    contains(QT_CONFIG, svg) {
       
   134       src_declarative.depends += src_svg
       
   135    }
   119 }
   136 }
   120 
   137 
   121 !symbian {
   138 
   122 # This creates a sub-src rule
   139 # This creates a sub-src rule
   123 sub_src_target.CONFIG = recursive
   140 sub_src_target.CONFIG = recursive
   124 sub_src_target.recurse = $$TOOLS_SUBDIRS $$SRC_SUBDIRS
   141 sub_src_target.recurse = $$TOOLS_SUBDIRS $$SRC_SUBDIRS
   125 sub_src_target.target = sub-src
   142 sub_src_target.target = sub-src
   126 sub_src_target.recurse_target =
   143 sub_src_target.recurse_target =
   163    }
   180    }
   164 }
   181 }
   165 debug.depends = $$EXTRA_DEBUG_TARGETS
   182 debug.depends = $$EXTRA_DEBUG_TARGETS
   166 release.depends = $$EXTRA_RELEASE_TARGETS
   183 release.depends = $$EXTRA_RELEASE_TARGETS
   167 QMAKE_EXTRA_TARGETS += debug release
   184 QMAKE_EXTRA_TARGETS += debug release
   168 }
       
   169 
   185 
   170 SUBDIRS += $$SRC_SUBDIRS
   186 SUBDIRS += $$SRC_SUBDIRS