Commit 6659cd32 authored by maddoxx's avatar maddoxx
Browse files

first verilog update to dox1812

parent 8e8b3061
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
Doxygen uses cmake (http://www.cmake.org/) to build executables for various platforms.
It's required at least cmake version 3.0.
It's required at least cmake version 2.8.12

The first step is to create a build directory where the output should be stored.
Doxygen can be fully build outside of the source tree.
@@ -19,7 +19,7 @@ This also works for MacOSX, but if XCode is installed you can also generate an X

For Windows one can generate a Visual Studio project using

  cmake -G "Visual Studio 11 2012" path\to\root\of\doxygen\source\tree
  cmake -G "Visual Studio 12 2013" path\to\root\of\doxygen\source\tree

(this is for Visual Studio 12, there are typically also generators for other versions of
Visual Studio or other compiler environments like MinGW)
@@ -34,6 +34,7 @@ Doxygen's cmake configuration provides a number of options:
- use_libclang    Add support for libclang parsing.
- win_static      Link with /MT in stead of /MD on windows.
- english_only    Only compile in support for the English language.
- force_qt4       Forces doxywizard to build using Qt4 even if Qt5 is installed

An option can be turned on, by adding -D<option>=ON as a command line option, this can be
done when generating the initial build files, but also afterwards, i.e. to enable building
+17 −4
Original line number Diff line number Diff line
@@ -23,9 +23,10 @@ option(use_sqlite3 "Add support for sqlite3 output [experimental]." OFF)
option(use_libclang    "Add support for libclang parsing." OFF)
option(win_static      "Link with /MT in stead of /MD on windows" OFF)
option(english_only    "Only compile in support for the English language" OFF)
option(force_qt4       "Forces doxywizard to build using Qt4 even if Qt5 is installed" OFF)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(SOURCE "${CMAKE_SOURCE_DIR}")
set(TOP "${CMAKE_SOURCE_DIR}")
include(version)

set(sqlite3  "0" CACHE INTERNAL "used in settings.h")
@@ -40,17 +41,28 @@ endif()

if (${CMAKE_SYSTEM} MATCHES "Darwin")
    set(CMAKE_CXX_FLAGS "-Wno-deprecated-register -mmacosx-version-min=10.5 ${CMAKE_CXX_FLAGS}")
    set(CMAKE_C_FLAGS "-Wno-deprecated-register -mmacosx-version-min=10.5 ${CMAKE_C_FLAGS}")
    find_library(CORESERVICES_LIB CoreServices)
    set(EXTRA_LIBS ${CORESERVICES_LIB})
endif()

if (WIN32)
    if(NOT ICONV_DIR)
      set(ICONV_DIR "${CMAKE_SOURCE_DIR}/winbuild")
    endif()
    set(CMAKE_REQUIRED_DEFINITIONS "-DLIBICONV_STATIC")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") # needed for language.cpp on 64bit
    add_definitions(-DLIBICONV_STATIC -D_CRT_SECURE_NO_WARNINGS)
endif()

if ("${CMAKE_GENERATOR}" MATCHES "Ninja") 
  set(LEX_FLAGS )
  set(YACC_FLAGS )
else ("${CMAKE_GENERATOR}" MATCHES "Ninja") 
  set(LEX_FLAGS $(LEX_FLAGS))
  set(YACC_FLAGS $(YACC_FLAGS))
endif ("${CMAKE_GENERATOR}" MATCHES "Ninja") 

find_program(DOT NAMES dot)
find_package(PythonInterp REQUIRED)
find_package(FLEX REQUIRED)
@@ -66,8 +78,6 @@ include_directories(${ICONV_INCLUDE_DIR})


#set(DOXYDOCS ${CMAKE_SOURCE_DIR}/doc CACHE INTERNAL "Path to doxygen docs")
set(DOC_INSTALL_DIR "share/doc/packages/doxygen" CACHE STRING "Relative path where to install the documentation")
set(EXAMPLE_DIR ${CMAKE_SOURCE_DIR}/examples)
set(DOXYDOCS ${PROJECT_BINARY_DIR}/doc)
set(ENV{DOXYGEN_DOCDIR} ${DOXYDOCS})
set(GENERATED_SRC "${CMAKE_BINARY_DIR}/generated_src" CACHE INTERNAL "Stores generated files")
@@ -136,3 +146,6 @@ add_subdirectory(addon/doxywizard)

enable_testing()
add_subdirectory(testing)

include(cmake/packaging.cmake) # set CPACK_xxxx properties
include(CPack)
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ OPTIMIZE_FOR_FORTRAN = NO
OPTIMIZE_OUTPUT_VHDL   = NO
EXTENSION_MAPPING      =
MARKDOWN_SUPPORT       = YES
TOC_INCLUDE_HEADINGS   =
AUTOLINK_SUPPORT       = YES
BUILTIN_STL_SUPPORT    = NO
CPP_CLI_SUPPORT        = NO
+21 −22
Original line number Diff line number Diff line
                    GNU GENERAL PUBLIC LICENSE
                       Version 2, June 1991

 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it.  (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.)  You can apply it to
the GNU Lesser General Public License instead.)  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
@@ -55,7 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all.

  The precise terms and conditions for copying, distribution and
modification follow.


                    GNU GENERAL PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
    License.  (Exception: if the Program itself is interactive but
    does not normally print such an announcement, your work based on
    the Program is not required to print an announcement.)


These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.


  4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.


  8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
@@ -278,7 +278,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

                     END OF TERMS AND CONDITIONS


            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
@@ -291,7 +291,7 @@ convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) yyyy  <name of author>
    Copyright (C) <year>  <name of author>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -303,17 +303,16 @@ the "copyright" line and a pointer to where the full notice is found.
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

    Gnomovision version 69, Copyright (C) yyyy name of author
    Gnomovision version 69, Copyright (C) year name of author
    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.
@@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names:
This General Public License does not permit incorporating your program into
proprietary programs.  If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library.  If this is what you want to do, use the GNU Library General
library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

Makefile.in

deleted100644 → 0
+0 −161
Original line number Diff line number Diff line

DESTDIR = 

doxywizard:
	cd addon/doxywizard ; $(MAKE) 

doxysearch:
	cd addon/doxysearch ; $(MAKE) 

doxmlparser:
	cd addon/doxmlparser/src ; $(MAKE)
	cd addon/doxmlparser/test ; $(MAKE)
	cd addon/doxmlparser/examples/metrics ; $(MAKE)

doxyapp:
	cd addon/doxyapp ; $(MAKE) clean

clean: FORCE
	- cd examples ; $(MAKE) clean
	- cd doc ; $(MAKE) clean
	- cd qtools ; $(MAKE) clean
	- cd src ; $(MAKE) clean
	- cd libmd5 ; $(MAKE) clean
	- cd vhdlparser ; $(MAKE) clean
	-cd addon/doxywizard ; $(MAKE) clean
	-cd addon/doxysearch ; $(MAKE) clean
	-cd addon/doxyapp ; $(MAKE) clean
	-cd addon/doxmlparser/src ; $(MAKE) clean
	-cd addon/doxmlparser/test ; $(MAKE) clean
	-cd addon/doxmlparser/examples/metrics ; $(MAKE) clean
	-rm -f bin/doxy*
	-rm -f objects/*/*.o

distclean: clean
	-cd src ; $(MAKE) distclean
	-cd libmd5 ; $(MAKE) distclean
	-cd vhdlparser ; $(MAKE) distclean
	-cd qtools ; $(MAKE) distclean
	-cd addon/doxywizard ; $(MAKE) distclean
	-cd addon/doxysearch ; $(MAKE) distclean
	-cd addon/doxyapp ; $(MAKE) distclean
	-cd addon/doxmlparser/src ; $(MAKE) distclean
	-cd addon/doxmlparser/test ; $(MAKE) distclean
	-cd addon/doxmlparser/examples/metrics ; $(MAKE) distclean
	-rm -rf lib
	-rm -rf bin
	-rm -rf objects
	-rm -rf html
	-rm -rf latex
	-rm -rf man
	-rm -rf docbook
	-rm -rf perlmod
	-rm -rf rtf
	-rm -rf xml
	-rm -f src/Makefile.doxygen src/Makefile.libdoxygen 
	-rm -f src/Makefile.libdoxycfg src/libdoxycfg.t src/libdoxygen.t
	-rm -f libmd5/Makefile.libmd5
	-rm -f vhdlparser/Makefile.vhdlparser
	-rm -f .makeconfig .tmakeconfig
	-rm -f src/doxygen.pro src/libdoxygen.pro qtools/qtools.pro src/libdoxycfg.pro libmd5/libmd5.pro vhdlparser/vhdlparser.pro
	-rm -rf generated_src
	-rm -f addon/doxywizard/doxywizard.pro
	-rm -f VERSION
	-rm -f packages/rpm/doxygen.spec
	-rm -r addon/doxywizard/Makefile
	-rm -f addon/doxysearch/Makefile
	-rm -f addon/doxyapp/Makefile
	-rm -f addon/doxmlparser/src/Makefile
	-rm -f addon/doxmlparser/test/Makefile
	-rm -f addon/doxmlparser/examples/metrics/Makefile
	-rm -f qtools/Makefile src/Makefile examples/Makefile doc/Makefile 
	-rm -f Makefile

DATE=$(shell date "+%B %Y")

MAN1DIR = man/man1

install: doxywizard_install doxysearch_install
	$(INSTTOOL) -d $(DESTDIR)$(INSTALL)/bin
	$(INSTTOOL) -m 755 bin/doxygen        $(DESTDIR)$(INSTALL)/bin
	$(INSTTOOL) -d $(DESTDIR)$(INSTALL)/$(MAN1DIR)
	cat doc/doxygen.1    | sed -e "s/DATE/$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > doxygen.1 
	$(INSTTOOL) -m 644 doxygen.1 $(DESTDIR)$(INSTALL)/$(MAN1DIR)/doxygen.1
	rm doxygen.1

install_docs: 
	$(INSTTOOL) -d $(DESTDIR)$(DOCDIR)
	$(MAKE) -C examples
	$(MAKE) -C doc 
	$(MAKE) -C latex 
	$(INSTTOOL) -m 644 latex/doxygen_manual.pdf $(DESTDIR)$(DOCDIR)
	cp -r examples $(DESTDIR)$(DOCDIR)
	cp -r html $(DESTDIR)$(DOCDIR)

docs: FORCE
	cd examples ; $(MAKE)
	cd doc ; $(MAKE)

pdf: docs
	cd latex ; $(MAKE)

DISTFILES =  Doxyfile vhdlparser libmd5 addon tmake doc examples bin lib objects testing \
             qtools src configure configure.bin Makefile.in Makefile.win_nmake.in \
             Makefile.win_make.in INSTALL LANGUAGE.HOWTO LICENSE PLATFORMS \
             VERSION README.md packages winbuild jquery templates

archive: clean
	tar zcvf dx`date +%y%m%d`.tgz $(DISTFILES)

DISTDIR = doxygen-`echo $(VERSION) | tr - _`

dist: clean
	rm -rf $(DISTDIR)
	mkdir $(DISTDIR)
	cp -a $(DISTFILES) $(DISTDIR)
	find $(DISTDIR) \( -name ".svn" \) -print0 | xargs -0 rm -rf
	tar zcvf $(DISTDIR).src.tar.gz $(DISTDIR)
	rm -rf $(DISTDIR)

DISTDIR = doxygen-`echo $(VERSION) | tr - _`
rpm: dist
	gzip -df $(DISTDIR).src.tar.gz
	mkdir $(DISTDIR)
	mkdir $(DISTDIR)/packages
	mkdir $(DISTDIR)/packages/rpm
	cp packages/rpm/doxygen.spec $(DISTDIR)/packages/rpm
	rm -rf $(DISTDIR)
	gzip -9v $(DISTDIR).src.tar
	rpmbuild -ta %%WITHDOXYWIZARD%% $(DISTDIR).src.tar.gz

rpmsrc: dist
	gzip -df $(DISTDIR).src.tar.gz
	mkdir $(DISTDIR)
	mkdir $(DISTDIR)/packages
	mkdir $(DISTDIR)/packages/rpm
	cp packages/rpm/doxygen.spec $(DISTDIR)/packages/rpm
	tar -rvf $(DISTDIR).src.tar $(DISTDIR)/packages/rpm/doxygen.spec
	rm -rf $(DISTDIR)
	gzip -9v $(DISTDIR).src.tar
	rpmbuild -ts %%WITHDOXYWIZARD%% $(DISTDIR).src.tar.gz

rpmbinary: dist
	gzip -df $(DISTDIR).src.tar.gz
	mkdir $(DISTDIR)
	mkdir $(DISTDIR)/packages
	mkdir $(DISTDIR)/packages/rpm
	cp packages/rpm/doxygen.spec $(DISTDIR)/packages/rpm
	tar -rvf $(DISTDIR).src.tar $(DISTDIR)/packages/rpm/doxygen.spec
	rm -rf $(DISTDIR)
	gzip -9v $(DISTDIR).src.tar
	rpmbuild -tb %%WITHDOXYWIZARD%% $(DISTDIR).src.tar.gz


ctags:
	ctags -R -f tags src addon/doxywizard qtools

test: FORCE
	make -C testing

FORCE:
Loading