+
# This file is part of LyX, the document processor.
# Licence details can be found in the file COPYING.
#
# is checked
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
+set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
option(lyxinstall "Build install projects/rules" ON)
+
# Supress regeneration
set(CMAKE_SUPPRESS_REGENERATION TRUE)
message(STATUS "")
message(STATUS "All *.cpp files of a project are merged into two files, disable with -Dmerge=0")
message(STATUS "")
+ add_definitions(-DLYX_MERGED_BUILD)
else()
set(merge 0 CACHE TYPE STRING FORCE)
set(MERGE_FILES 0 CACHE TYPE STRING FORCE)
set(support_headers ${support_headers} ${support_mythes_headers} ${support_linkback_headers})
add_library(support ${library_type} ${support_sources} ${support_headers} ${dont_merge})
else()
+ # GCC bug: gcc resolves ::bind as boost::bind
+ list(REMOVE_ITEM support_sources ${TOP_SRC_DIR}/src/support/socktools.cpp)
+ set(support_separate ${TOP_SRC_DIR}/src/support/socktools.cpp)
lyx_const_touched_files(_allinone support_sources)
- set(depends_moc ${support_headers})
+ set(depends_moc ${support_headers})
set_source_files_properties(_allinone_const.C
PROPERTIES OBJECT_DEPENDS "${depends_moc}")
set_source_files_properties(_allinone_touched.C
PROPERTIES OBJECT_DEPENDS "${depends_moc}")
- add_library(support ${library_type} ${_allinone_files}
+ add_library(support ${library_type} ${_allinone_files} ${support_separate}
${support_mythes_sources} ${support_linkback_sources} ${support_headers} ${dont_merge})
endif()
/////////////////////////////////////////////////////////////////////
-char const * languages[] =
+char const * languages_supported[] =
{ "no language", "ABAP", "ACSL", "Ada", "ALGOL", "Assembler", "Awk", "bash", "Basic", "C",
"C++", "Caml", "Clean", "Cobol", "Comal 80", "command.com", "Comsol", "csh", "Delphi",
"Eiffel", "Elan", "erlang", "Euphoria", "Fortran", "Gnuplot", "Haskell", "HTML", "IDL", "inform",
connect(bypassCB, SIGNAL(clicked()),
this, SLOT(setListingsMsg()));
- for (int n = 0; languages[n][0]; ++n)
+ for (int n = 0; languages_supported[n][0]; ++n)
languageCO->addItem(qt_(languages_gui[n]));
for (int n = 0; font_styles[n][0]; ++n)
string GuiListings::construct_params()
{
- string language = languages[qMax(0, languageCO->currentIndex())];
+ string language = languages_supported[qMax(0, languageCO->currentIndex())];
string dialect;
string const dialect_gui = fromqstr(dialectCO->currentText());
if (dialectCO->currentIndex() > 0) {
// 0 is "no dialect"
int default_dialect = 0;
dialectCO->addItem(qt_("No dialect"));
- string const language = languages[index];
+ string const language = languages_supported[index];
for (size_t i = 0; i != nr_dialects; ++i) {
if (language == dialects[i].language) {
// set default values
listingsTB->setPlainText(
qt_("Input listing parameters on the right. Enter ? for a list of parameters."));
- languageCO->setCurrentIndex(findToken(languages, "no language"));
+ languageCO->setCurrentIndex(findToken(languages_supported, "no language"));
dialectCO->setCurrentIndex(0);
floatCB->setChecked(false);
placementLE->clear();
} else {
language = arg;
}
- int n = findToken(languages, language);
+ int n = findToken(languages_supported, language);
if (n >= 0) {
languageCO->setCurrentIndex(n);
in_gui = true;