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