aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wspython
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-28 11:48:29 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-28 11:48:29 +0000
commit6cf7447b15d63a92a90e3661fd4e2f5fabac2072 (patch)
treec049323f5cbf92fb26015c865796f598c1f98204 /epan/wspython
parent5170a291f0929773fd1f9d61cd0815a924b5083a (diff)
Remaining fixes for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4788 - Compile the python code directly into epan - don't link it in as a static lib. - Call make-init-lua.pl with the top level directory instead of the current directory. Change make-init-lua.pl accordingly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33009 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/wspython')
-rw-r--r--epan/wspython/CMakeLists.txt40
1 files changed, 6 insertions, 34 deletions
diff --git a/epan/wspython/CMakeLists.txt b/epan/wspython/CMakeLists.txt
index 9287188dc5..f6dcac4da7 100644
--- a/epan/wspython/CMakeLists.txt
+++ b/epan/wspython/CMakeLists.txt
@@ -21,50 +21,22 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}
-)
-
set(WSPYTHON_FILES
- wspy_register.c
- wspy_proto.c
-)
-
-set(CLEAN_FILES
- ${WSPYTHON_FILES}
-)
-
-if (WERROR)
- set_source_files_properties(
- ${CLEAN_FILES}
- PROPERTIES
- COMPILE_FLAGS -Werror
- )
-endif()
-
-set(wspython_LIBS
- ${PYTHON_LIBRARIES}
+ wspython/wspy_register.c
+ wspython/wspy_proto.c
)
-add_library(wspython STATIC
- ${WSPYTHON_FILES}
-)
-set_target_properties(wspython PROPERTIES LINK_FLAGS ${WS_LINK_FLAGS})
-
-target_link_libraries(wspython ${wspython_LIBS})
-
install(PROGRAMS
- register-dissector.py
- wspy_dissector.py
- wspy_libws.py
+ wspython/register-dissector.py
+ wspython/wspy_dissector.py
+ wspython/wspy_libws.py
DESTINATION
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}
)
install(DIRECTORY
- wspy_dissectors
+ wspython/wspy_dissectors
DESTINATION
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}
PATTERN ".svn" EXCLUDE