qtopiacalc.pro

来自「嵌入式Qt下的一个计算器源码」· PRO 代码 · 共 72 行

PRO
72
字号
qtopia_project(lib)TARGET=qtopiacalc# This is packaged by applications/calculatorCONFIG+=no_pkg# library filesHEADERS = calculator.h engine.h data.h instruction.h display.h \            interfaces/stdinputwidgets.h integerdata.h integerinstruction.h \            qtopiacalcwinexport.hSOURCES = calculator.cpp engine.cpp data.cpp instruction.cpp \            display.cpp interfaces/stdinputwidgets.cpp# double typeHEADERS += doubledata.hSOURCES += doubledata.cppFRACTION_HEADERS = fractiondata.h fractioninstruction.h doubleinstruction.hFRACTION_SOURCES = fractiondata.cpp fractioninstruction.cpp doubleinstruction.cppPHONE_HEADERS = interfaces/phone.h phoneinstruction.h \                doubleinstruction.h interfaces/simple.hPHONE_SOURCES = interfaces/phone.cpp phoneinstruction.cpp \                doubleinstruction.cpp interfaces/simple.cppSIMPLEUI_SOURCES = interfaces/simple.cppSIMPLEUI_HEADERS = interfaces/simple.hFRACTIONUI_SOURCES = interfaces/fraction.cppFRACTIONUI_HEADERS = interfaces/fraction.hSCIENCEUI_SOURCES = interfaces/advanced.cppSCIENCEUI_HEADERS = interfaces/advanced.hCONVERSIONUI_SOURCES = interfaces/conversion.cppCONVERSIONUI_HEADERS = interfaces/conversion.h                TRANSLATABLES = $${FRACTION_SOURCES} $${FRACTION_HEADERS} \                $${PHONE_SOURCES} $${PHONE_HEADERS} \                $${SIMPLEUI_SOURCES} $${SIMPLEUI_HEADERS} \                $${FRACTIONUI_SOURCES} $${FRACTION_HEADERS} \                $${SCIENCEUI_SOURCES} $${SCIENCEUI_HEADERS} \                $${CONVERSIONUI_SOURCES} $${CONVERSIONUI_HEADERS}                 !phone {#removing these components will save lib size:#ENABLE_FRACTION                - 320 kB#ENABLE_SCIENCE                 - 340 kB#ENABLE_CONVERSION              - 250 kB + size of conversion filesDEFINES+=ENABLE_FRACTION ENABLE_SCIENCE ENABLE_CONVERSION            HEADERS += $${FRACTION_HEADERS}    SOURCES += $${FRACTION_SOURCES}    HEADERS += $${FRACTIONUI_HEADERS} $${SIMPLEUI_HEADERS} \                $${SCIENCEUI_HEADERS} $${CONVERSIONUI_HEADERS}    SOURCES += $${FRACTIONUI_SOURCES} $${SIMPLEUI_SOURCES} \                $${SCIENCEUI_SOURCES} $${CONVERSIONUI_SOURCES}} else {    CONFIG+=staticlib    HEADERS+= $${PHONE_HEADERS}    SOURCES+= $${PHONE_SOURCES}}sdk_calc_headers.files=$$HEADERSsdk_calc_headers.path=/include/qtopia/calcsdk_calc_headers.hint=headersINSTALLS+=sdk_calc_headersidep(LIBS+=-l$$TARGET)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?