Merged in f5soh/librepilot/LP-575_fedora_package (pull request #491)
[librepilot.git] / ground / gcs / src / libs / osgearth / copydata.pro
blob294471afe103ebb024097df8ebf6a5e73a4e3535
2 # copy osg and osgearth libraries and data to build dir
5 OSG_VERSION = $$system(osgversion --version-number)
7 contains(QT_ARCH, x86_64) {
8 LIB_DIR_NAME = lib64
9 } else {
10 LIB_DIR_NAME = lib
13 # set debug suffix if needed
14 win32:CONFIG(debug, debug|release):DS = "d"
16 linux:osg {
17 # copy osg libraries
18 data_copy.commands += $(MKDIR) $$GCS_LIBRARY_PATH/osg $$addNewline()
19 data_copy.commands += $(COPY_DIR) $$shell_quote($$OSG_SDK_DIR/$$LIB_DIR_NAME/)* $$shell_quote($$GCS_LIBRARY_PATH/osg/) $$addNewline()
22 linux:osgearth {
23 # copy osgearth libraries
24 data_copy.commands += $(MKDIR) $$GCS_LIBRARY_PATH/osg $$addNewline()
25 data_copy.commands += $(COPY_DIR) $$shell_quote($$OSGEARTH_SDK_DIR/$$LIB_DIR_NAME/)* $$shell_quote($$GCS_LIBRARY_PATH/osg/) $$addNewline()
28 macx:osg {
29 # copy osg libraries
30 data_copy.commands += $(COPY_DIR) $$shell_quote($$OSG_SDK_DIR/lib/)* $$shell_quote($$GCS_LIBRARY_PATH/) $$addNewline()
33 macx:osgearth {
34 # copy osgearth libraries
35 data_copy.commands += $(COPY_DIR) $$shell_quote($$OSGEARTH_SDK_DIR/lib/)* $$shell_quote($$GCS_LIBRARY_PATH/) $$addNewline()
38 linux|macx {
39 # add make target
40 POST_TARGETDEPS += copydata
42 data_copy.target = copydata
43 QMAKE_EXTRA_TARGETS += data_copy
46 win32:osg {
47 OSG_PLUGINS_DIR = $${OSG_SDK_DIR}/bin/osgPlugins-$${OSG_VERSION}
49 # osg libraries
50 OSG_LIBS += \
51 libOpenThreads$${DS}.dll \
52 libosg$${DS}.dll \
53 libosgAnimation$${DS}.dll \
54 libosgDB$${DS}.dll \
55 libosgFX$${DS}.dll \
56 libosgGA$${DS}.dll \
57 libosgManipulator$${DS}.dll \
58 libosgParticle$${DS}.dll \
59 libosgPresentation$${DS}.dll \
60 libosgShadow$${DS}.dll \
61 libosgSim$${DS}.dll \
62 libosgTerrain$${DS}.dll \
63 libosgText$${DS}.dll \
64 libosgUtil$${DS}.dll \
65 libosgViewer$${DS}.dll \
66 libosgVolume$${DS}.dll \
67 libosgWidget$${DS}.dll
69 osgQt:OSG_LIBS += \
70 libosgQt$${DS}.dll
72 for(lib, OSG_LIBS) {
73 addCopyFileTarget($${lib},$${OSG_SDK_DIR}/bin,$${GCS_APP_PATH})
74 addCopyDependenciesTarget($${lib},$${OSG_SDK_DIR}/bin,$${GCS_APP_PATH})
77 # osg plugins
78 OSG_PLUGINS = \
79 mingw_osgdb_3ds$${DS}.dll \
80 mingw_osgdb_freetype$${DS}.dll \
81 mingw_osgdb_jpeg$${DS}.dll \
82 mingw_osgdb_osg$${DS}.dll \
83 mingw_osgdb_png$${DS}.dll \
84 mingw_osgdb_tiff$${DS}.dll \
85 mingw_osgdb_zip$${DS}.dll \
86 mingw_osgdb_serializers_osg$${DS}.dll
88 # more osg plugins
89 osg_more_plugins:OSG_PLUGINS = \
90 mingw_osgdb_3dc$${DS}.dll \
91 mingw_osgdb_ac$${DS}.dll \
92 mingw_osgdb_bmp$${DS}.dll \
93 mingw_osgdb_bsp$${DS}.dll \
94 mingw_osgdb_bvh$${DS}.dll \
95 mingw_osgdb_cfg$${DS}.dll \
96 mingw_osgdb_curl$${DS}.dll \
97 mingw_osgdb_dds$${DS}.dll \
98 mingw_osgdb_dot$${DS}.dll \
99 mingw_osgdb_dw$${DS}.dll \
100 mingw_osgdb_dxf$${DS}.dll \
101 mingw_osgdb_gdal$${DS}.dll \
102 mingw_osgdb_glsl$${DS}.dll \
103 mingw_osgdb_gz$${DS}.dll \
104 mingw_osgdb_hdr$${DS}.dll \
105 mingw_osgdb_ive$${DS}.dll \
106 mingw_osgdb_ktx$${DS}.dll \
107 mingw_osgdb_logo$${DS}.dll \
108 mingw_osgdb_lwo$${DS}.dll \
109 mingw_osgdb_lws$${DS}.dll \
110 mingw_osgdb_md2$${DS}.dll \
111 mingw_osgdb_mdl$${DS}.dll \
112 mingw_osgdb_normals$${DS}.dll \
113 mingw_osgdb_obj$${DS}.dll \
114 mingw_osgdb_ogr$${DS}.dll \
115 mingw_osgdb_openflight$${DS}.dll \
116 mingw_osgdb_osc$${DS}.dll \
117 mingw_osgdb_osga$${DS}.dll \
118 mingw_osgdb_osgshadow$${DS}.dll \
119 mingw_osgdb_osgterrain$${DS}.dll \
120 mingw_osgdb_osgtgz$${DS}.dll \
121 mingw_osgdb_osgviewer$${DS}.dll \
122 mingw_osgdb_p3d$${DS}.dll \
123 mingw_osgdb_pic$${DS}.dll \
124 mingw_osgdb_ply$${DS}.dll \
125 mingw_osgdb_pnm$${DS}.dll \
126 mingw_osgdb_pov$${DS}.dll \
127 mingw_osgdb_pvr$${DS}.dll \
128 mingw_osgdb_revisions$${DS}.dll \
129 mingw_osgdb_rgb$${DS}.dll \
130 mingw_osgdb_rot$${DS}.dll \
131 mingw_osgdb_scale$${DS}.dll \
132 mingw_osgdb_shp$${DS}.dll \
133 mingw_osgdb_stl$${DS}.dll \
134 mingw_osgdb_tga$${DS}.dll \
135 mingw_osgdb_tgz$${DS}.dll \
136 mingw_osgdb_trans$${DS}.dll \
137 mingw_osgdb_trk$${DS}.dll \
138 mingw_osgdb_txf$${DS}.dll \
139 mingw_osgdb_txp$${DS}.dll \
140 mingw_osgdb_vtf$${DS}.dll \
141 mingw_osgdb_x$${DS}.dll \
142 mingw_osgdb_serializers_osganimation$${DS}.dll \
143 mingw_osgdb_serializers_osgfx$${DS}.dll \
144 mingw_osgdb_serializers_osgga$${DS}.dll \
145 mingw_osgdb_serializers_osgmanipulator$${DS}.dll \
146 mingw_osgdb_serializers_osgparticle$${DS}.dll \
147 mingw_osgdb_serializers_osgshadow$${DS}.dll \
148 mingw_osgdb_serializers_osgsim$${DS}.dll \
149 mingw_osgdb_serializers_osgterrain$${DS}.dll \
150 mingw_osgdb_serializers_osgtext$${DS}.dll \
151 mingw_osgdb_serializers_osgviewer$${DS}.dll \
152 mingw_osgdb_serializers_osgvolume$${DS}.dll
154 for(lib, OSG_PLUGINS) {
155 addCopyFileTarget($${lib},$${OSG_PLUGINS_DIR},$${GCS_LIBRARY_PATH}/osg/osgPlugins-$${OSG_VERSION})
156 addCopyDependenciesTarget($${lib},$${OSG_PLUGINS_DIR},$${GCS_APP_PATH})
160 win32:osgearth {
161 # osgearth libraries
162 OSGEARTH_LIBS = \
163 libosgEarth$${DS}.dll \
164 libosgEarthAnnotation$${DS}.dll \
165 libosgEarthFeatures$${DS}.dll \
166 libosgEarthSymbology$${DS}.dll \
167 libosgEarthUtil$${DS}.dll
169 # loaded dynamically (probably by an osg plugin, need to find by which)
170 OSGEARTH_LIBS += \
171 libopenjp2-7.dll
173 osgearthQt:OSGEARTH_LIBS += \
174 libosgEarthQt$${DS}.dll
176 for(lib, OSGEARTH_LIBS) {
177 addCopyFileTarget($${lib},$${OSGEARTH_SDK_DIR}/bin,$${GCS_APP_PATH})
178 addCopyDependenciesTarget($${lib},$${OSGEARTH_SDK_DIR}/bin,$${GCS_APP_PATH})
181 # osgearth plugins
182 OSGEARTH_PLUGINS += \
183 mingw_osgdb_earth$${DS}.dll \
184 mingw_osgdb_osgearth_arcgis$${DS}.dll \
185 mingw_osgdb_osgearth_engine_mp$${DS}.dll \
186 mingw_osgdb_osgearth_sky_simple$${DS}.dll \
187 mingw_osgdb_osgearth_tms$${DS}.dll \
188 mingw_osgdb_osgearth_xyz$${DS}.dll \
189 mingw_osgdb_osgearth_cache_filesystem$${DS}.dll
191 # more osgearth plugins
192 more_osgearth_plugins:OSGEARTH_PLUGINS += \
193 mingw_osgdb_kml$${DS}.dll \
194 mingw_osgdb_osgearth_agglite$${DS}.dll \
195 mingw_osgdb_osgearth_arcgis_map_cache$${DS}.dll \
196 mingw_osgdb_osgearth_bing$${DS}.dll \
197 mingw_osgdb_osgearth_colorramp$${DS}.dll \
198 mingw_osgdb_osgearth_debug$${DS}.dll \
199 mingw_osgdb_osgearth_engine_byo$${DS}.dll \
200 mingw_osgdb_osgearth_feature_ogr$${DS}.dll \
201 mingw_osgdb_osgearth_feature_tfs$${DS}.dll \
202 mingw_osgdb_osgearth_feature_wfs$${DS}.dll \
203 mingw_osgdb_osgearth_gdal$${DS}.dll \
204 mingw_osgdb_osgearth_label_annotation$${DS}.dll \
205 mingw_osgdb_osgearth_mask_feature$${DS}.dll \
206 mingw_osgdb_osgearth_model_feature_geom$${DS}.dll \
207 mingw_osgdb_osgearth_model_feature_stencil$${DS}.dll \
208 mingw_osgdb_osgearth_model_simple$${DS}.dll \
209 mingw_osgdb_osgearth_noise$${DS}.dll \
210 mingw_osgdb_osgearth_ocean_simple$${DS}.dll \
211 mingw_osgdb_osgearth_osg$${DS}.dll \
212 mingw_osgdb_osgearth_refresh$${DS}.dll \
213 mingw_osgdb_osgearth_scriptengine_javascript$${DS}.dll \
214 mingw_osgdb_osgearth_sky_gl$${DS}.dll \
215 mingw_osgdb_osgearth_splat_mask$${DS}.dll \
216 mingw_osgdb_osgearth_template_matclass$${DS}.dll \
217 mingw_osgdb_osgearth_tilecache$${DS}.dll \
218 mingw_osgdb_osgearth_tileindex$${DS}.dll \
219 mingw_osgdb_osgearth_tileservice$${DS}.dll \
220 mingw_osgdb_osgearth_vdatum_egm2008$${DS}.dll \
221 mingw_osgdb_osgearth_vdatum_egm84$${DS}.dll \
222 mingw_osgdb_osgearth_vdatum_egm96$${DS}.dll \
223 mingw_osgdb_osgearth_vpb$${DS}.dll \
224 mingw_osgdb_osgearth_wcs$${DS}.dll \
225 mingw_osgdb_osgearth_wms$${DS}.dll \
226 mingw_osgdb_osgearth_xyz$${DS}.dll \
227 mingw_osgdb_osgearth_yahoo$${DS}.dll
229 for(lib, OSGEARTH_PLUGINS) {
230 addCopyFileTarget($${lib},$${OSG_PLUGINS_DIR},$${GCS_LIBRARY_PATH}/osg/osgPlugins-$${OSG_VERSION})
231 addCopyDependenciesTarget($${lib},$${OSG_PLUGINS_DIR},$${GCS_APP_PATH})