celestia/celestia.pro

814 lines
23 KiB
Prolog

TEMPLATE = app
TARGET = Celestia_QT
VERSION = 1.7.0
DESTDIR = .
OBJECTS_DIR = obj
MOC_DIR = moc
RCC_DIR = rcc
GIT_COMMIT = $$system(git --git-dir=$PWD/.git log --pretty=format:"%h" -1)
DEFINES += GIT_COMMIT=\\\"$$GIT_COMMIT\\\"
QMAKE_CXXFLAGS += -std=c++11
QT += widgets
contains(DEFINES, TEST_MODEL) {
QT += testlib
}
load(configure)
qtCompileTest(spice)
qtCompileTest(byteswap)
qtCompileTest(eigen)
qtCompileTest(glew)
qtCompileTest(fmt)
unix {
!exists(config.h):system(touch config.h)
QMAKE_DISTCLEAN += config.h
}
#### Utility library ####
UTIL_SOURCES = \
src/celutil/bigfix.cpp \
src/celutil/color.cpp \
src/celutil/debug.cpp \
src/celutil/directory.cpp \
src/celutil/filetype.cpp \
src/celutil/formatnum.cpp \
src/celutil/utf8.cpp \
src/celutil/util.cpp \
src/celutil/timer.cpp
UTIL_HEADERS = \
src/celutil/bigfix.h \
src/celutil/bytes.h \
src/celutil/color.h \
src/celutil/debug.h \
src/celutil/directory.h \
src/celutil/filetype.h \
src/celutil/formatnum.h \
src/celutil/reshandle.h \
src/celutil/resmanager.h \
src/celutil/timer.h \
src/celutil/utf8.h \
src/celutil/util.h \
src/celutil/watcher.h
win32 {
UTIL_SOURCES += src/celutil/windirectory.cpp
UTIL_HEADERS += src/celutil/winutil.h
}
unix {
UTIL_SOURCES += src/celutil/unixdirectory.cpp
}
#### Math library ####
MATH_SOURCES = \
src/celmath/frustum.cpp \
src/celmath/perlin.cpp
MATH_HEADERS = \
src/celmath/aabox.h \
src/celmath/capsule.h \
src/celmath/distance.h \
src/celmath/ellipsoid.h \
src/celmath/frustum.h \
src/celmath/geomutil.h \
src/celmath/intersect.h \
src/celmath/mathlib.h \
src/celmath/perlin.h \
src/celmath/plane.h \
src/celmath/quaternion.h \
src/celmath/ray.h \
src/celmath/solve.h \
src/celmath/sphere.h \
src/celmath/vecmath.h
#### 3DS Mesh library ####
TDS_SOURCES = \
src/cel3ds/3dsmodel.cpp \
src/cel3ds/3dsread.cpp
TDS_HEADERS = \
src/cel3ds/3dschunk.h \
src/cel3ds/3dsmodel.h \
src/cel3ds/3dsread.h
#### CMOD Mesh library ####
MODEL_SOURCES = \
src/celmodel/material.cpp \
src/celmodel/mesh.cpp \
src/celmodel/model.cpp \
src/celmodel/modelfile.cpp
MODEL_HEADERS = \
src/celmodel/material.h \
src/celmodel/mesh.h \
src/celmodel/model.h \
src/celmodel/modelfile.h
#### Texture font library ####
TXF_SOURCES = \
src/celtxf/texturefont.cpp
TXF_HEADERS = \
src/celtxf/texturefont.h
#### Ephemeris module ####
EPHEM_SOURCES = \
src/celephem/customorbit.cpp \
src/celephem/customrotation.cpp \
src/celephem/jpleph.cpp \
src/celephem/nutation.cpp \
src/celephem/orbit.cpp \
src/celephem/precession.cpp \
src/celephem/rotation.cpp \
src/celephem/samporbit.cpp \
src/celephem/samporient.cpp \
src/celephem/scriptobject.cpp \
src/celephem/scriptorbit.cpp \
src/celephem/scriptrotation.cpp \
src/celephem/vsop87.cpp
EPHEM_HEADERS = \
src/celephem/customorbit.h \
src/celephem/customrotation.h \
src/celephem/jpleph.h \
src/celephem/nutation.h \
src/celephem/orbit.h \
src/celephem/precession.h \
src/celephem/rotation.h \
src/celephem/samporbit.h \
src/celephem/samporient.h \
src/celephem/scriptobject.h \
src/celephem/scriptorbit.h \
src/celephem/scriptrotation.h \
src/celephem/vsop87.h
#### Celestia Engine ####
ENGINE_SOURCES = \
src/celengine/asterism.cpp \
src/celengine/astro.cpp \
src/celengine/axisarrow.cpp \
src/celengine/body.cpp \
src/celengine/boundaries.cpp \
src/celengine/catalogxref.cpp \
src/celengine/category.cpp \
src/celengine/cmdparser.cpp \
src/celengine/command.cpp \
src/celengine/console.cpp \
src/celengine/constellation.cpp \
src/celengine/curveplot.cpp \
src/celengine/dds.cpp \
src/celengine/deepskyobj.cpp \
src/celengine/dispmap.cpp \
src/celengine/dsodb.cpp \
src/celengine/dsoname.cpp \
src/celengine/dsooctree.cpp \
src/celengine/execution.cpp \
src/celengine/frame.cpp \
src/celengine/frametree.cpp \
src/celengine/galaxy.cpp \
src/celengine/globular.cpp \
src/celengine/glcontext.cpp \
src/celengine/glshader.cpp \
src/celengine/image.cpp \
src/celengine/location.cpp \
src/celengine/lodspheremesh.cpp \
src/celengine/marker.cpp \
src/celengine/meshmanager.cpp \
src/celengine/modelgeometry.cpp \
src/celengine/multitexture.cpp \
src/celengine/nebula.cpp \
src/celengine/catentry.cpp \
src/celengine/observer.cpp \
src/celengine/opencluster.cpp \
src/celengine/overlay.cpp \
src/celengine/parseobject.cpp \
src/celengine/parser.cpp \
src/celengine/planetgrid.cpp \
src/celengine/rendcontext.cpp \
src/celengine/render.cpp \
src/celengine/renderglsl.cpp \
src/celengine/rotationmanager.cpp \
src/celengine/selection.cpp \
src/celengine/shadermanager.cpp \
src/celengine/simulation.cpp \
src/celengine/skygrid.cpp \
src/celengine/solarsys.cpp \
src/celengine/spheremesh.cpp \
src/celengine/star.cpp \
src/celengine/starcolors.cpp \
src/celengine/stardb.cpp \
src/celengine/starname.cpp \
src/celengine/staroctree.cpp \
src/celengine/stellarclass.cpp \
src/celengine/texmanager.cpp \
src/celengine/texture.cpp \
src/celengine/timeline.cpp \
src/celengine/timelinephase.cpp \
src/celengine/tokenizer.cpp \
src/celengine/trajmanager.cpp \
src/celengine/univcoord.cpp \
src/celengine/universe.cpp \
src/celengine/virtualtex.cpp \
src/celengine/visibleregion.cpp
ENGINE_HEADERS = \
src/celengine/asterism.h \
src/celengine/astro.h \
src/celengine/atmosphere.h \
src/celengine/axisarrow.h \
src/celengine/body.h \
src/celengine/boundaries.h \
src/celengine/catalogxref.h \
src/celengine/category.h \
src/celengine/celestia.h \
src/celengine/cmdparser.h \
src/celengine/command.h \
src/celengine/console.h \
src/celengine/constellation.h \
src/celengine/curveplot.h \
src/celengine/deepskyobj.h \
src/celengine/dispmap.h \
src/celengine/dsodb.h \
src/celengine/dsoname.h \
src/celengine/dsooctree.h \
src/celengine/execenv.h \
src/celengine/execution.h \
src/celengine/frame.h \
src/celengine/frametree.h \
src/celengine/galaxy.h \
src/celengine/geometry.h \
src/celengine/globular.h \
src/celengine/glcontext.h \
src/celengine/glshader.h \
src/celengine/image.h \
src/celengine/lightenv.h \
src/celengine/location.h \
src/celengine/lodspheremesh.h \
src/celengine/marker.h \
src/celengine/meshmanager.h \
src/celengine/modelgeometry.h \
src/celengine/multitexture.h \
src/celengine/nebula.h \
src/celengine/catentry.h \
src/celengine/observer.h \
src/celengine/octree.h \
src/celengine/opencluster.h \
src/celengine/overlay.h \
src/celengine/parseobject.h \
src/celengine/parser.h \
src/celengine/planetgrid.h \
src/celengine/referencemark.h \
src/celengine/rendcontext.h \
src/celengine/render.h \
src/celengine/renderglsl.h \
src/celengine/renderinfo.h \
src/celengine/rotationmanager.h \
src/celengine/selection.h \
src/celengine/shadermanager.h \
src/celengine/simulation.h \
src/celengine/skygrid.h \
src/celengine/solarsys.h \
src/celengine/spheremesh.h \
src/celengine/star.h \
src/celengine/starcolors.h \
src/celengine/stardb.h \
src/celengine/starname.h \
src/celengine/staroctree.h \
src/celengine/stellarclass.h \
src/celengine/surface.h \
src/celengine/texmanager.h \
src/celengine/texture.h \
src/celengine/timeline.h \
src/celengine/timelinephase.h \
src/celengine/tokenizer.h \
src/celengine/trajmanager.h \
src/celengine/univcoord.h \
src/celengine/universe.h \
src/celengine/vecgl.h \
src/celengine/virtualtex.h \
src/celengine/visibleregion.h
SPICE_SOURCES = \
src/celephem/spiceinterface.cpp \
src/celephem/spiceorbit.cpp \
src/celephem/spicerotation.cpp
SPICE_HEADERS = \
src/celephem/spiceinterface.h \
src/celephem/spiceorbit.h \
src/celephem/spicerotation.h
#### App sources ####
APP_SOURCES = \
src/celestia/celestiacore.cpp \
src/celestia/configfile.cpp \
src/celestia/destination.cpp \
src/celestia/eclipsefinder.cpp \
src/celestia/favorites.cpp \
src/celestia/imagecapture.cpp \
src/celestia/scriptmenu.cpp \
src/celestia/url.cpp \
src/celestia/celx.cpp \
src/celestia/celx_category.cpp \
src/celestia/celx_celestia.cpp \
src/celestia/celx_frame.cpp \
src/celestia/celx_gl.cpp \
src/celestia/celx_misc.cpp \
src/celestia/celx_object.cpp \
src/celestia/celx_observer.cpp \
src/celestia/celx_phase.cpp \
src/celestia/celx_position.cpp \
src/celestia/celx_rotation.cpp \
src/celestia/celx_vector.cpp
APP_HEADERS = \
src/celestia/celestiacore.h \
src/celestia/configfile.h \
src/celestia/destination.h \
src/celestia/eclipsefinder.h \
src/celestia/favorites.h \
src/celestia/imagecapture.h \
src/celestia/scriptmenu.h \
src/celestia/url.h \
src/celestia/celx.h \
src/celestia/celx_celestia.h \
src/celestia/celx_internal.h \
src/celestia/celx_category.h \
src/celestia/celx_frame.h \
src/celestia/celx_gl.h \
src/celestia/celx_misc.h \
src/celestia/celx_object.h \
src/celestia/celx_observer.h \
src/celestia/celx_phase.h \
src/celestia/celx_position.h \
src/celestia/celx_rotation.h \
src/celestia/celx_vector.h
macx {
APP_SOURCES -= src/celestia/imagecapture.cpp
APP_SOURCES += macosx/POSupport.cpp
APP_HEADERS += macosx/POSupport.h
}
#### Qt front-end sources ####
QTAPP_SOURCES = \
src/celestia/qt/qtmain.cpp \
src/celestia/qt/qtappwin.cpp \
src/celestia/qt/qtbookmark.cpp \
src/celestia/qt/qtglwidget.cpp \
src/celestia/qt/qtpreferencesdialog.cpp \
src/celestia/qt/qtcelestialbrowser.cpp \
src/celestia/qt/qtdeepskybrowser.cpp \
src/celestia/qt/qtsolarsystembrowser.cpp \
src/celestia/qt/qtselectionpopup.cpp \
src/celestia/qt/qtcolorswatchwidget.cpp \
src/celestia/qt/qttimetoolbar.cpp \
src/celestia/qt/qtcelestiaactions.cpp \
src/celestia/qt/qtinfopanel.cpp \
src/celestia/qt/qteventfinder.cpp \
src/celestia/qt/qtsettimedialog.cpp \
src/celestia/qt/qtgotoobjectdialog.cpp \
src/celestia/qt/xbel.cpp
QTAPP_HEADERS = \
src/celestia/qt/qtappwin.h \
src/celestia/qt/qtbookmark.h \
src/celestia/qt/qtglwidget.h \
src/celestia/qt/qtpreferencesdialog.h \
src/celestia/qt/qtcelestialbrowser.h \
src/celestia/qt/qtdeepskybrowser.h \
src/celestia/qt/qtsolarsystembrowser.h \
src/celestia/qt/qtselectionpopup.h \
src/celestia/qt/qtcolorswatchwidget.h \
src/celestia/qt/qttimetoolbar.h \
src/celestia/qt/qtcelestiaactions.h \
src/celestia/qt/qtinfopanel.h \
src/celestia/qt/qteventfinder.h \
src/celestia/qt/qtsettimedialog.h \
src/celestia/qt/qtgotoobjectdialog.h \
src/celestia/qt/xbel.h
# Third party libraries
# GL extension wrangler
GLEW_SOURCES = \
thirdparty/glew/src/glew.c
GLEW_HEADERS = \
thirdparty/glew/include/GL/glew.h \
thirdparty/glew/include/GL/glxew.h \
thirdparty/glew/include/GL/wglew.h
# libfmt formatting library
FMT_SOURCES = \
thirdparty/fmt/src/format.cc \
thirdparty/fmt/src/posix.cc
FMT_HEADERS = \
thirdparty/fmt/include/fmt/color.h \
thirdparty/fmt/include/fmt/core.h \
thirdparty/fmt/include/fmt/format.h \
thirdparty/fmt/include/fmt/format-inl.h \
thirdparty/fmt/include/fmt/ostream.h \
thirdparty/fmt/include/fmt/posix.h \
thirdparty/fmt/include/fmt/printf.h \
thirdparty/fmt/include/fmt/ranges.h \
thirdparty/fmt/include/fmt/time.h
THIRDPARTY_SOURCES =
THIRDPARTY_HEADERS =
!config_glew {
THIRDPARTY_SOURCES += $$GLEW_SOURCES
THIRDPARTY_HEADERS += $$GLEW_HEADERS
INCLUDEPATH += thirdparty/glew/include
DEFINES += GLEW_STATIC
}
!config_fmt {
THIRDPARTY_SOURCES += $$FMT_SOURCES
THIRDPARTY_HEADERS += $$FMT_HEADERS
INCLUDEPATH += thirdparty/fmt/include
}
#### common definitions
DEFINES += CELX
# SPICE support
config_spice {
EPHEM_SOURCES += $$SPICE_SOURCES
EPHEM_HEADERS += $$SPICE_HEADERS
DEFINES += USE_SPICE
}
# byteswap.h
config_byteswap {
DEFINES += HAVE_BYTESWAP_H
}
SOURCES = \
$$UTIL_SOURCES \
$$MATH_SOURCES \
$$TXF_SOURCES \
$$TDS_SOURCES \
$$MODEL_SOURCES \
$$EPHEM_SOURCES \
$$ENGINE_SOURCES \
$$APP_SOURCES \
$$QTAPP_SOURCES \
$$THIRDPARTY_SOURCES
HEADERS = \
$$UTIL_HEADERS \
$$MATH_HEADERS \
$$TXF_HEADERS \
$$TDS_HEADERS \
$$MODEL_HEADERS \
$$EPHEM_HEADERS \
$$ENGINE_HEADERS \
$$APP_HEADERS \
$$QTAPP_HEADERS \
$$THIRDPARTY_HEADERS
RESOURCES = \
src/celestia/qt/icons.qrc
FORMS = \
src/celestia/qt/addbookmark.ui \
src/celestia/qt/newbookmarkfolder.ui \
src/celestia/qt/organizebookmarks.ui \
src/celestia/qt/preferences.ui \
src/celestia/qt/gotoobjectdialog.ui
UI_HEADERS_DIR = src/celestia/qt/ui
UI_SOURCES_DIR = src/celestia/qt/ui
INCLUDEPATH += .
INCLUDEPATH += src
# Third party libraries
!config_eigen {
INCLUDEPATH += thirdparty/Eigen
}
CATALOG_SOURCE = data
CATALOG_FILES = \
$$CATALOG_SOURCE/stars.dat \
$$CATALOG_SOURCE/starnames.dat \
$$CATALOG_SOURCE/saoxindex.dat \
$$CATALOG_SOURCE/hdxindex.dat \
$$CATALOG_SOURCE/nearstars.stc \
$$CATALOG_SOURCE/extrasolar.stc \
$$CATALOG_SOURCE/visualbins.stc \
$$CATALOG_SOURCE/spectbins.stc \
$$CATALOG_SOURCE/revised.stc \
$$CATALOG_SOURCE/galaxies.dsc \
$$CATALOG_SOURCE/globulars.dsc \
$$CATALOG_SOURCE/solarsys.ssc \
$$CATALOG_SOURCE/asteroids.ssc \
$$CATALOG_SOURCE/comets.ssc \
$$CATALOG_SOURCE/minormoons.ssc \
$$CATALOG_SOURCE/numberedmoons.ssc \
$$CATALOG_SOURCE/outersys.ssc \
$$CATALOG_SOURCE/world-capitals.ssc \
$$CATALOG_SOURCE/merc_locs.ssc \
$$CATALOG_SOURCE/venus_locs.ssc \
$$CATALOG_SOURCE/mars_locs.ssc \
$$CATALOG_SOURCE/moon_locs.ssc \
$$CATALOG_SOURCE/marsmoons_locs.ssc \
$$CATALOG_SOURCE/jupitermoons_locs.ssc \
$$CATALOG_SOURCE/saturnmoons_locs.ssc \
$$CATALOG_SOURCE/uranusmoons_locs.ssc \
$$CATALOG_SOURCE/neptunemoons_locs.ssc \
$$CATALOG_SOURCE/extrasolar.ssc \
$$CATALOG_SOURCE/asterisms.dat \
$$CATALOG_SOURCE/boundaries.dat
CONFIGURATION_SOURCE = .
CONFIGURATION_FILES = \
$$CONFIGURATION_SOURCE/celestia.cfg \
$$CONFIGURATION_SOURCE/start.cel
TEXTURE_SOURCE = textures/medres
HIRES_TEXTURE_SOURCE = textures/hires
LORES_TEXTURE_SOURCE = textures/lores
TEXTURE_FILES =
LORES_TEXTURE_FILES =
HIRES_TEXTURE_FILES =
MODEL_SOURCE = models
MODEL_FILES =
SHADER_SOURCE = shaders
SHADER_FILES =
FONT_SOURCE = fonts
FONT_FILES =
# ## End package files
macx {
# Scan directories for files for Mac bundle
FILES = $$system(ls $$TEXTURE_SOURCE)
TEXTURE_FILES = $$join(FILES, " $$TEXTURE_SOURCE/", $$TEXTURE_SOURCE/)
FILES = $$system(ls $$LORES_TEXTURE_SOURCE)
LORES_TEXTURE_FILES = $$join(FILES, " $$LORES_TEXTURE_SOURCE/", $$LORES_TEXTURE_SOURCE/)
FILES = $$system(ls $$HIRES_TEXTURE_SOURCE)
HIRES_TEXTURE_FILES = $$join(FILES, " $$HIRES_TEXTURE_SOURCE/", $$HIRES_TEXTURE_SOURCE/)
FILES = $$system(ls $$MODEL_SOURCE)
MODEL_FILES = $$join(FILES, " $$MODEL_SOURCE/", $$MODEL_SOURCE/)
FILES = $$system(ls $$SHADER_SOURCE)
SHADER_FILES = $$join(FILES, " $$SHADER_SOURCE/", $$SHADER_SOURCE/)
FILES = $$system(ls $$FONT_SOURCE)
FONT_FILES = $$join(FILES, " $$FONT_SOURCE/", $$FONT_SOURCE/)
}
DEFINES += EIGEN_NO_DEBUG
release {
DEFINES += \
NDEBUG \
NO_DEBUG
}
win32 {
INCLUDEPATH += \
windows/inc/libintl \
windows/inc/libz \
windows/inc/libpng \
windows/inc/libjpeg \
windows/inc/lua \
windows/inc/spice
#CONFIG += staticlib
#CONFIG += /MT
#QMAKE_CXXFLAGS += /MT
LIBS += opengl32.lib \
-lglu32 \
-luser32 \
-lzlib \
-llibpng \
-llibjpeg \
-llua51 \
-lvfw32 \
-llibintl
!contains(QMAKE_TARGET.arch, x86_64) {
LIBS += -L$$PWD/windows/lib/x86 -lcspice
} else{
LIBS += -L$$PWD/windows/lib/x64 -lcspice64
}
SOURCES += src/celestia/avicapture.cpp
HEADERS += src/celestia/avicapture.h
RC_FILE = src/celestia/qt/celestia.rc
DEFINES += _CRT_SECURE_NO_WARNINGS
# Disable the regrettable min and max macros in windows.h
DEFINES += NOMINMAX
DEFINES += LUA_VER=0x050100
DEFINES += LOCALEDIR=\\\"locale\\\"
}
unix {
SOURCES += src/celestia/oggtheoracapture.cpp
HEADERS += src/celestia/oggtheoracapture.h
DEFINES += THEORA VIDEO_SYNC
CONFIG += link_pkgconfig
LUALIST = lua lua5.1 lua51 lua5.2 lua52 lua5.3 lua53
for(libpc, LUALIST):system(pkg-config --exists $${libpc}):LUAPC = $${libpc}
isEmpty (LUAPC) {error("No shared Lua library found!")}
message("LUA version: " $${LUAPC})
LUA_VER = 0x050000
system(pkg-config --atleast-version 5.1 $$LUAPC):LUA_VER = 0x050100
system(pkg-config --atleast-version 5.2 $$LUAPC):LUA_VER = 0x050200
system(pkg-config --atleast-version 5.3 $$LUAPC):LUA_VER = 0x050300
DEFINES += LUA_VER=$$LUA_VER
PKGCONFIG += glu $$LUAPC libpng libjpeg theora
}
unix:config_fmt {
LIBS += -Wl,-Bstatic -lfmt -Wl,-Bdynamic
}
unix:config_spice {
INCLUDEPATH += /usr/local/cspice/include
LIBS += /usr/local/cspice/lib/cspice.a
}
unix:config_eigen {
PKGCONFIG += eigen3
}
unix:config_glew {
PKGCONFIG += glew
}
macx {
message(Copying extras-standard to bundle)
RESOURCES_DIR = $$DESTDIR/$${TARGET}.app/Contents/Resources/CelestiaResources
system(rm -rf $$RESOURCES_DIR/extras-standard)
system(cp -r extras-standard $$RESOURCES_DIR)
#system(ls $$DESTDIR/$${TARGET}.app/Contents/Resources/CelestiaResources)
# Necessary with Qt 4.6
QMAKE_LFLAGS += -framework CoreFoundation -framework ApplicationServices
ICON = macosx/celestia.icns
INCLUDEPATH += macosx
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
#QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
CONFIG += x86
PRECOMPILED_HEADER += macosx/Util.h
FRAMEWORKPATH = macosx/Frameworks
LIBS -= -ljpeg
LIBS += -llua
LIBS += -L$$FRAMEWORKPATH
DEFINES += PNG_SUPPORT
DEFINES += TARGET_OS_MAC __AIFF__
DEFINES += LUA_VER=0x050100
# FIXME!
DEFINES += LOCALEDIR=\\\"locale\\\"
FRAMEWORKS.files = $$FRAMEWORKPATH/liblua.dylib $$FRAMEWORKPATH/libpng.dylib
FRAMEWORKS.path = Contents/Frameworks
QMAKE_BUNDLE_DATA += FRAMEWORKS
CONFIGURATION.path = Contents/Resources/CelestiaResources
CONFIGURATION.files = $$CONFIGURATION_FILES
CATALOGS.path = Contents/Resources/CelestiaResources/data
CATALOGS.files = $$CATALOG_FILES
TEXTURES.path = Contents/Resources/CelestiaResources/textures/medres
TEXTURES.files = $$TEXTURE_FILES
LORES_TEXTURES.path = Contents/Resources/CelestiaResources/textures/lores
LORES_TEXTURES.files = $$LORES_TEXTURE_FILES
HIRES_TEXTURES.path = Contents/Resources/CelestiaResources/textures/hires
HIRES_TEXTURES.files = $$HIRES_TEXTURE_FILES
MODELS.path = Contents/Resources/CelestiaResources/models
MODELS.files = $$MODEL_FILES
FONTS.path = Contents/Resources/CelestiaResources/fonts
FONTS.files = $$FONT_FILES
SHADERS.path = Contents/Resources/CelestiaResources/shaders
SHADERS.files = $$SHADER_FILES
QMAKE_BUNDLE_DATA += \
CONFIGURATION \
CATALOGS \
TEXTURES \
LORES_TEXTURES \
HIRES_TEXTURES \
MODELS \
FONTS \
SHADERS \
EPHEMERIDES
}
macx:config_spice {
LIBS += macosx/lib/cspice.a
}
unix {
#VARIABLES
isEmpty(PREFIX) { PREFIX = /usr/local }
BINDIR = $$PREFIX/bin
DATADIR = $$PREFIX/share
WORKDIR = $$DATADIR/$${TARGET}
LOCALEDIR = $$DATADIR/locale
DEFINES += CONFIG_DATA_DIR=\\\"$${WORKDIR}\\\"
DEFINES += SPLASH_DIR=\\\"$${WORKDIR}/splash/\\\"
DEFINES += LOCALEDIR=\\\"$${LOCALEDIR}\\\"
#MAKE INSTALL
target.path = $$BINDIR
data.path = $$WORKDIR/data
data.files = $$CATALOG_SOURCE/*
flares.path = $$WORKDIR/textures
flares.files += textures/*.jpg textures/*.png
textures.path = $$WORKDIR/textures/medres
textures.files += $$TEXTURE_SOURCE/*.jpg $$TEXTURE_SOURCE/*.png
lores_textures.path = $$WORKDIR/textures/lores
lores_textures.files += $$LORES_TEXTURE_SOURCE/*.jpg \
$$LORES_TEXTURE_SOURCE/*.png
hires_textures.path = $$WORKDIR/textures/hires
hires_textures.files = $$HIRES_TEXTURE_SOURCE/*.jpg
models.path = $$WORKDIR/models
models.files += $$MODEL_SOURCE/*.cmod $$MODEL_SOURCE/*.png
shaders.path = $$WORKDIR/shaders
shaders.files += $$SHADER_SOURCE/*.vp $$SHADER_SOURCE/*.fp
fonts.path = $$WORKDIR/fonts
fonts.files = $$FONT_SOURCE/*.txf
scripts.path = $$WORKDIR/scripts
scripts.files = scripts/*.celx scripts/*.cel
images.path = $$WORKDIR/images
images.files = images/*
configuration.path = $$WORKDIR
configuration.files += $$CONFIGURATION_FILES \
$$CONFIGURATION_SOURCE/guide.cel \
$$CONFIGURATION_SOURCE/demo.cel \
$$CONFIGURATION_SOURCE/controls.txt \
$$CONFIGURATION_SOURCE/COPYING \
$$CONFIGURATION_SOURCE/README \
$$CONFIGURATION_SOURCE/ChangeLog \
$$CONFIGURATION_SOURCE/AUTHORS
locale.path = $$WORKDIR/locale
locale.files = locale/*
extras.path = $$WORKDIR/extras
extras.files = extras/*
extras-standard.path = $$WORKDIR/extras-standard
extras-standard.files = extras-standard/*
desktop_file.target = $${TARGET}.desktop
desktop_file.commands = sh $$PWD/src/celestia/qt/data/celestia.desktop.sh $${PREFIX} >$$desktop_file.target
desktop_file.depends += $$PWD/src/celestia/qt/data/celestia.desktop.sh
QMAKE_EXTRA_TARGETS += desktop_file
PRE_TARGETDEPS += $$desktop_file.target
QMAKE_CLEAN += $$desktop_file.target
desktop.path = /usr/share/applications
desktop.files += $$desktop_file.target
desktop.CONFIG += no_check_exist
icon128.path = /usr/share/icons/hicolor/128x128/apps
icon128.files += src/celestia/qt/data/celestia.png
splash.path = $$WORKDIR/splash
splash.files = splash.png
INSTALLS += target data textures lores_textures hires_textures \
flares models shaders fonts scripts locale extras extras-standard \
configuration desktop icon128 splash images
}