summaryrefslogtreecommitdiff
path: root/indra/cmake/BuildPackagesInfo.cmake
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2014-11-21 18:09:12 -0500
committerOz Linden <oz@lindenlab.com>2014-11-21 18:09:12 -0500
commit680194deaf7a35caaa629abc16e886d71baff636 (patch)
tree187ab1b92cf86e320f3a6a0f5d8237546b98798e /indra/cmake/BuildPackagesInfo.cmake
parent6df6aef62176328c3b0fafa43fd611d4e25ef35c (diff)
automate keeping the About SL -> Licenses tab correct
Diffstat (limited to 'indra/cmake/BuildPackagesInfo.cmake')
-rw-r--r--indra/cmake/BuildPackagesInfo.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/cmake/BuildPackagesInfo.cmake b/indra/cmake/BuildPackagesInfo.cmake
new file mode 100644
index 0000000000..0f574ee39a
--- /dev/null
+++ b/indra/cmake/BuildPackagesInfo.cmake
@@ -0,0 +1,10 @@
+# -*- cmake -*-
+# Construct the version and copyright information based on package data.
+include(Python)
+
+add_custom_command(OUTPUT packages-info.txt
+ COMMENT Generating packages-info.txt for the about box
+ MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/../autobuild.xml
+ DEPENDS ${CMAKE_SOURCE_DIR}/../scripts/packages-formatter.py
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/../scripts/packages-formatter.py > packages-info.txt
+ )