From e222dba7912df724e3ee6379b12f19e008c770b6 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 24 Jan 2011 23:32:37 -0300 Subject: Test bindings project files modified to use key/value pair text files. Reviewed by Hugo Parente Reviewed by Luciano Wolf --- tests/otherbinding/CMakeLists.txt | 6 +++--- tests/otherbinding/other-binding.txt.in | 18 ++++++++++++++++++ tests/otherbinding/other-binding.xml.in | 23 ----------------------- 3 files changed, 21 insertions(+), 26 deletions(-) create mode 100644 tests/otherbinding/other-binding.txt.in delete mode 100644 tests/otherbinding/other-binding.xml.in (limited to 'tests/otherbinding') diff --git a/tests/otherbinding/CMakeLists.txt b/tests/otherbinding/CMakeLists.txt index e8b89eb5c..5a859679a 100644 --- a/tests/otherbinding/CMakeLists.txt +++ b/tests/otherbinding/CMakeLists.txt @@ -14,11 +14,11 @@ ${CMAKE_CURRENT_BINARY_DIR}/other/other_module_wrapper.cpp ) -configure_file("${CMAKE_CURRENT_SOURCE_DIR}/other-binding.xml.in" - "${CMAKE_CURRENT_BINARY_DIR}/other-binding.xml" @ONLY) +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/other-binding.txt.in" + "${CMAKE_CURRENT_BINARY_DIR}/other-binding.txt" @ONLY) add_custom_command(OUTPUT ${other_SRC} -COMMAND ${GENERATORRUNNER_BINARY} --project-file=${CMAKE_CURRENT_BINARY_DIR}/other-binding.xml +COMMAND ${GENERATORRUNNER_BINARY} --project-file=${CMAKE_CURRENT_BINARY_DIR}/other-binding.txt WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Running generator for 'other' test binding..." ) diff --git a/tests/otherbinding/other-binding.txt.in b/tests/otherbinding/other-binding.txt.in new file mode 100644 index 000000000..12ea06988 --- /dev/null +++ b/tests/otherbinding/other-binding.txt.in @@ -0,0 +1,18 @@ +[generator-project] + +generator-set = @generators_BINARY_DIR@/shiboken_generator@CMAKE_RELEASE_POSTFIX@@CMAKE_DEBUG_POSTFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@ + +header-file = @CMAKE_CURRENT_SOURCE_DIR@/global.h +typesystem-file = @other_TYPESYSTEM@ + +output-directory = @CMAKE_CURRENT_BINARY_DIR@ + +include-path = @libother_SOURCE_DIR@ +include-path = @libsample_SOURCE_DIR@ +include-path = @libsample_SOURCE_DIR@/.. + +typesystem-path = @CMAKE_CURRENT_SOURCE_DIR@ +typesystem-path = @sample_SOURCE_DIR@ + +enable-parent-ctor-heuristic + diff --git a/tests/otherbinding/other-binding.xml.in b/tests/otherbinding/other-binding.xml.in deleted file mode 100644 index 446049ac7..000000000 --- a/tests/otherbinding/other-binding.xml.in +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3