]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Fix ADAO documentation, resources and prefs install
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Wed, 27 Mar 2019 13:23:24 +0000 (14:23 +0100)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Wed, 27 Mar 2019 15:29:29 +0000 (16:29 +0100)
doc/en/CMakeLists.txt
doc/fr/CMakeLists.txt
resources/CMakeLists.txt
src/daEficas/prefs_ADAO.py.in
src/daSalome/CMakeLists.txt

index ba7534364db7872b99dd9dec440d9aab6c7ccfd4..e42673a4e84090f99f8eaf30597e15c45b31930f 100644 (file)
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
 
-set(DOCLANG en)
-set(DOC_DESTINATION "share/doc/gui/ADAO/${DOCLANG}")
+set(DOC_LANG en)
+set(DOC_DESTINATION "share/doc/gui/ADAO")
 
-file(GLOB_RECURSE BEAUTIFUL_PNGS "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.png")
-install(FILES ${BEAUTIFUL_PNGS} DESTINATION ${ADAO_RES})
-file(COPY conf.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-file(COPY ${CMAKE_SOURCE_DIR}/bin/module_version.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-file(GLOB_RECURSE RST_FILES "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.rst")
-file(COPY ${RST_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-file(COPY resources snippets images DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY ../${DOC_LANG} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY ${CMAKE_SOURCE_DIR}/bin/module_version.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${DOC_LANG})
 
-set(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR} -b html -d doctrees -D latex_paper_size=a4 ${CMAKE_CURRENT_BINARY_DIR} html)
-SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${CMAKE_CURRENT_BINARY_DIR}) # for module_version.py for conf.py for sphinx
-SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}")      
-add_custom_target(en_tutorial_doc COMMAND ${_cmd})
-install(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target en_tutorial_doc)")
+set(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR}/${DOC_LANG} -b html -d doctrees ${CMAKE_CURRENT_BINARY_DIR}/${DOC_LANG} html/${DOC_LANG})
+SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${CMAKE_CURRENT_BINARY_DIR}/${DOC_LANG}/${DOC_LANG}) # for module_version.py for conf.py for sphinx
+SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}")
+add_custom_target(${DOC_LANG}_doc COMMAND ${_cmd})
+install(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target ${DOC_LANG}_doc)")
 
-file(GLOB_RECURSE BEAUTIFUL_PNGS2 "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/images/*.png")
-INSTALL(CODE "file(GLOB BEAUTIFUL_HTML \"${CMAKE_CURRENT_BINARY_DIR}/html/*.html\")
-file(COPY \${BEAUTIFUL_HTML} DESTINATION ${CMAKE_INSTALL_PREFIX}/${DOC_DESTINATION})")
-install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/_static" DESTINATION ${DOC_DESTINATION})
-install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/snippets" DESTINATION ${DOC_DESTINATION})
-install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/_sources" DESTINATION ${DOC_DESTINATION})
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/html/searchindex.js" DESTINATION ${DOC_DESTINATION})
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/html/objects.inv" DESTINATION ${DOC_DESTINATION})
-install(FILES ${BEAUTIFUL_PNGS2} DESTINATION ${DOC_DESTINATION}/_images)
+install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/${DOC_LANG}" DESTINATION ${DOC_DESTINATION})
index 06adef6ba86c94865fb906736cb0315851d35f59..74f897b3b09c92b28a70838d3708d0b479de89bc 100644 (file)
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
 
-set(DOCLANG fr)
-set(DOC_DESTINATION "share/doc/gui/ADAO/${DOCLANG}")
+set(DOC_LANG fr)
+set(DOC_DESTINATION "share/doc/gui/ADAO")
 
-file(GLOB_RECURSE BEAUTIFUL_PNGS "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.png")
-install(FILES ${BEAUTIFUL_PNGS} DESTINATION ${ADAO_RES})
-file(COPY conf.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-file(COPY ${CMAKE_SOURCE_DIR}/bin/module_version.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-file(GLOB_RECURSE RST_FILES "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.rst")
-file(COPY ${RST_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-file(COPY resources snippets images DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY ../${DOC_LANG} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY ${CMAKE_SOURCE_DIR}/bin/module_version.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${DOC_LANG})
 
-set(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR} -b html -d doctrees -D latex_paper_size=a4 ${CMAKE_CURRENT_BINARY_DIR} html)
-SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${CMAKE_CURRENT_BINARY_DIR}) # for module_version.py for conf.py for sphinx
-SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}")      
-add_custom_target(fr_tutorial_doc COMMAND ${_cmd})
-install(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target fr_tutorial_doc)")
+set(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR}/${DOC_LANG} -b html -d doctrees ${CMAKE_CURRENT_BINARY_DIR}/${DOC_LANG} html/${DOC_LANG})
+SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${CMAKE_CURRENT_BINARY_DIR}/${DOC_LANG}/${DOC_LANG}) # for module_version.py for conf.py for sphinx
+SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}")
+add_custom_target(${DOC_LANG}_doc COMMAND ${_cmd})
+install(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target ${DOC_LANG}_doc)")
 
-file(GLOB_RECURSE BEAUTIFUL_PNGS2 "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/images/*.png")
-INSTALL(CODE "file(GLOB BEAUTIFUL_HTML \"${CMAKE_CURRENT_BINARY_DIR}/html/*.html\")
-file(COPY \${BEAUTIFUL_HTML} DESTINATION ${CMAKE_INSTALL_PREFIX}/${DOC_DESTINATION})")
-install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/_static" DESTINATION ${DOC_DESTINATION})
-install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/snippets" DESTINATION ${DOC_DESTINATION})
-install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/_sources" DESTINATION ${DOC_DESTINATION})
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/html/searchindex.js" DESTINATION ${DOC_DESTINATION})
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/html/objects.inv" DESTINATION ${DOC_DESTINATION})
-install(FILES ${BEAUTIFUL_PNGS2} DESTINATION ${DOC_DESTINATION}/_images)
+install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/${DOC_LANG}" DESTINATION ${DOC_DESTINATION})
index 8b590edf19368788d25b2447c2a1fa0d3edb53c8..5f4feb2fcc3fd3068e8e78ef2fac47391d0cdc9b 100644 (file)
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
 
 if(ADAO_SALOME_MODULE)
+
   install(FILES SalomeApp.xml ADAOCatalog.xml DESTINATION ${ADAO_RES_SALOME})
+
 else(ADAO_SALOME_MODULE)
+
   install(FILES ADAOSchemaCatalog.xml DESTINATION ${ADAO_RES})
+  file(GLOB_RECURSE BUTTONS1 "${CMAKE_SOURCE_DIR}/doc/fr/resources/*.png")
+  install(FILES ${BUTTONS1} DESTINATION ${ADAO_RES})
+  file(GLOB_RECURSE BUTTONS2 "${CMAKE_SOURCE_DIR}/doc/fr/images/eficas*.png")
+  install(FILES ${BUTTONS2} DESTINATION ${ADAO_RES})
+  file(GLOB_RECURSE BUTTONS3 "${CMAKE_SOURCE_DIR}/doc/en/images/eficas*.png")
+  install(FILES ${BUTTONS3} DESTINATION ${ADAO_RES})
+
 endif(ADAO_SALOME_MODULE)
index 108d1b6a27af340ccb814ce3d0802e6b3b1fc4a4..188d017166478461aa4f6ecdc5c6e521c97dc5df 100644 (file)
@@ -62,7 +62,7 @@ if sys.version.split()[0] < '3':
 # Indique la langue du catalogue utilisee pour les chaines d'aide : fr ou ang
 # lang = 'fr'
 # Traduction des labels de boutons ou autres
-translatorFichier = os.environ["ADAO_ROOT_DIR"] + "/share/resources/adao/adao" # Ce nom sera complete par EFICAS avec _<LANG>.qm
+translatorFichier = os.environ["ADAO_ENGINE_ROOT_DIR"] + "/share/resources/adao/adao" # Ce nom sera complete par EFICAS avec _<LANG>.qm
 #
 # Pilotage des sous-fenetres d'EFICAS
 closeAutreCommande = True
index c7e8dbd6cc327024af075457cb2f8c4eb5e1c2e1..b76e30ccb96b0d6bf9034b47ed862380c97d9617 100644 (file)
@@ -21,7 +21,8 @@
 add_subdirectory(daGUI)
 
 if( NOT ADAO_SALOME_MODULE)
+
   install(DIRECTORY daYacsSchemaCreator daYacsIntegration DESTINATION "${ADAO_SCRIPT_PYTHON}/adao")
   install(FILES __init__.py adaoBuilder.py DESTINATION "${ADAO_SCRIPT_PYTHON}/adao")
 
-endif(ADAO_SALOME_MODULE)
+endif(NOT ADAO_SALOME_MODULE)