Fix dependency issue when building AutoBinder on host with no symlink.

This commit is contained in:
Yao Wei Tjong 姚伟忠 2015-09-25 21:30:26 +08:00
Родитель e85b40800b
Коммит 1e0c51fbe7
4 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -96,7 +96,6 @@ int main(int argc, const char** argv)
CommonOptionsParser optionsParser(argc, argv, autobinderCategory);
ClangTool bindingExtractor(optionsParser.getCompilations(), optionsParser.getSourcePathList());
// Setup finder to match against AST nodes from Urho3D library source files
ExtractCallback extractCallback;
MatchFinder bindingFinder;

Просмотреть файл

@ -34,3 +34,4 @@ if (APPLE)
setup_macosx_linker_flags (CMAKE_EXE_LINKER_FLAGS)
endif ()
setup_executable (NODEPS)
add_dependencies (${TARGET_NAME} Mustache)

Просмотреть файл

@ -89,7 +89,7 @@ else ()
string (REGEX REPLACE "[^;]+\\.h" "" SOURCES "${SOURCES}") # Stringify to preserve the semicolons
string (REGEX REPLACE "[^;]+generated[^;]+\\.cpp" "" SOURCES "${SOURCES}")
file (GLOB BINDING_SOURCES RELATIVE ${CMAKE_SOURCE_DIR}/Source/Urho3D ${CMAKE_SOURCE_DIR}/Source/Urho3D/Script/*API.cpp)
string (REGEX REPLACE "[^;]+API[^;]+\\.cpp" "" ANNOTATED_SOURCES "${SOURCES}")
string (REGEX REPLACE "[^;]+API\\.cpp" "" ANNOTATED_SOURCES "${SOURCES}")
# List of tools
add_subdirectory (Annotator)

Просмотреть файл

@ -128,7 +128,7 @@ if (URHO3D_BINDINGS)
list (APPEND TEMPLATES AngelScript)
list (APPEND OUTPUT_FILES ${CMAKE_CURRENT_BINARY_DIR}/generated/AngelScriptAPI.cpp)
endif ()
string (REGEX REPLACE "[^;]+API[^;]+\\.cpp" "" ANNOTATED_SOURCES "${CPP_FILES}") # Stringify to preserve the semicolons
string (REGEX REPLACE "[^;]+API\\.cpp" "" ANNOTATED_SOURCES "${CPP_FILES}") # Stringify to preserve the semicolons
add_custom_command (OUTPUT ${OUTPUT_FILES}
COMMAND ${CMAKE_BINARY_DIR}/bin/tool/clang/AutoBinder -p ${CMAKE_BINARY_DIR} -t "${TEMPLATES}" -o ${CMAKE_CURRENT_BINARY_DIR}/generated ${ANNOTATED_SOURCES}
COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT_FILES} # TODO: fake the output - WIP