mraa: rename from maa to mraa
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -6,21 +6,21 @@ include_directories(
|
||||
${PYTHON_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
set_source_files_properties (pymaa.i PROPERTIES CPLUSPLUS ON)
|
||||
set_source_files_properties (pymaa.i PROPERTIES SWIG_FLAGS "-I${CMAKE_BINARY_DIR}/src")
|
||||
swig_add_module (pymaa python pymaa.i ${maa_LIB_SRCS})
|
||||
swig_link_libraries (pymaa ${PYTHON_LIBRARIES})
|
||||
set_source_files_properties (pymraa.i PROPERTIES CPLUSPLUS ON)
|
||||
set_source_files_properties (pymraa.i PROPERTIES SWIG_FLAGS "-I${CMAKE_BINARY_DIR}/src")
|
||||
swig_add_module (pymraa python pymraa.i ${mraa_LIB_SRCS})
|
||||
swig_link_libraries (pymraa ${PYTHON_LIBRARIES})
|
||||
|
||||
set (CMAKE_C_FLAGS -DSWIGPYTHON=${SWIG_FOUND})
|
||||
|
||||
if (DOXYGEN_FOUND)
|
||||
foreach (_file ${DOCCLASSES})
|
||||
add_dependencies (${SWIG_MODULE_pymaa_REAL_NAME} ${_file}class_doc_i)
|
||||
add_dependencies (${SWIG_MODULE_pymraa_REAL_NAME} ${_file}class_doc_i)
|
||||
endforeach ()
|
||||
add_dependencies (${SWIG_MODULE_pymaa_REAL_NAME} commondoc_i)
|
||||
add_dependencies (${SWIG_MODULE_pymraa_REAL_NAME} commondoc_i)
|
||||
|
||||
add_custom_target (pydoc
|
||||
pydoc -w ${CMAKE_CURRENT_BINARY_DIR}/pymaa.py ${CMAKE_CURRENT_BINARY_DIR}/
|
||||
pydoc -w ${CMAKE_CURRENT_BINARY_DIR}/pymraa.py ${CMAKE_CURRENT_BINARY_DIR}/
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "Generating API documentation with pydoc" VERBATIM
|
||||
)
|
||||
@@ -31,8 +31,8 @@ string (REPLACE "." ";" PYTHON_VERSION_LIST ${PYTHONLIBS_VERSION_STRING})
|
||||
list (GET PYTHON_VERSION_LIST 0 PYTHON_VERSION_MAJOR)
|
||||
list (GET PYTHON_VERSION_LIST 1 PYTHON_VERSION_MINOR)
|
||||
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/_pymaa.so
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pymaa.py
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/_pymraa.so
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pymraa.py
|
||||
DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/)
|
||||
|
||||
add_subdirectory (docs)
|
||||
|
||||
@@ -36,6 +36,6 @@ if (DOXYGEN_FOUND)
|
||||
COMMENT "Building HTML documentation with Sphinx"
|
||||
)
|
||||
|
||||
add_dependencies (sphinx ${SWIG_MODULE_pymaa_REAL_NAME})
|
||||
add_dependencies (sphinx ${SWIG_MODULE_pymraa_REAL_NAME})
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
@@ -47,7 +47,7 @@ source_suffix = '.rst'
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = 'pymaa'
|
||||
project = 'pymraa'
|
||||
copyright = '2014, Intel Corporation'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
@@ -55,7 +55,7 @@ copyright = '2014, Intel Corporation'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '@maa_VERSION_STRING@'
|
||||
version = '@mraa_VERSION_STRING@'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '@VERSION@'
|
||||
|
||||
@@ -180,7 +180,7 @@ html_static_path = ['_static']
|
||||
#html_file_suffix = None
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'pymaadoc'
|
||||
htmlhelp_basename = 'pymraadoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#######
|
||||
Example
|
||||
#######
|
||||
Here are some examples of how to use pymaa, common convention is to import pymaa as maa to keep it short but feel free to import it globally!
|
||||
Here are some examples of how to use pymraa, common convention is to import pymraa as mraa to keep it short but feel free to import it globally!
|
||||
|
||||
Hello GPIO
|
||||
==========
|
||||
|
||||
Here is the simplest Gpio program in pymaa.
|
||||
Here is the simplest Gpio program in pymraa.
|
||||
|
||||
.. literalinclude:: ../../../examples/python/hello_gpio.py
|
||||
:prepend: import pymaa
|
||||
:start-after: import pymaa
|
||||
:prepend: import pymraa
|
||||
:start-after: import pymraa
|
||||
|
||||
GPIO Interupt (isr)
|
||||
===================
|
||||
@@ -20,6 +20,6 @@ The GPIO module allows you to set an interupt on a GPIO. This interupt is contro
|
||||
**Note:** Galileo Gen1 only supports EDGE_BOTH
|
||||
|
||||
.. literalinclude:: ../../../examples/python/hello_isr.py
|
||||
:prepend: import pymaa as maa
|
||||
:start-after: import pymaa as maa
|
||||
:prepend: import pymraa as mraa
|
||||
:start-after: import pymraa as mraa
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to Pymaa's documentation!
|
||||
Welcome to Pymraa's documentation!
|
||||
=============================
|
||||
|
||||
Contents:
|
||||
@@ -11,7 +11,7 @@ Contents:
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
pymaa
|
||||
pymraa
|
||||
example
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
pymaa module
|
||||
pymraa module
|
||||
============
|
||||
|
||||
.. automodule:: pymaa
|
||||
.. automodule:: pymraa
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
%module(docstring="Python interface to libmaa") pymaa
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%include ../maa.i
|
||||
|
||||
6
src/python/pymraa.i
Normal file
6
src/python/pymraa.i
Normal file
@@ -0,0 +1,6 @@
|
||||
%module(docstring="Python interface to libmraa") pymraa
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%include ../mraa.i
|
||||
|
||||
Reference in New Issue
Block a user