servo: update to use cmake macro for servo
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Thu, 12 Jun 2014 10:44:17 +0000 (11:44 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Thu, 12 Jun 2014 10:44:17 +0000 (11:44 +0100)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
src/servo/CMakeLists.txt
src/servo/jsupm_es08a.i [deleted file]
src/servo/jsupm_servo.i [new file with mode: 0644]
src/servo/pyupm_servo.i [moved from src/servo/pyupm_es08a.i with 79% similarity]

index 73d09c2..2a5d527 100644 (file)
@@ -1,12 +1,5 @@
 set (libname "servo")
-add_library (servo SHARED servo.cxx es08a.cxx)
-include_directories (${MAA_INCLUDE_DIR})
-target_link_libraries (servo ${MAA_LIBRARIES})
-
-install (TARGETS ${libname} DESTINATION lib/upm COMPONENT ${libname})
-install (FILES servo.h DESTINATION include/upm COMPONENT ${libname})
-
-if (IPK)
-  cpack_add_component (${libname} DISPLAY_NAME ${libname} REQUIRED INSTALL_TYPES all)
-  set(CPACK_COMPONENT_${libname}_DESCRIPTION "libupm servo")
-endif()
+set (libdescription "upm servo")
+set (module_src servo.cxx es08a.cxx)
+set (module_h servo.h es08a.h)
+upm_module_init()
diff --git a/src/servo/jsupm_es08a.i b/src/servo/jsupm_es08a.i
deleted file mode 100644 (file)
index 00e51d8..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-%module jsupm_es08a
-
-%{
-    #include "es08a.h"
-%}
-
-%include "es08a.h"
diff --git a/src/servo/jsupm_servo.i b/src/servo/jsupm_servo.i
new file mode 100644 (file)
index 0000000..affb34d
--- /dev/null
@@ -0,0 +1,7 @@
+%module jsupm_servo
+
+%{
+    #include "servo.h"
+%}
+
+%include "servo.h"
similarity index 79%
rename from src/servo/pyupm_es08a.i
rename to src/servo/pyupm_servo.i
index 3262ba3..c9ca763 100644 (file)
@@ -1,4 +1,4 @@
-%module pyupm_es08a
+%module pyupm_servo
 
 %feature("autodoc", "3");