Ignore:
Timestamp:
Sep 6, 2011, 1:03:39 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

Rename qmldir to qmldir.in and use qmake substitution for plugin name.

This makes sure that the plugin filename always matches the TARGET
specification. This also makes the copy2build hassle unneeded.

This commit supersedes r1053.

Suggested by Rudi Ihle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/webkit/WebKit/qt/declarative/declarative.pro

    r1054 r1057  
    1010isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../..
    1111
    12 QMLDIRFILE = $${_PRO_FILE_PWD_}/qmldir
    13 qmldir2build.input = QMLDIRFILE
     12!isEmpty(TARGET_SHORT):PLUGINFILENAME = $$TARGET_SHORT
     13else:PLUGINFILENAME = $$TARGET
     14
     15QMLDIRFILE.input = $${_PRO_FILE_PWD_}/qmldir.in
    1416CONFIG(QTDIR_build) {
    15     qmldir2build.output = $$QT_BUILD_TREE/imports/$$TARGETPATH/qmldir
     17    .output = $$QT_BUILD_TREE/imports/$$TARGETPATH/qmldir
    1618} else {
    17     qmldir2build.output = $$OUTPUT_DIR/imports/$$TARGETPATH/qmldir
     19    .output = $$OUTPUT_DIR/imports/$$TARGETPATH/qmldir
    1820}
    19 !contains(TEMPLATE_PREFIX, vc):qmldir2build.variable_out = PRE_TARGETDEPS
    20 !isEmpty(TARGET_SHORT):qmldir2build.depends = $(MAKEFILE) # this adds dependency on this .pri
    21 !isEmpty(TARGET_SHORT):qmldir2build.commands = $$QMAKE_COPY_QMLDIR ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} $$TARGET $$TARGET_SHORT
    22 else:qmldir2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
    23 qmldir2build.name = COPY ${QMAKE_FILE_IN}
    24 qmldir2build.CONFIG += no_link
    25 QMAKE_EXTRA_COMPILERS += qmldir2build
     21QMAKE_SUBSTITUTES += QMLDIRFILE
    2622
    2723TARGET = $$qtLibraryTarget($$TARGET)
     
    6763target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
    6864
    69 
    70 !isEmpty(TARGET_SHORT):qmldir.files += $$qmldir2build.output
    71 else:qmldir.files += $$PWD/qmldir
     65qmldir.files += $$QMLDIRFILE.output
    7266qmldir.path +=  $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
    7367
Note: See TracChangeset for help on using the changeset viewer.