[vlmc-devel] commit: CMakeLists.txt: Introduced new variables, tokens and refactored code. (Rohit Yadav )

git at videolan.org git at videolan.org
Wed Sep 22 21:39:10 CEST 2010


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Thu Sep 23 01:25:46 2010 +0530| [c94e4bb4d214a286494b6dab07a267209bc89553] | committer: Rohit Yadav 

CMakeLists.txt: Introduced new variables, tokens and refactored code.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c94e4bb4d214a286494b6dab07a267209bc89553
---

 CMakeLists.txt |   49 ++++++++++++++++++++++++++++++-------------------
 1 files changed, 30 insertions(+), 19 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8adae1d..0e00856 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,30 +5,42 @@
 #
 
 #Project Info
+SET(PROJECT_NAME_SHORT   "VLMC")
+SET(PROJECT_NAME_LONG    "VideoLAN Movie Creator")
+SET(PROJECT_DESCRIPTION  "VLMC (VideoLAN Movie Creator) is a cross-platform, non-linear video editing software based on the VLC Media Player.")
+SET(PROJECT_COPYRIGHT    "Copyright (C) 2008-2010 VideoLAN")
+SET(PROJECT_CONTACT      "vlmc-devel at videolan.org")
+SET(PROJECT_VENDOR       "VLMC Team")
+SET(ORG_WEBSITE          "videolan.org")
+
+STRING(TOLOWER ${PROJECT_NAME_SHORT} PROJECT_NAME_SHORT_LOWER)
+PROJECT(${PROJECT_NAME_SHORT_LOWER}-${PROJECT_VERSION})
+
+# version: 0.2.0
 SET(CPACK_PACKAGE_VERSION_MAJOR "0")
 SET(CPACK_PACKAGE_VERSION_MINOR "2")
 SET(CPACK_PACKAGE_VERSION_PATCH "0")
 SET(COMPLETE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
+SET(PROJECT_VERSION ${COMPLETE_VERSION})
 
 # Codename of the Project :-)
-SET(RELEASE_NAME "alpha")
-# version: 0.0.1
-SET(PROJECT_VERSION ${COMPLETE_VERSION})
-#Name of the project
-SET(PROJECT_NAME_SHORT "VLMC")
-SET(PROJECT_NAME_LONG "VideoLAN Movie Creator")
-STRING(TOLOWER ${PROJECT_NAME_SHORT} PROJECT_NAME_SHORT_LOWER)
-PROJECT(${PROJECT_NAME_SHORT_LOWER}-${PROJECT_VERSION})
-SET(CONTRIBS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/contribs)
+SET(CODENAME "alpha")
+
+# System Information
 SITE_NAME(HOSTNAME)
+SET(SYSNAME ${CMAKE_SYSTEM})
 
-#CMake Settings
+# CMake Settings
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
 SET(CMAKE_COLOR_MAKEFILE ON)
 SET(CMAKE_VERBOSE_MAKEFILE OFF)
-# set path to additional CMake modules
+
+# Set path to additional CMake modules
 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
 
+# Path to contribs
+SET(CONTRIBS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/contribs)
+
 # Configuring build type
 IF(NOT CMAKE_BUILD_TYPE)
     SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING
@@ -49,7 +61,7 @@ ENDIF(WIN32)
 
 # Optionally allow embedding libvlc into the binary as
 # VLMC requires libVLC
-#SET (WITH_LIBVLC FALSE CACHE BOOL "Compile LibVLC in VLMC")
+# SET (WITH_LIBVLC FALSE CACHE BOOL "Compile LibVLC in VLMC")
 
 IF (UNIX)
     SET(WITH_PROFILING FALSE CACHE BOOL "Build with profiling support" )
@@ -67,7 +79,7 @@ ELSE(NOT APPLE)
     SET(WITH_CRASHHANDLER_GUI FALSE CACHE BOOL "Disable crash handler gui...")
     SET(WITH_CRASHHANDLER False CACHE BOOL "Disable the crash handler")
     SET(CMAKE_BUILD_TYPE "Release")
-    SET(CMAKE_OSX_ARCHITECTURES i386 ppc ) # Make a universal binary
+    SET(CMAKE_OSX_ARCHITECTURES i386) # Make a universal binary
 #   SET(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}")
 ENDIF(NOT APPLE)
 
@@ -202,11 +214,10 @@ SET(CPACK_PACKAGE_NAME ${PROJECT_NAME_SHORT})
 SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
 # Force package name
 SET(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME})
-SET(CPACK_PACKAGE_DESCRIPTION "VideoLan Movie Creator")
-SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY  
-"VLMC \n VideoLAN Movie Creator is a cross-platform, non-linear video editing software based on the VLC Media Player.")
-SET(CPACK_PACKAGE_VENDOR "VLMC Team")
-SET(CPACK_PACKAGE_CONTACT "vlmc-devel at videolan.org")
+SET(CPACK_PACKAGE_DESCRIPTION ${PROJECT_NAME_LONG})
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_NAME_SHORT} \n ${PROJECT_DESCRIPTION}")
+SET(CPACK_PACKAGE_VENDOR ${PROJECT_VENDOR})
+SET(CPACK_PACKAGE_CONTACT ${PROJECT_CONTACT})
 SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
 SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
 SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
@@ -219,7 +230,7 @@ IF(WIN32 AND NOT UNIX)
     SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} VLMC")
     SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\vlmc.org")
     SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\vlmc.org")
-    SET(CPACK_NSIS_CONTACT "vlmc-devel at vlmc.org")
+    SET(CPACK_NSIS_CONTACT ${PROJECT_CONTACT})
     SET(CPACK_NSIS_MODIFY_PATH ON)
     #SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "  !include \\\"${CMAKE_SOURCE_DIR}\\\\win_build\\\\extra.nsh\\\"")
 ELSE(WIN32 AND NOT UNIX)



More information about the Vlmc-devel mailing list