diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-05-17 09:58:27 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-05-17 09:58:27 (GMT) |
commit | 7bcf8e9a379ec0599160e5562f07b93f8fb9557a (patch) | |
tree | 6b8eea084053c1d891b3c9a5c1e993203902718a /addon | |
parent | 2e39e5c7c1427ac6b24c64b7ef01be8d5a20092b (diff) | |
download | Doxygen-7bcf8e9a379ec0599160e5562f07b93f8fb9557a.zip Doxygen-7bcf8e9a379ec0599160e5562f07b93f8fb9557a.tar.gz Doxygen-7bcf8e9a379ec0599160e5562f07b93f8fb9557a.tar.bz2 |
Removed old build files, added install targets and other options
Diffstat (limited to 'addon')
-rw-r--r-- | addon/doxmlparser/src/Makefile.in | 15 | ||||
-rw-r--r-- | addon/doxmlparser/src/doxmlparser.pro.in | 27 | ||||
-rw-r--r-- | addon/doxyapp/CMakeLists.txt | 3 | ||||
-rw-r--r-- | addon/doxyapp/Makefile.in | 19 | ||||
-rw-r--r-- | addon/doxyapp/doxyapp.pro.in | 12 | ||||
-rw-r--r-- | addon/doxysearch/CMakeLists.txt | 16 | ||||
-rw-r--r-- | addon/doxysearch/Makefile.in | 34 | ||||
-rw-r--r-- | addon/doxysearch/doxyindexer.pro.in | 12 | ||||
-rw-r--r-- | addon/doxysearch/doxysearch.pro.in | 12 | ||||
-rw-r--r-- | addon/doxywizard/CMakeLists.txt | 62 | ||||
-rw-r--r-- | addon/doxywizard/Makefile.in | 40 | ||||
-rw-r--r-- | addon/doxywizard/doxywizard.pro.in | 40 |
12 files changed, 66 insertions, 226 deletions
diff --git a/addon/doxmlparser/src/Makefile.in b/addon/doxmlparser/src/Makefile.in deleted file mode 100644 index 47d20c2..0000000 --- a/addon/doxmlparser/src/Makefile.in +++ /dev/null @@ -1,15 +0,0 @@ -all clean depend: Makefile.doxmlparser - $(MAKE) -f Makefile.doxmlparser $@ - -distclean: clean - $(RM) -rf Makefile.doxmlparser doxmlparser.pro Makefile obj - -realclean: distclean - -tmake: - $(ENV) $(PERL) $(TMAKE) doxmlparser.pro >Makefile.doxmlparser - -Makefile.doxmlparser: doxmlparser.pro - $(ENV) $(PERL) $(TMAKE) doxmlparser.pro >Makefile.doxmlparser - -install: diff --git a/addon/doxmlparser/src/doxmlparser.pro.in b/addon/doxmlparser/src/doxmlparser.pro.in deleted file mode 100644 index 2bbf326..0000000 --- a/addon/doxmlparser/src/doxmlparser.pro.in +++ /dev/null @@ -1,27 +0,0 @@ -TEMPLATE = lib.t -CONFIG = console staticlib warn_on $extraopts -HEADERS = basehandler.h mainhandler.h \ - compoundhandler.h sectionhandler.h \ - memberhandler.h paramhandler.h \ - dochandler.h linkedtexthandler.h \ - debug.h graphhandler.h stringimpl.h \ - loamhandler.h -SOURCES = mainhandler.cpp \ - compoundhandler.cpp sectionhandler.cpp \ - memberhandler.cpp paramhandler.cpp \ - dochandler.cpp linkedtexthandler.cpp \ - basehandler.cpp debug.cpp graphhandler.cpp \ - loamhandler.cpp -unix:LIBS += -L../../../lib -lqtools -win32:INCLUDEPATH += . -win32-mingw:LIBS += -L../../../lib -lqtools -win32-msvc:LIBS += qtools.lib shell32.lib -win32-msvc:TMAKE_LFLAGS += /LIBPATH:....\\..\lib -win32-borland:LIBS += qtools.lib doxycfg.lib shell32.lib -win32-borland:TMAKE_LFLAGS += -L..\..\..\lib -win32:TMAKE_CXXFLAGS += -DQT_NODLL -DESTDIR = ../../../lib -OBJECTS_DIR = ../../../objects/doxmlparser -TARGET = doxmlparser -INCLUDEPATH += ../../../qtools ../include - diff --git a/addon/doxyapp/CMakeLists.txt b/addon/doxyapp/CMakeLists.txt index e2e6841..a039762 100644 --- a/addon/doxyapp/CMakeLists.txt +++ b/addon/doxyapp/CMakeLists.txt @@ -20,6 +20,9 @@ vhdlparser ${ICONV_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${SQLITE3_LIBRARIES} +${EXTRA_LIBS} ) +install(TARGETS doxyapp DESTINATION bin) + endif() diff --git a/addon/doxyapp/Makefile.in b/addon/doxyapp/Makefile.in deleted file mode 100644 index d0629d9..0000000 --- a/addon/doxyapp/Makefile.in +++ /dev/null @@ -1,19 +0,0 @@ - -all clean depend distclean: Makefile.doxyapp - $(MAKE) -f Makefile.doxyapp $@ - -distclean: clean - $(RM) -rf Makefile doxyapp.pro Makefile.doxyapp - -realclean: distclean - -tmake: - $(ENV) $(PERL) "$(TMAKE)" doxyapp.pro >Makefile.doxyapp - -strip: - strip doxyapp - -Makefile.doxyapp: doxyapp.pro - $(ENV) $(PERL) "$(TMAKE)" doxyapp.pro >Makefile.doxyapp - -install: diff --git a/addon/doxyapp/doxyapp.pro.in b/addon/doxyapp/doxyapp.pro.in deleted file mode 100644 index 207967d..0000000 --- a/addon/doxyapp/doxyapp.pro.in +++ /dev/null @@ -1,12 +0,0 @@ -TEMPLATE = app.t -CONFIG = console warn_on debug -HEADERS = -SOURCES = doxyapp.cpp -LIBS += -L../../lib -ldoxygen -lqtools -lmd5 -ldoxycfg -lvhdlparser -lpthread -liconv -DESTDIR = -OBJECTS_DIR = ../../objects/doxyapp -TARGET = ../../bin/doxyapp -INCLUDEPATH += ../../qtools ../../src -DEPENDPATH += ../../src -TARGETDEPS = ../../lib/libdoxygen.a - diff --git a/addon/doxysearch/CMakeLists.txt b/addon/doxysearch/CMakeLists.txt index 188d80b..e3511aa 100644 --- a/addon/doxysearch/CMakeLists.txt +++ b/addon/doxysearch/CMakeLists.txt @@ -1,24 +1,30 @@ if (build_search) find_package(Xapian REQUIRED) +find_package(ZLIB REQUIRED) include_directories( ${CMAKE_SOURCE_DIR}/qtools ${XAPIAN_INCLUDE_DIR} + ${ZLIB_INCLUDE_DIRS} ) add_executable(doxyindexer -doxyindexer.cpp + doxyindexer.cpp ) target_link_libraries(doxyindexer -${XAPIAN_LIBRARIES} -qtools + ${XAPIAN_LIBRARIES} + ${ZLIB_LIBRARIES} + qtools ) add_executable(doxysearch.cgi -doxysearch.cpp + doxysearch.cpp ) target_link_libraries(doxysearch.cgi -${XAPIAN_LIBRARIES} + ${XAPIAN_LIBRARIES} + ${ZLIB_LIBRARIES} ) +install(TARGETS doxyindexer doxysearch.cgi DESTINATION bin) + endif() diff --git a/addon/doxysearch/Makefile.in b/addon/doxysearch/Makefile.in deleted file mode 100644 index 7daafee..0000000 --- a/addon/doxysearch/Makefile.in +++ /dev/null @@ -1,34 +0,0 @@ - -all clean depend: Makefile.doxysearch Makefile.doxyindexer - $(MAKE) -f Makefile.doxysearch $@ - $(MAKE) -f Makefile.doxyindexer $@ - -distclean: clean - $(RM) -rf Makefile doxysearch.pro Makefile.doxysearch - $(RM) -rf Makefile doxyindexer.pro Makefile.doxyindexer - -tmake: - $(ENV) $(PERL) "$(TMAKE)" doxysearch.pro >Makefile.doxysearch - $(ENV) $(PERL) "$(TMAKE)" doxyindexer.pro >Makefile.doxyindexer - -strip: - strip doxysearch - -Makefile.doxysearch: doxysearch.pro - $(ENV) $(PERL) "$(TMAKE)" doxysearch.pro >Makefile.doxysearch - -Makefile.doxyindexer: doxyindexer.pro - $(ENV) $(PERL) "$(TMAKE)" doxyindexer.pro >Makefile.doxyindexer - -install: - $(INSTTOOL) -d $(INSTALL)/bin - $(INSTTOOL) -m 755 ../../bin/doxysearch.cgi $(INSTALL)/bin - $(INSTTOOL) -m 755 ../../bin/doxyindexer $(INSTALL)/bin - $(INSTTOOL) -d $(INSTALL)/$(MAN1DIR) - cat ../../doc/doxyindexer.1 | sed -e "s/DATE/$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > doxyindexer.1 - $(INSTTOOL) -m 644 doxyindexer.1 $(INSTALL)/$(MAN1DIR)/doxyindexer.1 - rm doxyindexer.1 - cat ../../doc/doxysearch.1 | sed -e "s/DATE/$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > doxysearch.1 - $(INSTTOOL) -m 644 doxysearch.1 $(INSTALL)/$(MAN1DIR)/doxysearch.1 - rm doxysearch.1 - diff --git a/addon/doxysearch/doxyindexer.pro.in b/addon/doxysearch/doxyindexer.pro.in deleted file mode 100644 index c84a2ac..0000000 --- a/addon/doxysearch/doxyindexer.pro.in +++ /dev/null @@ -1,12 +0,0 @@ -TEMPLATE = app.t -CONFIG = console warn_on static release -HEADERS = -SOURCES = doxyindexer.cpp -LIBS += -L../../lib -lxapian -lqtools -DESTDIR = -OBJECTS_DIR = ../../objects/doxyindexer -TARGET = ../../bin/doxyindexer -INCLUDEPATH += ../../qtools -DEPENDPATH += -TARGETDEPS = - diff --git a/addon/doxysearch/doxysearch.pro.in b/addon/doxysearch/doxysearch.pro.in deleted file mode 100644 index 702f5a4..0000000 --- a/addon/doxysearch/doxysearch.pro.in +++ /dev/null @@ -1,12 +0,0 @@ -TEMPLATE = app.t -CONFIG = console warn_on debug cgi -HEADERS = -SOURCES = doxysearch.cpp -LIBS += -lxapian -DESTDIR = -OBJECTS_DIR = ../../objects/doxysearch -TARGET = ../../bin/doxysearch.cgi -INCLUDEPATH += -DEPENDPATH += -TARGETDEPS = - diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt index a432081..30130af 100644 --- a/addon/doxywizard/CMakeLists.txt +++ b/addon/doxywizard/CMakeLists.txt @@ -7,18 +7,58 @@ include_directories( ${GENERATED_SRC} ) -add_definitions(-DQT_ARCH_X86_64 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII) +set(GENERATED_SRC_WIZARD ${GENERATED_SRC}/doxywizard) +file(MAKE_DIRECTORY ${GENERATED_SRC_WIZARD}) + +add_definitions(-DQT_ARCH_X86_64 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DUNICODE) set(QT_USE_QTXML TRUE) find_package(Qt4 REQUIRED) include(${QT_USE_FILE}) +# generate settings.h +file(GENERATE OUTPUT ${GENERATED_SRC_WIZARD}/settings.h +CONTENT "#ifndef SETTINGS_H +#define SETTINGS_H +#define USE_SQLITE3 ${sqlite3} +#define USE_LIBCLANG ${clang} +#define IS_SUPPORTED(x) \\ + ((USE_SQLITE3 && strcmp(\"USE_SQLITE3\",(x))==0) || \\ + (USE_LIBCLANG && strcmp(\"USE_LIBCLANG\",(x))==0) || \\ + 0) +#endif" ) +set_source_files_properties(${GENERATED_SRC_WIZARD}/settings.h PROPERTIES GENERATED 1) + +# generate version.cpp +file(GENERATE OUTPUT ${GENERATED_SRC_WIZARD}/version.cpp + CONTENT "char versionString[]=\"${VERSION}\";" +) +set_source_files_properties(${GENERATED_SRC_WIZARD}/version.cpp PROPERTIES GENERATED 1) + +# generate configdoc.cpp add_custom_command( -COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -wiz ${CMAKE_SOURCE_DIR}/src/config.xml > ${GENERATED_SRC}/configdoc.cpp -OUTPUT ${GENERATED_SRC}/configdoc.cpp +COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -wiz ${CMAKE_SOURCE_DIR}/src/config.xml > ${GENERATED_SRC_WIZARD}/configdoc.cpp +OUTPUT ${GENERATED_SRC_WIZARD}/configdoc.cpp ) -set_source_files_properties(${GENERATED_SRC}/configdoc.cpp PROPERTIES GENERATED 1) +set_source_files_properties(${GENERATED_SRC_WIZARD}/configdoc.cpp PROPERTIES GENERATED 1) -FLEX_TARGET(config_doxyw config_doxyw.l ${GENERATED_SRC}/config_doxyw.cpp COMPILE_FLAGS "-Pconfig_doxywYY") +if (qt_static) + set(CompilerFlags + CMAKE_CXX_FLAGS + CMAKE_CXX_FLAGS_DEBUG + CMAKE_CXX_FLAGS_RELEASE + CMAKE_CXX_FLAGS_MINSIZEREL + CMAKE_CXX_FLAGS_RELWITHDEBINFO + CMAKE_C_FLAGS + CMAKE_C_FLAGS_DEBUG + CMAKE_C_FLAGS_RELEASE + CMAKE_C_FLAGS_MINSIZEREL + CMAKE_C_FLAGS_RELWITHDEBINFO) + foreach(CompilerFlag ${CompilerFlags}) + string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}") + endforeach() +endif() + +FLEX_TARGET(config_doxyw config_doxyw.l ${GENERATED_SRC_WIZARD}/config_doxyw.cpp COMPILE_FLAGS "-Pconfig_doxywYY") QT4_WRAP_CPP(doxywizard_MOC doxywizard.h @@ -41,15 +81,17 @@ inputbool.cpp inputstring.cpp inputint.cpp inputstrlist.cpp -${GENERATED_SRC}/settings.h -${GENERATED_SRC}/version.cpp -${GENERATED_SRC}/config_doxyw.cpp -${GENERATED_SRC}/configdoc.cpp +${GENERATED_SRC_WIZARD}/settings.h +${GENERATED_SRC_WIZARD}/version.cpp +${GENERATED_SRC_WIZARD}/config_doxyw.cpp +${GENERATED_SRC_WIZARD}/configdoc.cpp ${doxywizard_MOC} ${doxywizard_RESOURCES_RCC} ) target_link_libraries(doxywizard -qtools md5 vhdlparser ${QT_LIBRARIES} +${QT_LIBRARIES} ) +install(TARGETS doxywizard DESTINATION bin) + endif() diff --git a/addon/doxywizard/Makefile.in b/addon/doxywizard/Makefile.in deleted file mode 100644 index 79b885e..0000000 --- a/addon/doxywizard/Makefile.in +++ /dev/null @@ -1,40 +0,0 @@ -# -# -# -# Copyright (C) 1997-2015 by Dimitri van Heesch. -# -# Permission to use, copy, modify, and distribute this software and its -# documentation under the terms of the GNU General Public License is hereby -# granted. No representations are made about the suitability of this software -# for any purpose. It is provided "as is" without express or implied warranty. -# See the GNU General Public License for more details. -# - -QMAKE=$(QTDIR)/bin/$(QMAKEEXE) $(MKSPECS) -INCBUFSIZE=$(PYTHON) ../../src/increasebuffer.py - -all: Makefile.doxywizard - $(MAKE) -f Makefile.doxywizard LEX=$(LEX) PYTHON=$(PYTHON) INCBUFSIZE="$(INCBUFSIZE)" - -Makefile.doxywizard: doxywizard.pro - $(QMAKE) doxywizard.pro -o Makefile.doxywizard - -qmake: - $(QMAKE) doxywizard.pro -o Makefile.doxywizard - -clean: Makefile.doxywizard - $(MAKE) -f Makefile.doxywizard clean - -distclean: Makefile.doxywizard - $(MAKE) -f Makefile.doxywizard distclean - $(RM) Makefile.doxywizard - -install: - $(INSTTOOL) -d $(INSTALL)/bin - $(INSTTOOL) -m 755 ../../bin/doxywizard $(INSTALL)/bin - $(INSTTOOL) -d $(INSTALL)/$(MAN1DIR) - cat ../../doc/doxywizard.1 | sed -e "s/DATE/$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > doxywizard.1 - $(INSTTOOL) -m 644 doxywizard.1 $(INSTALL)/$(MAN1DIR)/doxywizard.1 - rm doxywizard.1 - -FORCE: diff --git a/addon/doxywizard/doxywizard.pro.in b/addon/doxywizard/doxywizard.pro.in deleted file mode 100644 index 1ad36a9..0000000 --- a/addon/doxywizard/doxywizard.pro.in +++ /dev/null @@ -1,40 +0,0 @@ -###################################################################### -# Automatically generated by qmake (2.01a) zo okt 19 12:50:02 2008 -###################################################################### - -TEMPLATE = app -DESTDIR = ../../bin -TARGET = -DEPENDPATH += . -INCLUDEPATH += . ../../generated_src/doxywizard -QT += xml -CONFIG += $extraopts -OBJECTS_DIR = ../../objects/doxywizard -MOC_DIR = ../../moc/doxywizard -RCC_DIR = ../../rcc/doxywizard -DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII - -macx-g++ { - CONFIG += x86 x86_64 -} - -# Input -HEADERS += doxywizard.h version.h expert.h config.h helplabel.h \ - inputbool.h inputstring.h inputint.h inputstrlist.h wizard.h docintf.h -SOURCES += doxywizard.cpp expert.cpp wizard.cpp \ - inputbool.cpp inputstring.cpp inputint.cpp inputstrlist.cpp -RESOURCES += doxywizard.qrc -win32:RC_FILE += doxywizard.rc - -config.target = ../../generated_src/doxywizard/config_doxyw.cpp -config.commands = $(LEX) -Pconfig_doxywYY -t ../../addon/doxywizard/config_doxyw.l | $(PYTHON) ../../src/increasebuffer.py >../../generated_src/doxywizard/$*.cpp -config.depends = ../../addon/doxywizard/config_doxyw.l ../../src/increasebuffer.py -configdoc.target = ../../generated_src/doxywizard/configdoc.cpp -configdoc.commands = $(PYTHON) ../../src/configgen.py -wiz ../../src/config.xml > ../../generated_src/doxywizard/configdoc.cpp -configdoc.depends = ../../src/config.xml ../../src/configgen.py -version.target = ../../generated_src/doxywizard/version.cpp -version.commands = cd ../../src;$(PYTHON) version.py -version.depends = ../../configure -QMAKE_EXTRA_TARGETS += configdoc config version -GENERATED_SOURCES += $$configdoc.target $$config.target $$version.target - |