MSVC build
barisunsalhn opened this issue · 0 comments
barisunsalhn commented
For those had problem with def_file directive
QT -= core gui
#CONFIG += dll
CONFIG -= exceptions rtti
#LIB = CppShellExtDragDropHandler.dll
#DEFINES += CATCHCOPY_EXPLORER_PLUGIN_DEBUG
#CONFIG(32bit) {
# TARGET = catchcopy32
# QMAKE_CFLAGS = -march=i586 -m32
# QMAKE_CXXFLAGS = -march=i586 -m32
# QMAKE_LFLAGS += -m32
#}
#CONFIG(64bit) {
# TARGET = catchcopy64
# LIBS += -L"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64"
# DEFINES += _M_X64
# QMAKE_CFLAGS = -m64
# QMAKE_CXXFLAGS = -m64
# QMAKE_LFLAGS += -m64
#}
#QMAKE_CXXFLAGS += /std:c++98
#QMAKE_CFLAGS += /std:c++98
CONFIG+= c++98
#QMAKE_CFLAGS -= -fexceptions -mthreads -O2
#QMAKE_CXXFLAGS -= -fexceptions -mthreads -O2
#QMAKE_CFLAGS += -std=c++98 -fno-keep-inline-dllexport -mtune=generic -fno-exceptions -Os -Wall -Wextra -fno-rtti -s -static -static-libgcc -static-libstdc++
#QMAKE_CXXFLAGS += -std=c++98 -fno-keep-inline-dllexport -mtune=generic -fno-exceptions -Os -Wall -fno-rtti -s -static -static-libgcc -static-libstdc++
##QMAKE_CXXFLAGS += /Zi
CONFIG+=separate_debug_info
#DEF_FILE += CatchCopy.def
LIBS+= -lws2_32 -lole32 -luuid -static-libstdc++ -static-libgcc -static -lAdvAPI32 -lUser32 -lShell32 -lOle32
LIBS += -L"C:\Users\bunsal\Downloads\Catchcopy-master\catchcopy-windows-explorer-plugin" -lCatchCopy
TEMPLATE = lib
HEADERS += \
Variable.h \
Deque.h \
resource.h \
Reg.h \
ClientCatchcopy.h \
DDShellExt.h \
ClassFactory.h
SOURCES += \
Deque.cpp \
ClientCatchcopy.cpp \
Reg.cpp \
DDShellExt.cpp \
ClassFactory.cpp \
CatchCopy.cpp
#QMAKE_LFLAGS += -Wl,--output-def,../../../Desktop/C++/CppShellExtDragDropHandler/GlobalExportFunctions.def
#DEFINES += GLOBAL_EXPORT_FUNCTIONS_LIBRARY=\"../../../Desktop/C++/CppShellExtDragDropHandler/GlobalExportFunctions.def\"
#DEF_FILE += \
# ../../../Desktop/C++/CppShellExtDragDropHandler/GlobalExportFunctions.def
#DISTFILES += \
# ../../../Desktop/C++/CppShellExtDragDropHandler/GlobalExportFunctions.def
You can build pdb file with this.