Back to home page

Enduro/X

 
 

    


0001 ##
0002 ## @brief Build documentation
0003 ##
0004 ## @file CMakeLists.txt
0005 ##
0006 ## -----------------------------------------------------------------------------
0007 ## Enduro/X Middleware Platform for Distributed Transaction Processing
0008 ## Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved.
0009 ## Copyright (C) 2017-2023, Mavimax, Ltd. All Rights Reserved.
0010 ## This software is released under one of the following licenses:
0011 ## AGPL (with Java and Go exceptions) or Mavimax's license for commercial use.
0012 ## See LICENSE file for full text.
0013 ## -----------------------------------------------------------------------------
0014 ## AGPL license:
0015 ##
0016 ## This program is free software; you can redistribute it and/or modify it under
0017 ## the terms of the GNU Affero General Public License, version 3 as published
0018 ## by the Free Software Foundation;
0019 ##
0020 ## This program is distributed in the hope that it will be useful, but WITHOUT ANY
0021 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
0022 ## PARTICULAR PURPOSE. See the GNU Affero General Public License, version 3
0023 ## for more details.
0024 ##
0025 ## You should have received a copy of the GNU Affero General Public License along 
0026 ## with this program; if not, write to the Free Software Foundation, Inc.,
0027 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0028 ##
0029 ## -----------------------------------------------------------------------------
0030 ## A commercial use license is available from Mavimax, Ltd
0031 ## contact@mavimax.com
0032 ## -----------------------------------------------------------------------------
0033 ##
0034 cmake_minimum_required(VERSION 3.5)
0035 
0036 find_program(A2X_EXECUTABLE NAMES a2x)
0037 
0038 set(HTML_NAMES ex_devguide ex_overview ex_adminman building_guide
0039                getting_started_tutorial persistent_message_queues_overview
0040                macos_notes aix_notes solaris_notes freebsd_notes
0041                benchmark third_party_licences ex_netproto migration_tuxedo)
0042 
0043 # Generate HTMLs
0044 set(A2X_OPTS_HTML -D . -f xhtml)
0045 set(HTML_FILES)
0046 foreach(m IN LISTS HTML_NAMES)
0047   set(mf ${CMAKE_CURRENT_BINARY_DIR}/${m}.html)
0048   set(ms ${CMAKE_CURRENT_SOURCE_DIR}/${m}.adoc)
0049   add_custom_command(OUTPUT ${mf}
0050     COMMAND ${A2X_EXECUTABLE} ${A2X_OPTS_HTML} ${ms}
0051     DEPENDS ${ms}
0052     WORKING_DIRECTORY .
0053     COMMENT "Building HTML ${mf}"
0054     VERBATIM)
0055   list(APPEND HTML_FILES ${mf})
0056 
0057   # Install the docs
0058   install (FILES
0059     ${mf}
0060     DESTINATION share/endurox/doc/html/guides)
0061 
0062 endforeach()
0063 add_custom_target(html ALL DEPENDS ${HTML_FILES})
0064 
0065 
0066 install (FILES
0067     class_diagram.png
0068     cluster_detail.png
0069     cluster_links_center.png
0070     cluster_links_mix.png
0071     cluster_links_nocentre.png
0072     common_config.png
0073     endurox_overview.png
0074     epoll_message_dispatch_mode.png
0075     event_processing.png
0076     exforward_forward.png
0077     exforward_tpcall.png
0078     module_dependency.png
0079     netxms_avg_rsp.png
0080     netxms_clients_list.png
0081     netxms_new_dci2.png
0082     netxms_new_dci.png
0083     netxms_qsize.png
0084     netxms_service_chk.png
0085     netxms_succ.png
0086     netxms_tps.png
0087     netxms_tps_transf.png
0088     poll_message_dispatch_mode.png
0089     reqlogging.png
0090     rt-patching.png
0091     server_monitoring_and_recovery.png
0092     systemv_message_dispatch_mode.png
0093     tmqinternals.png
0094     tpcache.png
0095     tpenqueue_auto.png
0096     tpenqueue_tpdequeue.png
0097     tpnotify.png
0098     transaction_groups.png
0099     endurox-load-balance.jpg
0100     Endurox-product.jpg
0101     excache.jpg
0102     benchmark/01_tpcall.png
0103     benchmark/02_tpcall_network.png
0104     benchmark/03_tpcall_threads.png
0105     benchmark/04_tpacall.png
0106     benchmark/05_persistent_storage.png
0107     benchmark/06_tpcache.png
0108   DESTINATION share/endurox/doc/html/guides
0109   OPTIONAL)
0110 
0111 install (FILES
0112     benchmark/01_tpcall.png
0113     benchmark/02_tpcall_network.png
0114     benchmark/03_tpcall_threads.png
0115     benchmark/04_tpacall.png
0116     benchmark/05_persistent_storage.png
0117     benchmark/06_tpcache.png
0118   DESTINATION share/endurox/doc/html/guides/benchmark
0119   OPTIONAL)
0120 
0121 install (FILES
0122   ${CMAKE_CURRENT_BINARY_DIR}/docbook-xsl.css
0123   DESTINATION share/endurox/doc/html/guides
0124   OPTIONAL)
0125 
0126 # install images 
0127 add_subdirectory (manpage)
0128 add_subdirectory (api)
0129 #add_subdirectory (doxygen)
0130 # end.
0131 
0132 
0133 # vim: set ts=4 sw=4 et smartindent: