|
|
|
|
CONFIG -= qt
|
|
|
|
|
CONFIG += stl_off
|
|
|
|
|
INCLUDEPATH += $$dir/config
|
|
|
|
|
|
|
|
|
|
!CONFIG(MBCS){
|
|
|
|
|
CharacterSet = 1
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
CharacterSet = 2
|
|
|
|
|
DEFINES -= UNICODE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
OBJECTS_DIR = $$dir/obj/debug/$$TARGET
|
|
|
|
|
DESTDIR = $$dir/bin
|
|
|
|
|
CONFIG(x64){
|
|
|
|
|
DESTDIR = $$DESTDIR"64"
|
|
|
|
|
}
|
|
|
|
|
QMAKE_LIBDIR += $$DESTDIR
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
OBJECTS_DIR = $$dir/obj/release/$$TARGET
|
|
|
|
|
DESTDIR = $$dir/bin
|
|
|
|
|
CONFIG(x64){
|
|
|
|
|
DESTDIR = $$DESTDIR"64"
|
|
|
|
|
}
|
|
|
|
|
QMAKE_LIBDIR += $$DESTDIR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#<--<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD>Ϊdebug<EFBFBD><EFBFBD>release<EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD>ͬ<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
defineReplace(souiLibraryTarget) {
|
|
|
|
|
unset(LIBRARY_NAME)
|
|
|
|
|
LIBRARY_NAME = $$1
|
|
|
|
|
!debug_and_release|build_pass {
|
|
|
|
|
LIBRARY_NAME~= s,64,,
|
|
|
|
|
RET = $$LIBRARY_NAME
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
isEmpty(RET):RET = $$LIBRARY_NAME
|
|
|
|
|
return($$RET)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SAVE_TEMPLATE = $$TEMPLATE
|
|
|
|
|
TEMPLATE = fakelib
|
|
|
|
|
TARGET = $$qtLibraryTarget($$souiLibraryTarget($$TARGET))
|
|
|
|
|
TEMPLATE = $$SAVE_TEMPLATE
|
|
|
|
|
#-->
|
|
|
|
|
|
|
|
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
|
|
|
|
#DEFINES += _WIN32_WINNT=0x0502 #<EFBFBD>ᵼ<EFBFBD><EFBFBD>vs2013<EFBFBD><EFBFBD><EFBFBD><EFBFBD>skiaʧ<EFBFBD>ܣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD><EFBFBD>ɡ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
#<EFBFBD><EFBFBD><EFBFBD>˱<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
QMAKE_CXXFLAGS += /MP
|
|
|
|
|
|
|
|
|
|
CONFIG(x64){
|
|
|
|
|
QMAKE_LFLAGS += /MACHINE:X64
|
|
|
|
|
DEFINES -= WIN32
|
|
|
|
|
DEFINES += _WIN64
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
QMAKE_LFLAGS += /MACHINE:X86
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
!CONFIG(USING_CLR){
|
|
|
|
|
#<EFBFBD>ر<EFBFBD>RTTI
|
|
|
|
|
QMAKE_CXXFLAGS_RTTI_ON += /GR-
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
QMAKE_CXXFLAGS += /clr
|
|
|
|
|
CONFIG += exceptions_off
|
|
|
|
|
#<EFBFBD>ر<EFBFBD><EFBFBD>쳣
|
|
|
|
|
QMAKE_CXXFLAGS -= -EHsc
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QMAKE_CXXFLAGS += -Fd$(IntDir)
|
|
|
|
|
|
|
|
|
|
!CONFIG(DISABLE_W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
|
|
QMAKE_CXXFLAGS += /wd4100 /wd4101 /wd4102 /wd4189 /wd4996
|