Skip to content

Commit

Permalink
Remove the existing offline plugins documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrio95 committed Mar 22, 2019
1 parent 3cfde39 commit d601f8f
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 524 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ if (APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC -stdlib=libc++ -Wno-inconsistent-missing-override")
# This is necessary for genManual to be executed during the build phase,
# it needs to be able to get the Qt libs.
# TODO: is it still needed? genManual is removed.
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
SET(CMAKE_INSTALL_RPATH "${QT_INSTALL_LIBS}")
else (APPLE)
Expand Down Expand Up @@ -899,14 +900,7 @@ add_custom_target(lrelease
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
)

##
## Create and install the plugin framework manual
##

add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/plugins
COMMAND genManual ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR}
DEPENDS genManual
)
add_dependencies(mscore pluginDocumentation)


##
Expand Down
58 changes: 6 additions & 52 deletions manual/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,62 +10,16 @@
# the file LICENSE.GPL
#=============================================================================

include (${PROJECT_SOURCE_DIR}/build/CopyFilesMacros.cmake)
include (${PROJECT_SOURCE_DIR}/build/functions.cmake)

include_directories(
${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}
)

if (APPLE)
file(GLOB_RECURSE INCS "*.h")
else (APPLE)
set(INCS "")
endif (APPLE)

add_executable(
genManual
${INCS}
genManual.cpp
)
target_link_libraries(
genManual
${QT_LIBRARIES}
)
set(MANUAL_DEST "${PROJECT_BINARY_DIR}/share/manual/plugins/plugins3.html")

if(APPLE)
set_target_properties (
genManual
PROPERTIES
COMPILE_FLAGS "-include all.h -D TESTROOT=\\\\\"${PROJECT_SOURCE_DIR}\\\\\" -g -Wall -Wextra"
fn__copy_during_build(
"${CMAKE_CURRENT_SOURCE_DIR}/plugins3.html"
"${MANUAL_DEST}"
)
else(APPLE)
if (NOT MSVC)
set_target_properties (
genManual
PROPERTIES
COMPILE_FLAGS "-include all.h -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
)
else (NOT MSVC)
set_target_properties (
genManual
PROPERTIES
COMPILE_FLAGS "${PCH_INCLUDE} -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\""
)

endif (NOT MSVC)
endif(APPLE)

if(NOT MSVC)
ADD_DEPENDENCIES(genManual mops1)
endif(NOT MSVC)

add_custom_target(pluginDocumentation
ALL
DEPENDS genManual
)

add_custom_command(TARGET pluginDocumentation
POST_BUILD
COMMAND ${PROJECT_BINARY_DIR}/manual/${CMAKE_CFG_INTDIR}/genManual ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR}/share/manual
DEPENDS "${MANUAL_DEST}"
)
20 changes: 0 additions & 20 deletions manual/README

This file was deleted.

Loading

0 comments on commit d601f8f

Please sign in to comment.