Skip to content

Commit

Permalink
sync with trunk; avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jun 12, 2016
2 parents fb868da + 5aa8bc0 commit addb661
Show file tree
Hide file tree
Showing 473 changed files with 270,821 additions and 169,953 deletions.
29 changes: 22 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build, options are: None Debug GProf Valgrind Release RelWithDebInfo MinSizeRel." FORCE)
ENDIF()

SET(STELLARIUM_RELEASE_BUILD 0 CACHE BOOL "Set 1 to build as an official release (0 for development snapshots).")
IF(STELLARIUM_RELEASE_BUILD)
ADD_DEFINITIONS(-DSTELLARIUM_RELEASE_BUILD)
ENDIF()

# GZ I had seen that some releases (e.g. 0.13.3 Ubuntu/ARM) were not compiled with NDEBUG defined. Maybe a bug in compilatation setup?
# Hint from http://public.kitware.com/Bug/view.php?id=14292. Actually fixed with CMake 2.8.12, but maybe we have other effects?
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DQT_NO_DEBUG -DNDEBUG)
ADD_DEFINITIONS(-DQT_NO_DEBUG -DNDEBUG)
endif()

# Add gprof build options if necessary. Note gmon.out will be created in working directory when Stellarium is executed
Expand Down Expand Up @@ -141,10 +146,6 @@ IF(ENABLE_NLS)
ADD_DEFINITIONS(-DENABLE_NLS)
ENDIF()

SET(STELLARIUM_RELEASE_BUILD 1 CACHE BOOL "Flag this build as an official release.")
IF(STELLARIUM_RELEASE_BUILD)
ADD_DEFINITIONS(-DSTELLARIUM_RELEASE_BUILD)
ENDIF()

# Activate media support
SET(ENABLE_MEDIA 1 CACHE BOOL "Define whether media support should be activated.")
Expand Down Expand Up @@ -296,11 +297,15 @@ ENDIF()

########### Get revision number for non-release builds ###########
IF(NOT STELLARIUM_RELEASE_BUILD)
#Hack until CMake detection for Bazaar is finished
# Hack until CMake detection for Bazaar is finished
EXECUTE_PROCESS(COMMAND bzr revno WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} TIMEOUT 30 OUTPUT_VARIABLE BZR_REVISION OUTPUT_STRIP_TRAILING_WHITESPACE)
EXECUTE_PROCESS(COMMAND bzr version-info --custom --template={branch_nick} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} TIMEOUT 30 OUTPUT_VARIABLE BZR_BRANCH OUTPUT_STRIP_TRAILING_WHITESPACE)
IF(BZR_REVISION)
SET(PACKAGE_VERSION "bzr${BZR_REVISION}")
SET(PACKAGE_VERSION "${VERSION}.${BZR_REVISION}")
ADD_DEFINITIONS(-DBZR_REVISION="${BZR_REVISION}")
ADD_DEFINITIONS(-DBZR_BRANCH="${BZR_BRANCH}")
ENDIF()
# MESSAGE(STATUS "Branch: ${BZR_BRANCH}; Revision: ${BZR_REVISION}")
IF(STELLARIUM_VERSION)
SET(PACKAGE_VERSION "${STELLARIUM_VERSION}")
ADD_DEFINITIONS(-DSTELLARIUM_VERSION="${STELLARIUM_VERSION}")
Expand All @@ -309,6 +314,16 @@ ENDIF()


IF(WIN32)
#######################################################
### Generate icon file name ###
#######################################################

IF(STELLARIUM_RELEASE_BUILD)
SET(PACKAGE_ICON "stellarium")
ELSE()
SET(PACKAGE_ICON "stellarium-gray")
ENDIF()

#######################################################
### Generate a VersionInfo file ###
#######################################################
Expand Down
2 changes: 1 addition & 1 deletion cmake/stellarium.iss.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ AppSupportURL=http://www.stellarium.org/
AppUpdatesURL=http://www.stellarium.org/
VersionInfoVersion=@PACKAGE_VERSION@
MinVersion=0,@MIN_VERSION@
SetupIconFile=@CMAKE_SOURCE_DIR@\data\stellarium.ico
SetupIconFile=@CMAKE_SOURCE_DIR@\data\@PACKAGE_ICON@.ico
OutputBaseFilename=stellarium-@PACKAGE_VERSION@-@ISS_PACKAGE_PLATFORM@
OutputDir=@CMAKE_SOURCE_DIR@\installers
; In 64-bit mode, {pf} is equivalent to {pf64},
Expand Down
2 changes: 1 addition & 1 deletion cmake/stellarium.rc.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
stellarium-icon ICON "@CMAKE_SOURCE_DIR@/data/stellarium.ico"
stellarium-icon ICON "@CMAKE_SOURCE_DIR@/data/@PACKAGE_ICON@.ico"
1 VERSIONINFO
FILEVERSION @PACKAGE_VERSION_RC@
PRODUCTVERSION @PACKAGE_VERSION_RC@
Expand Down
57 changes: 51 additions & 6 deletions data/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,56 @@

########### install files ###############
INSTALL(FILES ssystem.ini ssystem_1000comets.ini base_locations.bin.gz DejaVuSans.ttf default_config.ini DejaVuSansMono.ttf iso639-1.utf8 iso3166-1-alpha-2.utf8 countryCodes.dat constellations_boundaries.dat DESTINATION share/${PACKAGE}/data)

########### splash target ##############
ADD_CUSTOM_TARGET(splash ALL)
SET(_splashFile splash.png)
SET(_splashDstFile ${CMAKE_CURRENT_BINARY_DIR}/${_splashFile})

IF(NOT STELLARIUM_RELEASE_BUILD)
GET_FILENAME_COMPONENT(_splashSrcFile splash-gray.png ABSOLUTE)
ELSE()
GET_FILENAME_COMPONENT(_splashSrcFile splash.png ABSOLUTE)
ENDIF()

INSTALL(FILES stellarium.ico ssystem.ini ssystem_1000comets.ini base_locations.bin.gz DejaVuSans.ttf default_config.ini DejaVuSansMono.ttf iso639-1.utf8 iso3166-1-alpha-2.utf8 countryCodes.dat constellations_boundaries.dat DESTINATION share/${PACKAGE}/data)
ADD_CUSTOM_COMMAND(
TARGET splash
COMMAND ${CMAKE_COMMAND} -E copy ${_splashSrcFile} ${_splashDstFile}
)

########### icon target ###############
ADD_CUSTOM_TARGET(icon ALL)
IF(MACOSX)
SET(_iconFile Icon.icns)
IF(NOT STELLARIUM_RELEASE_BUILD)
GET_FILENAME_COMPONENT(_iconSrcFile IconGray.icns ABSOLUTE)
ELSE()
GET_FILENAME_COMPONENT(_iconSrcFile Icon.icns ABSOLUTE)
ENDIF()
ELSE()
SET(_iconFile stellarium.ico)
IF(NOT STELLARIUM_RELEASE_BUILD)
GET_FILENAME_COMPONENT(_iconSrcFile stellarium-gray.ico ABSOLUTE)
ELSE()
GET_FILENAME_COMPONENT(_iconSrcFile stellarium.ico ABSOLUTE)
ENDIF()
ENDIF()

SET(_iconDstFile ${CMAKE_CURRENT_BINARY_DIR}/${_iconFile})
ADD_CUSTOM_COMMAND(
TARGET icon
COMMAND ${CMAKE_COMMAND} -E copy ${_iconSrcFile} ${_iconDstFile}
)

# install splash and icon
IF(MACOSX)
INSTALL(FILES ${_iconDstFile} DESTINATION share RENAME ${_iconFile})
INSTALL(FILES ${_splashDstFile} DESTINATION share/data RENAME ${_splashFile})
INSTALL(FILES Info.plist PkgInfo DESTINATION .)
ELSE()
INSTALL(FILES ${_iconDstFile} DESTINATION share/${PACKAGE}/data RENAME ${_iconFile})
INSTALL(FILES ${_splashDstFile} DESTINATION share/${PACKAGE}/data RENAME ${_splashFile})
ENDIF()

# install Scenery3d shaders
IF(USE_PLUGIN_SCENERY3D)
Expand Down Expand Up @@ -32,8 +82,3 @@ IF(UNIX AND NOT APPLE)
INSTALL(FILES icons/512x512/stellarium.png DESTINATION share/icons/hicolor/512x512/apps)
ENDIF()

IF(MACOSX)
INSTALL(FILES Icon.icns DESTINATION share )
INSTALL(FILES Info.plist PkgInfo DESTINATION . )
ENDIF(MACOSX)

Binary file added data/IconGray.icns
Binary file not shown.
1 change: 0 additions & 1 deletion data/mainRes.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
</qresource>
<qresource prefix="/">
<file>shaders/xyYToRGB.glsl</file>
<file>splash.png</file>
</qresource>
</RCC>
Binary file added data/splash-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/splash.bmp
Binary file not shown.
Binary file added data/stellarium-gray.ico
Binary file not shown.
8 changes: 8 additions & 0 deletions data/stellarium.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@
<p xml:lang="tr">Stellarium OpenGL ile gerçek zamanlı 3D foto-gerçekçi gökyüzü görüntülerini sunar. Yıldızları, takımyıldızları, gezegenleri, bulutsu görüntüleri, çoklu panoramik manzaraları, sisi, ışık kirliliği simülasyonunu gösterir ve yerleşik bir betik motoru dahil olmak üzere birçok diğer özellikleri vardır.</p>
<p xml:lang="uk">Stellarium відтворює просторову фотореалістичну картину зоряного неба у режимі реального часу за допомогою OpenGL. Програма здатна показувати зірки, сузір’я, планети і туманності. Має безліч інших можливостей, зокрема показ декількох панорамних ландшафтів, туману, імітацію світлового забруднення та вбудований рушій керування за допомогою сценаріїв.</p>
<p xml:lang="vi">Stellarium diễn tả bầu trời hình ảnh thực tế 3D trong thời gian thực với OpenGL. Nó hiển thị sao, chòm sao, hành tinh và các tinh vân, và có nhiều tính năng khác bao gồm nhiều cảnh quan toàn cảnh, sương mù, mô phỏng ô nhiễm ánh sáng và một động cơ kịch bản được xây dựng.</p>
<p xml:lang="zh-HK">Stellarium使用OpenGL為你呈現出3D照片般逼真的天空. 它能夠顯示恆星, 星座, 行星和星雲, 並擁有許多其他功能包括多全景景觀, 霧, 光污染模擬和一個內置的腳本引擎.</p>
<p xml:lang="zh-TW">Stellarium使用OpenGL為你呈現出3D照片般逼真的天空. 它能夠顯示恆星, 星座, 行星和星雲, 並擁有許多其他功能包括多全景景觀, 霧, 光污染模擬和一個內置的腳本引擎.</p>
<p>Stellarium comes with a star catalogue of about 600 thousand stars and it is possible to download extra catalogues with up to 210 million stars.</p>
<p xml:lang="ar">ستيلاريوم يأتي بفهرس نجوم فيه حوالي 600 ألف نجم ويمكنك تحميل فهارس إضافية حتى 210 مليون نجم.</p>
<p xml:lang="be">Stellarium пастаўляецца з каталёґам, у якім каля 600 тысяч зорак, а яшчэ магчыма загрузіць дадатковыя каталёґі, у якіх утрымліваецца да 210 мільёнаў зорак.</p>
Expand Down Expand Up @@ -250,6 +252,8 @@
<p xml:lang="tr">Stellarium içinde yaklaşık 600 bin yıldız olan bir katalogla beraber gelir ve yaklaşık 210 milyon yıldız içeren ek kataloglar indirilebilir.</p>
<p xml:lang="uk">До пакунка Stellarium включено зоряний каталог, у якому близько 600 тисяч записів зірок. Ви також можете отримати з інтернету додаткові каталоги, у яких до 210 мільйонів записів.</p>
<p xml:lang="vi">Stellarium đi kèm với một danh mục sao của khoảng 600.000 ngôi sao và nó có thể tải về danh mục thêm với lên đến 210 triệu ngôi sao.</p>
<p xml:lang="zh-HK">Stellarium內置一個60萬粒星的數據庫, 並且可以下載額外21億粒星的數據庫.</p>
<p xml:lang="zh-TW">Stellarium內置一個60萬粒星的數據庫, 並且可以下載額外21億粒星的數據庫.</p>
<p>Stellarium has multiple sky cultures - see the constellations from the traditions of Polynesian, Inuit, Navajo, Korean, Lakota, Egyptian and Chinese astronomers, as well as the traditional Western constellations.</p>
<p xml:lang="ar">ستيلاريوم لديه ثقافتان للسماء, الأولى هي رؤية المجموعات النجمية من خلال التقاليد البولينيزية, الاسكيمو, الكورية, المصرية, والفلك الصيني, والثانية هي رؤية المجموعات النجمية من خلال الطريقة التقليدية الغربية</p>
<p xml:lang="be">Stellarium падтрымлівае розныя зорныя культуры, можна паглядзець на сузор'і ў традыцыях палінэзійскіх, інуіцкіх, навахскіх, карэйскіх, лакоцкіх, эґіпэцкіх і кітайскіх астраномаў, а таксама традыцыйныя заходнія сузор'і.</p>
Expand Down Expand Up @@ -288,6 +292,8 @@
<p xml:lang="tr">Stellariumda birçok gökyüzü kültürü vardır. Mısır, Çin ve diğer eski kültürlerin gökyüzü bilgileri bulunduğu gibi bunun yanında modern batı gökyüzü bilgileri de bulunur.</p>
<p xml:lang="uk">У Stellarium передбачено можливість спостерігати за декількома картинами зоряного неба: ви можете побачити його таким, яким його собі уявляли полінезійці, інуїти, навахо, корейці, лакота, єгиптяни та китайці, а також ознайомитися із традиційними західноєвропейськими сузір’ями.</p>
<p xml:lang="vi">Stellarium có nhiều nền văn hóa trên bầu trời - xem các chòm sao từ các truyền thống của các nhà thiên văn học người Polynesia, Inuit, Navajo, Hàn Quốc, Lakota, Ai Cập và Trung Quốc, cũng như những chòm sao truyền thống phương Tây.</p>
<p xml:lang="zh-HK">Stellarium具有多個天空文化 - 從 波利尼西亞, 因紐特人, 納瓦霍, 韓國, 拉科塔, 埃及和中國的天文學家, 以及傳統的西方星座看到星座的傳統.</p>
<p xml:lang="zh-TW">Stellarium具有多個天空文化 - 從 波利尼西亞, 因紐特人, 納瓦霍, 韓國, 拉科塔, 埃及和中國的天文學家, 以及傳統的西方星座看到星座的傳統.</p>
<p>It is also possible to visit other planets in the solar system - see what the sky looked like to the Apollo astronauts, or what the rings of Saturn looks like from Titan.</p>
<p xml:lang="ar">من الممكن زيارة كواكب أخرى في النظام الشمسي - يمكنك رؤية كيف بدت السماء لرواد أبولو, أو يمكنك رؤية كيف تبدو حلقات زحل من قمر تيتان</p>
<p xml:lang="be">Таксама магчыма наведаць іншыя плянэты сонечнай сыстэмы: пабачыць неба, як яго бачылі касманаўты місіі «Апола», ці як выглядаюць кольцы Сатурна з Тытана.</p>
Expand Down Expand Up @@ -327,6 +333,8 @@
<p xml:lang="tr">Güneş sistemindeki diğer gezegenleri de ziyaret etmek mümkün - Apollo astonotlarının gök yüzünü nasıl gördüklerini görün ya da Satürn halkalarının Titan'dan nasıl göründüğüne bakın.</p>
<p xml:lang="uk">Також передбачено можливість «відвідання» інших планет Сонячної системи: ви зможете спостерігати небо таким, яким його бачили астронавти «Аполлонів», або побачити кільця Сатурна з Титана.</p>
<p xml:lang="vi">Nó thì cũng có thể dùng để viếng thăm các hành tinh khác trong hệ Mặt trời - Xem những gì trên bầu trời như các phi hành gia tàu Apollo từng thấy, hoặc những chiếc vòng của Thổ Tinh trông như thế nào khi nhìn từ Titan.</p>
<p xml:lang="zh-HK">它也可能前往在太陽系其他行星 - 看阿波羅太空人在月球上看到的星空, 還有在泰坦(土星衛星)上看土星環.</p>
<p xml:lang="zh-TW">它也可能前往在太陽系其他行星 - 看阿波羅太空人在月球上看到的星空, 還有在泰坦(土星衛星)上看土星環.</p>
</description>
<url type="homepage">http://www.stellarium.org/</url>
<url type="bugtracker">https://bugs.launchpad.net/stellarium</url>
Expand Down
19 changes: 17 additions & 2 deletions data/stellarium.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,13 @@ GenericName[sv]=Skrivbordsplanetarium
GenericName[ta]=கணிப்பொறி கோளரங்கம்
GenericName[tg]=Планетариуми Мизи Корӣ
GenericName[th]=ท้องฟ้าจำลองบนเดสก์ท็อป
GenericName[tl]=Planetaryum para sa desktop
GenericName[tr]=Masaüstü Yıldız Evi
GenericName[ug]=ئۈستەلئۈستى رەسەتخانىسى
GenericName[uk]=Настільний планетарій
GenericName[vi]=Ngắm sao trên Màn hình máy tính
GenericName[zh_CN]=桌面天文馆
GenericName[zh_HK]=桌面上的星象館
GenericName[zh_TW]=桌面星象儀
Exec=stellarium
Icon=stellarium
Expand Down Expand Up @@ -196,6 +198,7 @@ Comment[fr]=Un planétarium interactif
Comment[ga]=Pláinéadlann
Comment[gd]=Amharc-lann nam planaidean
Comment[gl]=Planetario
Comment[he]=פלנטריום
Comment[hr]=Planetarij
Comment[hu]=Planetárium
Comment[hy]=Մոլորակացույց
Expand Down Expand Up @@ -229,12 +232,13 @@ Comment[sv]=Planetarium
Comment[ta]=கோளரங்கம்
Comment[tg]=Planetarium
Comment[th]=ท้องฟ้าจำลอง
Comment[tl]=planetaryum
Comment[tr]=Planetarium
Comment[ug]=Planetarium
Comment[uk]=Планетарій
Comment[vi]=Mô hình vũ trụ
Comment[zh_CN]=天文馆
Comment[zh_HK]=天文館
Comment[zh_HK]=星象館
Comment[zh_TW]=天文館
Keywords=astronomy;planetarium;
Expand Down Expand Up @@ -262,6 +266,7 @@ Name[fi]=Avaa ikkunassa
Name[fr]=Ouvrir dans une fenêtre
Name[gd]=Fosgail ann an uinneag
Name[gl]=Abrir en fiestra
Name[he]=פתח בחלון
Name[hu]=Megjelenítés ablakban
Name[hy]=Բացել պատուհանում
Name[id]=Buka dalam tampilan layar Jendela
Expand All @@ -285,10 +290,13 @@ Name[sr]=Отвори у прозору
Name[sv]=Öppna i nytt fönster
Name[ta]=புது சாரளத்தில் திற
Name[th]=เปิดแบบหน้าต่าง
Name[tl]=Buksan sa window
Name[tr]=Pencere içinde Aç
Name[uk]=Відкрити у вікні
Name[vi]=Mở ở chế độ cửa sổ
Name[zh_CN]=在窗口中打开
Name[zh_HK]=開啟視窗模式
Name[zh_TW]=開啟視窗模式
Exec=stellarium -f no
[Desktop Action Fullscreen]
Expand All @@ -313,6 +321,7 @@ Name[fi]=Avaa koko näytön tilassa
Name[fr]=Ouvrir en plein écran
Name[gd]=Fosgail sa mhodh làn-sgrìn
Name[gl]=Abrir en pantalla completa
Name[he]=פתח במסך מלא
Name[hu]=Megnyitás teljes képernyős módban
Name[hy]=Բացել լիէկրան
Name[id]=Buka dalam tampilan layar Penuh
Expand All @@ -338,10 +347,12 @@ Name[sv]=Öppna i helskärmsläge
Name[ta]=முழுத்திரையில் திற
Name[tg]=Кушодан дар экрани васеъ
Name[th]=เปิดแบบเต็มจอ
Name[tl]=Buksan ng buong screen
Name[tr]=Tam ekran olarak aç
Name[uk]=Відкрити у повноекранному режимі
Name[vi]=Mở toàn màn hình
Name[zh_CN]=在全凭模式下打开
Name[zh_HK]=開啟全螢幕模式
Name[zh_TW]=以全螢幕開啟
Exec=stellarium -f yes
Expand All @@ -351,9 +362,10 @@ Name[ar]=افتح في وضع التصحيح
Name[az]=Tərtibatçı rejimində aç
Name[be]=Адкрыць у рэжыме адладжваньня
Name[bn]=ডিবাগ মোডে চালু
Name[bs]=Otvori u debug modu
Name[ca]=Obrir en mode depuració
Name[cs]=Otevřít v ladícím režimu
Name[de]=Im Debug-Modus öffnen
Name[de]=Im Fehlersuchmodus öffnen
Name[el]=Άνοιξε σε λειτουργία εξάλειψης σφαλμάτων
Name[en_CA]=Open in debug mode
Name[en_GB]=Open in debug mode
Expand Down Expand Up @@ -382,7 +394,10 @@ Name[sr]=Отвори у режиму прочишћавања
Name[sv]=Öppna i debugläge
Name[ta]=பிழை நீக்கியில் திற
Name[th]=เปิดแบบแก้จุดบกพร่อง
Name[tl]=Buksan sa debug mode
Name[tr]=Hata ayıklama modunda aç
Name[uk]=Відкрити у режимі діагностики
Name[zh_CN]=以 debug 模式打开
Name[zh_HK]=開啟測試模式
Name[zh_TW]=開啟測試模式
Exec=stellarium --dump-opengl-details
Loading

0 comments on commit addb661

Please sign in to comment.