maa: Refactor maa build system and partly implement i2c
* API headers moved to api/ * smbus file added from libi2c and kernel i2c header cleaned up * fix compilation of swig and use i2c.h header Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
add_library (maa i2c/i2c.cxx maa.cxx)
|
||||
include_directories(
|
||||
${PROJECT_SOURCE_DIR}/api
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
set (maa_LIB_SRCS
|
||||
${PROJECT_SOURCE_DIR}/src/maa.cxx
|
||||
${PROJECT_SOURCE_DIR}/src/i2c/i2c.cxx
|
||||
${PROJECT_SOURCE_DIR}/src/i2c/smbus.c
|
||||
)
|
||||
|
||||
add_library (maa STATIC ${maa_LIB_SRCS})
|
||||
|
||||
add_subdirectory(python)
|
||||
add_subdirectory(javascript)
|
||||
|
||||
Reference in New Issue
Block a user