/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to xml/CMakeLists.txt

  • Committer: Vasilii Chernov
  • Date: 2016-02-12 13:43:20 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160212134320-qj1oj1v4g6ixn9c8
1. Cmakelists - move copy xml folder command to root file
2. - Move set python paths code to python module init funtction
     - pci.c move python module init block code after checking model
       to get paths before it runs.
   - Fix set python path code to work with PYTHONPATH
   - Update pci run script to work with PYTHONPATH
   - Fix python finalize code
3. Change pcilib_script_s interacting method. Now it stores in hash.
4. Change names of some fucntions to more unified ones
5. Remove old unused function pcilib_xml_create_script_or_transform_view
6. cli - disable reading register after set if write_verification flag is off
7. Remove uninformative error messages fro Python wrap.
8. - Server.py - add read/write property/register command handling
   - Add help message
   - Correcting paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
install(FILES model.xsd references.xsd types.xsd
2
2
    DESTINATION ${PCILIB_MODEL_DIR}
3
3
)
4
 
 
5
 
# Copy files from source directory to destination directory, substituting any
6
 
# variables.  Create destination directory if it does not exist.
7
 
 
8
 
macro(configure_files srcDir destDir)
9
 
    message(STATUS "Configuring directory ${destDir}")
10
 
    make_directory(${destDir})
11
 
 
12
 
    file(GLOB templateFiles RELATIVE ${srcDir} ${srcDir}/*)
13
 
    foreach(templateFile ${templateFiles})
14
 
        set(srcTemplatePath ${srcDir}/${templateFile})
15
 
        if(NOT IS_DIRECTORY ${srcTemplatePath})
16
 
            message(STATUS "Configuring file ${templateFile}")
17
 
            configure_file(
18
 
                    ${srcTemplatePath}
19
 
                    ${destDir}/${templateFile}
20
 
                    @ONLY)
21
 
        endif(NOT IS_DIRECTORY ${srcTemplatePath})
22
 
    endforeach(templateFile)
23
 
endmacro(configure_files)
24
 
 
25
 
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/model.xsd ${CMAKE_CURRENT_BINARY_DIR}/model.xsd)
26
 
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/references.xsd ${CMAKE_CURRENT_BINARY_DIR}/references.xsd)
27
 
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/types.xsd ${CMAKE_CURRENT_BINARY_DIR}/types.xsd)
28
 
 
29
 
configure_files(${CMAKE_CURRENT_SOURCE_DIR}/test ${CMAKE_CURRENT_BINARY_DIR}/test)
30
 
configure_files(${CMAKE_CURRENT_SOURCE_DIR}/test_pywrap ${CMAKE_CURRENT_BINARY_DIR}/test_pywrap)