src.pro
149 lines
| 4.2 KiB
| text/idl
|
PrologLexer
/ src / src.pro
|
r145 | !include( ../common.pri ):error( Couldn't find the common.pri file! ) | ||
|
r36 | TARGET = QtCommercialChart | ||
|
r39 | DESTDIR = $$CHART_BUILD_LIB_DIR | ||
|
r36 | TEMPLATE = lib | ||
QT += core \ | ||||
gui | ||||
|
r606 | win32-msvc*: LIBS += User32.lib | ||
|
r36 | CONFIG += debug_and_release | ||
CONFIG(debug, debug|release):TARGET = QtCommercialChartd | ||||
|
r478 | SOURCES += \ | ||
|
r131 | chartdataset.cpp \ | ||
chartpresenter.cpp \ | ||||
|
r250 | charttheme.cpp \ | ||
domain.cpp \ | ||||
qchart.cpp \ | ||||
|
r360 | qchartview.cpp \ | ||
|
r524 | qseries.cpp \ | ||
|
r547 | qlegend.cpp \ | ||
|
r639 | legendmarker.cpp \ | ||
|
r677 | chartbackground.cpp \ | ||
chart.cpp | ||||
|
r478 | PRIVATE_HEADERS += \ | ||
|
r131 | chartdataset_p.h \ | ||
|
r250 | chartitem_p.h \ | ||
|
r131 | chartpresenter_p.h \ | ||
|
r250 | charttheme_p.h \ | ||
|
r547 | domain_p.h \ | ||
|
r639 | legendmarker_p.h \ | ||
|
r677 | chartbackground_p.h \ | ||
chart_p.h | ||||
|
r547 | PUBLIC_HEADERS += \ | ||
|
r478 | qchart.h \ | ||
|
r145 | qchartglobal.h \ | ||
|
r360 | qseries.h \ | ||
|
r524 | qchartview.h \ | ||
|
r639 | qlegend.h | ||
|
r530 | |||
include(animations/animations.pri) | ||||
|
r478 | include(axis/axis.pri) | ||
|
r465 | include(xychart/xychart.pri) | ||
|
r360 | include(linechart/linechart.pri) | ||
|
r421 | include(areachart/areachart.pri) | ||
|
r360 | include(barchart/barchart.pri) | ||
|
r146 | include(piechart/piechart.pri) | ||
|
r194 | include(scatterseries/scatter.pri) | ||
|
r295 | include(splinechart/splinechart.pri) | ||
|
r194 | |||
|
r494 | THEMES += themes/chartthemedefault_p.h \ | ||
|
r651 | themes/chartthemelight_p.h \ | ||
themes/chartthemebluecerulean_p.h \ | ||||
themes/chartthemedark_p.h \ | ||||
themes/chartthemebrownsand_p.h \ | ||||
themes/chartthemebluencs_p.h \ | ||||
|
r494 | themes/chartthemeicy_p.h \ | ||
|
r143 | themes/chartthemegrayscale_p.h \ | ||
themes/chartthemescientific_p.h \ | ||||
|
r651 | themes/chartthemevanilla_p.h | ||
|
r584 | |||
|
r194 | HEADERS += $$PUBLIC_HEADERS | ||
|
r36 | HEADERS += $$PRIVATE_HEADERS | ||
|
r143 | HEADERS += $$THEMES | ||
|
r145 | INCLUDEPATH += linechart \ | ||
barchart \ | ||||
themes \ | ||||
. | ||||
|
r39 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib | ||
MOC_DIR = $$CHART_BUILD_DIR/lib | ||||
UI_DIR = $$CHART_BUILD_DIR/lib | ||||
RCC_DIR = $$CHART_BUILD_DIR/lib | ||||
|
r36 | DEFINES += QTCOMMERCIALCHART_LIBRARY | ||
|
r588 | |||
#qt public headers | ||||
|
r603 | #this is very primitive and lame parser , TODO: make perl script insted | ||
|
r591 | !exists($$CHART_BUILD_PUBLIC_HEADER_DIR) | ||
{ | ||||
|
r603 | system($$QMAKE_MKDIR $$CHART_BUILD_PUBLIC_HEADER_DIR) | ||
|
r591 | } | ||
|
r588 | for(file, PUBLIC_HEADERS) { | ||
name = $$split(file,'/') | ||||
name = $$last(name) | ||||
class = "$$cat($$file)" | ||||
class = $$find(class,class) | ||||
!isEmpty(class){ | ||||
class = $$split(class,QTCOMMERCIALCHART_EXPORT) | ||||
class = $$member(class,1) | ||||
|
r589 | class = $$split(class,' ') | ||
|
r588 | class = $$replace(class,' ','') | ||
class = $$member(class,0) | ||||
|
r627 | win32:{ | ||
command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" | ||||
}else{ | ||||
command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" | ||||
} | ||||
|
r588 | PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class | ||
|
r591 | system($$command) | ||
|
r588 | } | ||
} | ||||
|
r36 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart | ||
|
r588 | public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS | ||
|
r36 | target.path = $$[QT_INSTALL_LIBS] | ||
|
r588 | INSTALLS += target public_headers | ||
install_build_public_headers.name = build_public_headers | ||||
|
r193 | install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h | ||
install_build_public_headers.input = PUBLIC_HEADERS | ||||
install_build_public_headers.commands = $$QMAKE_COPY \ | ||||
|
r145 | ${QMAKE_FILE_NAME} \ | ||
|
r193 | $$CHART_BUILD_PUBLIC_HEADER_DIR | ||
install_build_public_headers.CONFIG += target_predeps \ | ||||
|
r145 | no_link | ||
|
r588 | |||
install_build_private_headers.name = buld_private_headers | ||||
|
r193 | install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h | ||
install_build_private_headers.input = PRIVATE_HEADERS | ||||
install_build_private_headers.commands = $$QMAKE_COPY \ | ||||
${QMAKE_FILE_NAME} \ | ||||
$$CHART_BUILD_PRIVATE_HEADER_DIR | ||||
install_build_private_headers.CONFIG += target_predeps \ | ||||
no_link | ||||
|
r588 | |||
|
r360 | QMAKE_EXTRA_COMPILERS += install_build_public_headers \ | ||
|
r588 | install_build_private_headers \ | ||
|
r39 | chartversion.target = qchartversion_p.h | ||
|
r145 | chartversion.commands = @echo \ | ||
"build_time" \ | ||||
> \ | ||||
$$chartversion.target; | ||||
chartversion.depends = $$HEADERS \ | ||||
$$SOURCES | ||||
|
r39 | PRE_TARGETDEPS += qchartversion_p.h | ||
|
r145 | QMAKE_CLEAN += qchartversion_p.h | ||
|
r39 | QMAKE_EXTRA_TARGETS += chartversion | ||
|
r145 | unix:QMAKE_DISTCLEAN += -r \ | ||
$$CHART_BUILD_HEADER_DIR \ | ||||
$$CHART_BUILD_LIB_DIR | ||||
win32:QMAKE_DISTCLEAN += /Q \ | ||||
$$CHART_BUILD_HEADER_DIR \ | ||||
$$CHART_BUILD_LIB_DIR | ||||
|
r588 | |||
|
r609 | # treat warnings as errors | ||
|
r610 | win32-msvc*: { | ||
QMAKE_CXXFLAGS += /WX | ||||
} else { | ||||
QMAKE_CXXFLAGS += -Werror | ||||
} | ||||