用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
1.9 KiB

5 months ago
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_WCHAR){
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD>wchar_tΪ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
QMAKE_CXXFLAGS += /Zc:wchar_t
}
QMAKE_CXXFLAGS_RELEASE += /O1
QMAKE_CXXFLAGS_RELEASE += /Zi
CONFIG(CAN_DEBUG){
#Release<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD><EFBFBD><EFBFBD>
QMAKE_LFLAGS_RELEASE += /DEBUG
QMAKE_LFLAGS_RELEASE += /OPT:REF /OPT:ICF
}
CONFIG(USING_MT){
<EFBFBD><EFBFBD>MT<EFBFBD><EFBFBD><EFBFBD><EFBFBD>CRT
QMAKE_CXXFLAGS_RELEASE += /MT
QMAKE_CXXFLAGS_DEBUG += /MTd
}
CONFIG(USING_CLR){
<EFBFBD><EFBFBD>MD<EFBFBD><EFBFBD><EFBFBD><EFBFBD>CRT
QMAKE_CXXFLAGS_RELEASE -= /MT
QMAKE_CXXFLAGS_DEBUG -= /MTd
QMAKE_CXXFLAGS_RELEASE += /MD
QMAKE_CXXFLAGS_DEBUG += /MDd
}
CONFIG(TOOLSET_XP){
QMAKE_TARGET_OS=xp
}
QMAKE_CXXFLAGS += /wd4100 /wd4101 /wd4102 /wd4189 /wd4996