Commit b2ff50bb authored by Ralf Habacker's avatar Ralf Habacker

Add static parser build only support.

parent 9d9bc492
......@@ -45,8 +45,11 @@ include_directories(
${KDEVPGQT_INCLUDE_DIR}
)
if(NOT BUILD_PARSER_ONLY)
add_subdirectory(app_templates)
endif()
add_subdirectory(parser)
if(NOT BUILD_PARSER_ONLY)
add_subdirectory(duchain)
add_subdirectory(completion)
add_subdirectory(testprovider)
......@@ -73,11 +76,15 @@ target_link_libraries(kdevphplanguagesupport
)
install(TARGETS kdevphplanguagesupport DESTINATION ${PLUGIN_INSTALL_DIR})
endif()
configure_file(kdevphpsupport.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdevphpsupport.desktop)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdevphpsupport.desktop DESTINATION ${SERVICES_INSTALL_DIR})
# not writeable so that the refactoring actions get hidden
install(FILES phpfunctions.php DESTINATION ${DATA_INSTALL_DIR}/kdevphpsupport PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
if(NOT NO_INSTALL)
install(FILES phpfunctions.php DESTINATION ${DATA_INSTALL_DIR}/kdevphpsupport PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
endif()
include(CTest)
......
......@@ -10,7 +10,11 @@ kdevpgqt_generate(parser_SRCS php NAMESPACE Php DEBUG_VISITOR TOKEN_TEXT
"${php_SOURCE_DIR}/parser/phplexer.h"
)
kde4_add_library( kdev4phpparser SHARED ${parser_SRCS} ${parser_STAT_SRCS} )
if(NO_INSTALL)
kde4_add_library( kdev4phpparser STATIC ${parser_SRCS} ${parser_STAT_SRCS} )
else()
kde4_add_library( kdev4phpparser SHARED ${parser_SRCS} ${parser_STAT_SRCS} )
endif()
target_link_libraries( kdev4phpparser LINK_PRIVATE
${KDE4_KDECORE_LIBS}
${KDEVPLATFORM_LANGUAGE_LIBRARIES}
......@@ -32,4 +36,6 @@ target_link_libraries(php-parser
kdev4phpparser
)
install(TARGETS kdev4phpparser DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
if(NOT NO_INSTALL)
install(TARGETS kdev4phpparser DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
endif()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment