##// END OF EJS Templates
Adds qt headers generation to build config
Michal Klocek -
r588:68970141a8b2
parent child
Show More
@@ -60,12 +60,32 MOC_DIR = $$CHART_BUILD_DIR/lib
60 UI_DIR = $$CHART_BUILD_DIR/lib
60 UI_DIR = $$CHART_BUILD_DIR/lib
61 RCC_DIR = $$CHART_BUILD_DIR/lib
61 RCC_DIR = $$CHART_BUILD_DIR/lib
62 DEFINES += QTCOMMERCIALCHART_LIBRARY
62 DEFINES += QTCOMMERCIALCHART_LIBRARY
63
64 #qt public headers
65 for(file, PUBLIC_HEADERS) {
66 name = $$split(file,'/')
67 name = $$last(name)
68 class = "$$cat($$file)"
69 class = $$find(class,class)
70 !isEmpty(class){
71 class = $$split(class,QTCOMMERCIALCHART_EXPORT)
72 class = $$member(class,1)
73 class = $$split(class,':')
74 class = $$replace(class,' ','')
75 class = $$member(class,0)
76 command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
77 PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class
78 system($$command)
79 }
80 }
81
63 public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart
82 public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart
64 public_headers.files = $$PUBLIC_HEADERS
83 public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS
84
65 target.path = $$[QT_INSTALL_LIBS]
85 target.path = $$[QT_INSTALL_LIBS]
66 INSTALLS += target \
86 INSTALLS += target public_headers
67 public_headers
87
68 install_build_public_headers.name = bild_public_headers
88 install_build_public_headers.name = build_public_headers
69 install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h
89 install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h
70 install_build_public_headers.input = PUBLIC_HEADERS
90 install_build_public_headers.input = PUBLIC_HEADERS
71 install_build_public_headers.commands = $$QMAKE_COPY \
91 install_build_public_headers.commands = $$QMAKE_COPY \
@@ -73,7 +93,8 install_build_public_headers.commands = $$QMAKE_COPY \
73 $$CHART_BUILD_PUBLIC_HEADER_DIR
93 $$CHART_BUILD_PUBLIC_HEADER_DIR
74 install_build_public_headers.CONFIG += target_predeps \
94 install_build_public_headers.CONFIG += target_predeps \
75 no_link
95 no_link
76 install_build_private_headers.name = bild_private_headers
96
97 install_build_private_headers.name = buld_private_headers
77 install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h
98 install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h
78 install_build_private_headers.input = PRIVATE_HEADERS
99 install_build_private_headers.input = PRIVATE_HEADERS
79 install_build_private_headers.commands = $$QMAKE_COPY \
100 install_build_private_headers.commands = $$QMAKE_COPY \
@@ -81,8 +102,10 install_build_private_headers.commands = $$QMAKE_COPY \
81 $$CHART_BUILD_PRIVATE_HEADER_DIR
102 $$CHART_BUILD_PRIVATE_HEADER_DIR
82 install_build_private_headers.CONFIG += target_predeps \
103 install_build_private_headers.CONFIG += target_predeps \
83 no_link
104 no_link
105
84 QMAKE_EXTRA_COMPILERS += install_build_public_headers \
106 QMAKE_EXTRA_COMPILERS += install_build_public_headers \
85 install_build_private_headers
107 install_build_private_headers \
108
86 chartversion.target = qchartversion_p.h
109 chartversion.target = qchartversion_p.h
87 chartversion.commands = @echo \
110 chartversion.commands = @echo \
88 "build_time" \
111 "build_time" \
@@ -99,3 +122,4 unix:QMAKE_DISTCLEAN += -r \
99 win32:QMAKE_DISTCLEAN += /Q \
122 win32:QMAKE_DISTCLEAN += /Q \
100 $$CHART_BUILD_HEADER_DIR \
123 $$CHART_BUILD_HEADER_DIR \
101 $$CHART_BUILD_LIB_DIR
124 $$CHART_BUILD_LIB_DIR
125
General Comments 0
You need to be logged in to leave comments. Login now