X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=INSTALL.cmake;h=3ff0a73da104cc7f0c4387c73690df2db44bc996;hb=3e8bf5477dc88477c19bc3ce5d729f9bbb77cc7b;hp=e100baacca5a499b526695048d4a40faa7eceb15;hpb=970b240cb02816feafafe600de186968e1aadf25;p=lyx.git diff --git a/INSTALL.cmake b/INSTALL.cmake index e100baacca..3ff0a73da1 100644 --- a/INSTALL.cmake +++ b/INSTALL.cmake @@ -17,10 +17,10 @@ Building LyX with CMake Windows : set PATH=\bin;%PATH% When you wanna run LyX without installing from a out-of-source - build directory you have to set the environment variable LYX_DIR_20x + build directory you have to set the environment variable LYX_DIR_21x and it must point to the lib dir in the source tree. - Linux/Unix: export LYX_DIR_20x=/lib - Windows : set LYX_DIR_20x=\lib + Linux/Unix: export LYX_DIR_21x=/lib + Windows : set LYX_DIR_21x=\lib Windows specific @@ -74,6 +74,10 @@ Building out-of-source select this folder when using CMake's GUI, cmake-gui, or go into this folder when you call cmake from the shell. + Before performing an out-of-source build, ensure that all CMake generated + in-source build information is removed from the source directory, + e.g., CMakeFiles directory, CMakeCache.txt. + Using cmake @@ -86,24 +90,24 @@ Using cmake Here some examples, assuming the build folder is in the same folder as the source tree: * Makefiles on Linux - cmake ../trunk/development/cmake + cmake ../trunk * Project files for QtCreator: - Open the trunk/development/cmake/CMakeLists.txt file and select the build folder + Open the trunk/CMakeLists.txt file and select the build folder or create the files in the command line using the -G"CodeBlocks *" option, eg - cmake ../trunk/development/cmake -G"CodeBlocks - Unix Makefiles" + cmake ../trunk -G"CodeBlocks - Unix Makefiles" * Project files for Xcode - cmake ../trunk/development/cmake -GXcode + cmake ../trunk -GXcode * Project files for Visual Studio 10 - cmake ..\trunk\development\cmake -G"Visual Studio 10" + cmake ..\trunk -G"Visual Studio 10" * NMake files for Visual Studio - cmake ..\trunk\development\cmake -G"NMake Makefiles" + cmake ..\trunk -G"NMake Makefiles" * Makefiles for MinGW - cmake ..\trunk\development\cmake -G"MinGW Makefiles" + cmake ..\trunk -G"MinGW Makefiles" Daily work: @@ -128,17 +132,17 @@ Build options Options could be passed by the -D prefix when running cmake. Available options will be listed on each cmake run. - Here the options with their default value: + -Dhelp=1 lists all available options: # Available on all systems/compilers -- LYX_CPACK = OFF : Use the CPack management (Implies LYX_INSTALL option) -- LYX_INSTALL = OFF : Build install projects/rules (implies a bunch of other options) - -- LYX_NLS = OFF : Use nls + -- LYX_NLS = ON : Use nls -- LYX_ASPELL = OFF : Require aspell -- LYX_ENCHANT = OFF : Require Enchant -- LYX_HUNSPELL = OFF : Require Hunspell -- LYX_DEVEL_VERSION = OFF : Build developer version - -- LYX_RELEASE = ON : Build release version, build debug when disabled + -- LYX_RELEASE = OFF : Build release version, build debug when disabled -- LYX_PACKAGE_SUFFIX = ON : Use version suffix for packaging -- LYX_PCH = OFF : Use precompiled headers -- LYX_MERGE_FILES = OFF : Merge source files into one compilation unit @@ -271,6 +275,24 @@ Xcode/Mac +Updating the translations +---------- + + Read README.localization for information on the translation process. + Here we list only the cmake specific part. As with the autotools build + system the translations are only updated on demand. + + - Update .po files and create .gmo files (does not touch the source tree): + make translations + + - Copy the updated .po files into the source tree for committing: + make update-po + + - Update the layouttranslations file in the source tree: + make layouttranslations1 + + + Packaging ----------