Ignore:
Timestamp:
Mar 8, 2010, 4:00:31 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake:qmake: os2/gnumake: Add support for the declspec(dllexport)-based DLL generation and activate this support by default which greatly reduces the number of exported symbols in Qt DLLs. The old method which causes all public symbols to be exported is still available using the "export_all" CONFIG flag (off by default). Note that DLL splitting will turn "export_all" on because otherwise it is impossible to create split DLLs at the moment (emxexp limitation).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/os2-g++/qmake.conf

    r654 r656  
    107107
    108108QMAKE_RUN_LINK          = $(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) $(DEF_FILE) -Wl,$$QMAKE_OBJECTS_REF $(LIBS)
    109 QMAKE_RUN_IMPLIB        = emximp -p 128 -o $(TARGET_IMPLIB) $(DEF_FILE)
    110109
    111 QMAKE_RUN_GENDEF        = \
    112     $(if $(QT_DEV_NO_DEF_GENERATION),\
    113         @echo Warning: .DEF file generation is disabled! \
    114             (QT_DEV_NO_DEF_GENERATION=$(QT_DEV_NO_DEF_GENERATION)),\
    115         $(QMAKESPECDIR)\emxexpw.cmd -name $(basename $(TARGET)) \
    116             $(if $(DEF_FILE_VERSION),-version \"$(DEF_FILE_VERSION)\") \
    117             $(if $(DEF_FILE_DESCRIPTION),-desc \"$(DEF_FILE_DESCRIPTION)\") \
    118             $(if $(DEF_FILE_VENDOR),-vendor \"$(DEF_FILE_VENDOR)\") \
    119             -def $(DEF_FILE) $(if $(DEF_FILE_MAP),-map $(DEF_FILE_MAP)) \
    120             $(if $(DEF_FILE_TEMPLATE),-template $(DEF_FILE_TEMPLATE)) \
    121             $$QMAKE_OBJECTS_REF)
     110QMAKE_RUN_IMPLIB        = emximp -p 128 -o $@ $<
     111
     112QMAKE_RUN_GENDEF            = \
     113    $(QMAKESPECDIR)\emxexpw.cmd -name $(basename $(TARGET)) \
     114        -def $(DEF_FILE) \
     115        $(if $(DEF_FILE_VERSION),-version \"$(DEF_FILE_VERSION)\") \
     116        $(if $(DEF_FILE_DESCRIPTION),-desc \"$(DEF_FILE_DESCRIPTION)\") \
     117        $(if $(DEF_FILE_VENDOR),-vendor \"$(DEF_FILE_VENDOR)\") \
     118        $(if $(DEF_FILE_TEMPLATE),-template $(DEF_FILE_TEMPLATE))
     119
     120QMAKE_RUN_GENDEF_EXPORT_ALL = $$QMAKE_RUN_GENDEF \
     121        $(if $(DEF_FILE_MAP),-map $(DEF_FILE_MAP)) \
     122        $$QMAKE_OBJECTS_REF
    122123
    123124QMAKE_GENDEF_DEPS       = $(OBJECTS) $(MAKEFILE)
Note: See TracChangeset for help on using the changeset viewer.