'ADAO' : {tag: 'V9_8_0b1'}
'ADAO_INTERFACE': {tag: 'V9_8_0b1'}
'PARAVISADDONS' : {tag: 'V9_8_0b1'}
+ 'YDEFX' : {tag : 'V9_8_0b1'}
'TESTBASE': {tag: 'master'}
'CEATESTBASE' : {tag: 'SSL'}
}
'ADAO' : {tag: 'V9_8_0b1'}
'ADAO_INTERFACE': {tag: 'V9_8_0b1'}
'PARAVISADDONS' : {tag: 'V9_8_0b1'}
+ 'YDEFX' : {tag : 'V9_8_0b1'}
'TESTBASE': {tag: 'master'}
'CEATESTBASE' : {tag: 'SalomeV9'}
}
'ADAO' : {tag: 'V9_8_0b1'}
'ADAO_INTERFACE': {tag: 'V9_8_0b1'}
'PARAVISADDONS' : {tag: 'V9_8_0b1'}
+ 'YDEFX' : {tag : 'V9_8_0b1'}
'TESTBASE': {tag: 'master'}
'CEATESTBASE' : {tag: 'SSL'}
}
'ADAO' : {tag: 'V9_8_0b1'}
'ADAO_INTERFACE': {tag: 'V9_8_0b1'}
'PARAVISADDONS' : {tag: 'V9_8_0b1'}
+ 'YDEFX' : {tag : 'V9_8_0b1'}
'TESTBASE': {tag: 'master'}
'CEATESTBASE' : {tag: 'SSL'}
}
}
environ :
{
- PY2CPP_ROOT_DIR : $install_dir
+ env_script : $name + ".py"
}
depend : [
"CONFIGURATION",
--- /dev/null
+default :
+{
+ name : "YDEFX"
+ build_source : "cmake"
+ #build_source : "script"
+ compil_script : $name + $VARS.scriptExtension
+ get_source : "git"
+ git_info:
+ {
+ repo : $PROJECTS.projects.salome.git_info.default_git_server + "tools/ydefx.git"
+ repo_dev : $PROJECTS.projects.salome.git_info.default_git_server_dev + "ydefx.git"
+ }
+ environ :
+ {
+ }
+ depend : [
+ "CONFIGURATION",
+ "Python",
+ "KERNEL",
+ "PY2CPP",
+ "YACS"
+ ]
+ opt_depend: []
+ build_depend : ["cmake", "cppunit"]
+ source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+ build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+ properties:
+ {
+ incremental : "yes"
+ is_SALOME_module : "yes"
+
+ }
+ # prescription de EDF ne fonctionne pas en dehors de YAMS
+ # solution temporaire pour utiliser l'approche standard de SALOME
+ patches : ['YDEFX-CMakeLists.patch']
+}
--- /dev/null
+#!/bin/bash
+
+echo "##########################################################################"
+echo "YDEFX" $VERSION
+echo "##########################################################################"
+
+CMAKE_OPTIONS=""
+CMAKE_OPTIONS+=" -DCONFIGURATION_ROOT_DIR=${CONFIGURATION_ROOT_DIR}"
+CMAKE_OPTIONS+=" -DKERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}"
+CMAKE_OPTIONS+=" -DCMAKE_PREFIX_PATH=\"$KERNEL_ROOT_DIR/salome_adm/cmake_files;$PY2CPP_ROOT_DIR/lib/cmake/py2cpp/;\" "
+CMAKE_OPTIONS+=" -DPYTHON_EXECUTABLE=${PYTHONBIN}"
+CMAKE_OPTIONS+=" -DPYTHON_ROOT_DIR=${PYTHON_ROOT_DIR}"
+CMAKE_OPTIONS+=" -DPYTHON_INCLUDE_DIR=${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION}"
+CMAKE_OPTIONS+=" -DPYTHON_LIBRARY=${PYTHON_ROOT_DIR}/lib/libpython${PYTHON_VERSION}.so"
+CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}"
+CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release"
+
+echo
+echo "*** cmake" ${CMAKE_OPTIONS}
+cmake ${CMAKE_OPTIONS} $SOURCE_DIR
+if [ $? -ne 0 ]
+then
+ echo "ERROR on cmake"
+ exit 1
+fi
+
+MAKE_OPTIONS="VERBOSE=1 "$MAKE_OPTIONS
+echo
+echo "*** make" $MAKE_OPTIONS
+make $MAKE_OPTIONS
+if [ $? -ne 0 ]
+then
+ echo "ERROR on make"
+ exit 2
+fi
+
+make install
+if [ $? -ne 0 ]
+then
+ echo "ERROR on make install"
+ exit 3
+fi
--- /dev/null
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+import os
+import platform
+
+def set_env(env, product_dir, version):
+ env.set('PY2CPP_ROOT_DIR', product_dir)
+ env.set('Py2cpp_DIR', os.path.join(product_dir, 'lib', 'cmake', 'py2cpp'))
+ env.prepend('LD_LIBRARY_PATH', os.path.join(product_dir, 'lib'))
+
+def set_nativ_env(env):
+ pass
# [CMake KERNEL] Nouveau nom pour PYTHONHOME = PYTHON_ROOT_DIR 22/03/2013
env.set('PYTHON_ROOT_DIR', prereq_dir)
+ # EDF uses this environment variable
+ env.set('PYTHON_INSTALL_DIR', prereq_dir)
# keep only the first two version numbers
version = '.'.join(version.replace('-', '.').split('.')[:2])
--- /dev/null
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8959cac..e5d03fc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -23,14 +23,33 @@ SET (CMAKE_CXX_STANDARD 11)
+ ENABLE_TESTING()
+ SET(BUILD_SHARED_LIBS TRUE)
+
++SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
++IF(EXISTS ${CONFIGURATION_ROOT_DIR})
++ LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
++ INCLUDE(SalomeMacros NO_POLICY_SCOPE)
++ELSE()
++ MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
++ENDIF()
++
++SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
++IF(EXISTS ${KERNEL_ROOT_DIR})
++ FIND_PACKAGE(SalomeKERNEL REQUIRED)
++ ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
++ INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
++ELSE(EXISTS ${KERNEL_ROOT_DIR})
++ MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
++ENDIF(EXISTS ${KERNEL_ROOT_DIR})
++
++# Platform setup
++# ==============
++INCLUDE(SalomeSetupPlatform) # From CONFIGURATION
++# Always build libraries as shared objects:
++SET(BUILD_SHARED_LIBS TRUE)
++
+ OPTION(YDEFX_BUILD_GUI "Generate widgets" ON)
+
+ FIND_PACKAGE(Py2cpp REQUIRED)
+
+-# SalomeKERNEL can be useful in order to define SALOME_INSTALL directories and
+-# for using salome test, but it is not a c++ dependency.
+-FIND_PACKAGE(SalomeKERNEL NO_MODULE)
+-
+ IF(NOT SalomeKERNEL_FOUND)
+ MESSAGE("SalomeKERNEL not found. Salome installation paths will not be used")
+ ELSE()