Commit Graph

91 Commits

Author SHA1 Message Date
Peter Kümmel
18305961ed cmake: set default install path, add py-compile for lyx2lyx, from Kornel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28001 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 19:13:20 +00:00
Peter Kümmel
afe522b1f6 Kornel
New files:
        development/cmake/doc/ReplaceValues.pl
                perl-script to substitute words (defined in the cmd-line) with their actual
                        values
        development/cmake/doc/CMakefiles.txt
                convert and install files .lyx and .txt-files from the lib/doc-directory
	development/cmake/src/client/CMakeLists.txt
		create and install lyxclient
	
Changed:
        development/cmake/Install.cmake
                include the new doc-directory
                remove installation of .lyx from the doc-directory. Will be installed in
                        development/cmake/doc/CMakefiles.txt
        development/cmake/Install.cmake
                changed macro lyx_install() to not insert '.' into the globbing-expression
                        automatically. We need sometimes also dotless files.
	development/cmake/src/CMakefiles.txt
		Added subdirectory client to create and install lyxclient on unix-like systems


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27978 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-03 10:53:24 +00:00
Peter Kümmel
510c918c6c Kornel's cmake install changes:
New files:
        Directories:
		development/cmake/po
		development/cmake/man
        Files:
		development/cmake/po/CMakeLists.txt
			Creates lyx.pot and *.gmo-files;
			Installs ${_lang} as ${LYX_ABS_INSTALLED_DATADIR}/${LYX_LOCALEDIR}/${_lang}/LC_MESSAGES/lyx.mo
		development/cmake/man/CMakeLists.txt
			Handling of lyx-manuals.
		development/cmake/modules/FindLyXGettext.cmake
			Original: (GNU) FindGettext.cmake
			Changed the installation subdirectory of .gmo-files.
			Previously installing into "/usr/local/share/lyx2.0" led
				   to e.g. /usr/local/share/lyx2.0/share/locale/de/LC_MESSAGES/lyx.mo
				   now     /usr/local/share/lyx2.0/locale/de/LC_MESSAGES/lyx.mo
Changes:
        development/cmake/Install.cmake
                macro lyx_install _parent_src_dir
                        searches now through directories specified as simple regular expression.
                        Until now we had to specify explicitly each directory for each language.
                Mode of the DESTINATION/lyx2lyx is now corect
                Installation of the .gmo files

	development/cmake/config.h.cmake:
		Changed some #cmakedefine to #define, because config_file() did not
        	substitute the desired values in config.h.
        	Some typos corrected (TOP_SRCDIR -> TOP_SRC_DIR)

        development/cmake/configCompiler.h.cmake
                Removed doubly defined ENABLE_NLS, HAVE_LC_MESSAGES
                Installation directory still hardcoded, users need to to set environment
                variable LYX_LOCALEDIR to get the corect translations.

	development/cmake/CMakeLists.txt
		Setting correct values to LYX_ABS_INSTALLED_DATADIR,
        		LYX_ABS_INSTALLED_LOCALEDIR, LYX_ABS_TOP_SRCDIR.
			Now the lyx-executable searches on the installed places for it's data,
        		so no need to set environment anymore.
		New variable: LYX_LOCALEDIR. We need it later in FindLyXGettext.cmake,
		    	because we cannot use the absolute path LYX_ABS_INSTALLED_LOCALEDIR.
			(We need relative path when packaging to different root-directory).
                Use of module FindLyXGettext.cmake: This is a modified version
		       	of (GNU) FindGettext.cmake
                Include the new development/cmake/po directory
		Include the new development/cmake/man directory

        development/cmake/po/CMakeLists.txt
                Creation of lyx.pot and apropriate .gmo files
                Creating lyx.pot file
                        I had to use perl to simulate the unix "cat" command. Maybe Jose can
                        write the corect statement in python





git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27973 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-28 13:35:29 +00:00
Peter Kümmel
b581607b55 cmake: gettext patch from Kornel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27931 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 09:25:55 +00:00
Peter Kümmel
1327b056b1 cmake: fix gcc include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27834 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-10 17:19:56 +00:00
Peter Kümmel
2a0103cccd cmake: fix linux install path
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27829 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-09 20:14:59 +00:00
Stephan Witt
aab943d87e using cmake 2.6 on mac include escape has to be changed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 12:23:28 +00:00
Enrico Forestieri
bc72d3fc58 Automate setting of LYX_DIR_XXx and LYX_USERDIR_XXx environment variable names.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25898 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-26 10:45:38 +00:00
Peter Kümmel
bdde87d39f disable warning for msvc6 infected developers (scope of for(...,,) declarartions)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25455 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 09:50:29 +00:00
Abdelrazak Younes
4241db7c0d CMake external intl unconditionally.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25205 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 12:10:15 +00:00
Abdelrazak Younes
258b8a40c5 fix cmake/mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25195 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-08 18:45:51 +00:00
Peter Kümmel
c33b30fd84 cmake: use 2.4 behavior also for cmake 2.6
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24926 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 21:22:36 +00:00
Peter Kümmel
69f1cd1e50 cmake: don't forget arg for build type
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-20 12:18:22 +00:00
Peter Kümmel
5844446857 external libintl: fix nls compiler error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24382 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-20 12:09:56 +00:00
Peter Kümmel
f7d5c40b6c MinGW is too slow with O3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24348 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-19 12:00:53 +00:00
Peter Kümmel
eb987d20db MinGW fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-19 10:17:40 +00:00
Peter Kümmel
eaa86aaaf7 cmake: verbose makefiles also for mingw
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24343 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-19 09:19:30 +00:00
Peter Kümmel
527d3ac174 cmake: skip configure checks only for msvc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24341 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-19 09:08:29 +00:00
Peter Kümmel
1500d274b4 cmake: use external libintl on windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-19 08:47:33 +00:00
Peter Kümmel
f6de6828ef cmake: also build with win32libs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 16:47:12 +00:00
Abdelrazak Younes
7650cbf9fd Fix CMake-2.6
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24258 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 13:57:54 +00:00
André Pönitz
976f4d891e remove unused defines QT_CLEAN_NAMESPACE and QT_GENUINE_STR
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23869 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 15:12:46 +00:00
Peter Kümmel
d0ee9f494d cmake: disable warning 4355
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21916 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 12:08:52 +00:00
Peter Kümmel
e80d447ad2 vld LyX/cmake integration
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21912 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 11:17:01 +00:00
Peter Kümmel
eec779b2c9 cmake: buffer msvc's compiler settings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21908 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 10:29:25 +00:00
Peter Kümmel
8b5c9ef568 time goes by
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21831 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 20:32:25 +00:00
Peter Kümmel
7346ca40a1 cmake: update version info. Is there a build system independent way?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21078 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 09:34:19 +00:00
Peter Kümmel
143dfdc9d3 cmake: fix broken pch support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21077 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 09:32:35 +00:00
André Pönitz
e7d203167a Change some .C -> .cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20789 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-06 16:23:02 +00:00
Abdelrazak Younes
9a8fd53e8f CMake: Supress regeneration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20096 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-06 09:18:40 +00:00
André Pönitz
055c95cc19 more cmake cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19873 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 20:47:42 +00:00
André Pönitz
83c9b040e7 cmake cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19871 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 19:54:42 +00:00
André Pönitz
b839dd33ae some attempt at cmake beautification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19862 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 17:07:02 +00:00
Peter Kümmel
091b334152 fix cmake build for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19803 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-26 08:51:47 +00:00
Peter Kümmel
f137d5bdad don't pollute the namespace with Qt macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19630 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-18 12:45:11 +00:00
Peter Kümmel
329d8d1332 update to new version.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19628 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-18 12:09:08 +00:00
Peter Kümmel
1feaf6c814 plosh output. We need a string for LYX_DATE
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19049 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-11 18:41:37 +00:00
Peter Kümmel
830fb29a15 so it could not be forgotten by me
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19048 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-11 18:33:54 +00:00
Stefan Schimanski
14af4831c4 * added MacOSX packaging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18558 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-29 14:06:35 +00:00
Peter Kümmel
3c4cfcbbdd cmake: initial install support, only copying files is working
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18176 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-02 20:59:48 +00:00
Abdelrazak Younes
38f9e35ab1 fix Cmake for the .C -> .cpp changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18034 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 12:06:02 +00:00
Peter Kümmel
5e1404b1f7 cmake: file renaming -> be ready for any and everything
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17921 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-23 16:52:27 +00:00
Peter Kümmel
bc448a7ef5 cmake : remember command line options merge and WALL
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17819 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-15 13:09:34 +00:00
Peter Kümmel
e76303e727 cmake: force verbose make files, add output for disable wall
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17797 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-13 13:46:59 +00:00
Peter Kümmel
afd9d1b40a cmake: remove warning about const const, don't use pchs when compiling merged
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17721 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-04 19:07:43 +00:00
Peter Kümmel
6db20c6d9d cmake: fix C&P error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17620 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 20:54:37 +00:00
Peter Kümmel
339e505587 cmake: force to new build type when reconfiguring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17616 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 19:23:57 +00:00
Peter Kümmel
5fc2e3efc8 cmake: add shared library support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17599 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-27 18:26:36 +00:00
Peter Kümmel
d44b37a373 cmake: show full command
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17581 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 20:21:41 +00:00
Peter Kümmel
ff0633599b cmake: force new build type
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17577 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 18:50:41 +00:00