<commit_before>########### next target ###############

include( ${QT_USE_FILE} )
add_definitions(${QT_DEFINITIONS})

include_directories(
	${QT_INCLUDE_DIR}
	${QT_QTDBUS_INCLUDE_DIR}
)

set( skypeactionhandler_SRCS
	skypeactionhandler.cpp
)

add_executable( skypeactionhandler ${skypeactionhandler_SRCS} )
set_target_properties( skypeactionhandler PROPERTIES OUTPUT_NAME skype-action-handler )
target_link_libraries( skypeactionhandler ${QT_LIBRARIES} ${QT_QTDBUS_LIBRARY} )

########### next target ###############

set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default" )
add_definitions(-DQT_PLUGIN -DQT_SHARED)

string( REGEX MATCHALL ^$ENV{HOME}.*$ IS_HOME ${CMAKE_INSTALL_PREFIX} )
string( COMPARE EQUAL /usr ${CMAKE_INSTALL_PREFIX} IS_USR )
string( COMPARE EQUAL /usr/local ${CMAKE_INSTALL_PREFIX} IS_LOCAL )

if( NOT MOZPLUGIN_INSTALL_DIR )
	if( IS_HOME AND NOT IS_USR AND NOT IS_LOCAL )
		set( MOZPLUGIN_INSTALL_DIR $ENV{HOME}/.mozilla/plugins )
	endif( IS_HOME AND NOT IS_USR AND NOT IS_LOCAL )
	if( NOT IS_HOME AND IS_USR AND NOT IS_LOCAL )
		set( MOZPLUGIN_INSTALL_DIR /usr/lib/mozilla/plugins )
	endif( NOT IS_HOME AND IS_USR AND NOT IS_LOCAL )
	if( NOT IS_HOME AND NOT IS_USR AND IS_LOCAL )
		set( MOZPLUGIN_INSTALL_DIR /usr/local/netscape/plugins )
	endif( NOT IS_HOME AND NOT IS_USR AND IS_LOCAL )
	if( NOT IS_HOME AND NOT IS_USR AND NOT IS_LOCAL )
		set( MOZPLUGIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib/mozilla/plugins )
	endif( NOT IS_HOME AND NOT IS_USR AND NOT IS_LOCAL )
endif( NOT MOZPLUGIN_INSTALL_DIR )

message( STATUS "Mozilla plugin install dir is \"${MOZPLUGIN_INSTALL_DIR}\" to change use parm -DMOZPLUGIN_INSTALL_DIR=<directory>" )

#TODO: Check if QtBrowerPlugin (or QtNsPlugin?) installed and use it

set( skypebuttons_SRCS
	skypebuttons.cpp
	qtbrowserplugin/qtbrowserplugin.cpp
	qtbrowserplugin/qtbrowserplugin_x11.cpp
)

QT4_GENERATE_MOC( ${CMAKE_CURRENT_SOURCE_DIR}/skypebuttons.cpp ${CMAKE_CURRENT_BINARY_DIR}/skypebuttons.moc )<commit_msg>Follow LIB_SUFFIX when installing the mozilla plugin. I have no idea if<commit_after>########### next target ###############

include( ${QT_USE_FILE} )
add_definitions(${QT_DEFINITIONS})

include_directories(
	${QT_INCLUDE_DIR}
	${QT_QTDBUS_INCLUDE_DIR}
)

set( skypeactionhandler_SRCS
	skypeactionhandler.cpp
)

add_executable( skypeactionhandler ${skypeactionhandler_SRCS} )
set_target_properties( skypeactionhandler PROPERTIES OUTPUT_NAME skype-action-handler )
target_link_libraries( skypeactionhandler ${QT_LIBRARIES} ${QT_QTDBUS_LIBRARY} )

########### next target ###############

set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default" )
add_definitions(-DQT_PLUGIN -DQT_SHARED)

string( REGEX MATCHALL ^$ENV{HOME}.*$ IS_HOME ${CMAKE_INSTALL_PREFIX} )
string( COMPARE EQUAL /usr ${CMAKE_INSTALL_PREFIX} IS_USR )
string( COMPARE EQUAL /usr/local ${CMAKE_INSTALL_PREFIX} IS_LOCAL )

if( NOT MOZPLUGIN_INSTALL_DIR )
	if( IS_HOME AND NOT IS_USR AND NOT IS_LOCAL )
		set( MOZPLUGIN_INSTALL_DIR $ENV{HOME}/.mozilla/plugins )
	endif( IS_HOME AND NOT IS_USR AND NOT IS_LOCAL )
	if( NOT IS_HOME AND IS_USR AND NOT IS_LOCAL )
		set( MOZPLUGIN_INSTALL_DIR /usr/lib${LIB_SUFFIX}/mozilla/plugins )
	endif( NOT IS_HOME AND IS_USR AND NOT IS_LOCAL )
	if( NOT IS_HOME AND NOT IS_USR AND IS_LOCAL )
		set( MOZPLUGIN_INSTALL_DIR /usr/local/netscape/plugins )
	endif( NOT IS_HOME AND NOT IS_USR AND IS_LOCAL )
	if( NOT IS_HOME AND NOT IS_USR AND NOT IS_LOCAL )
		set( MOZPLUGIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/mozilla/plugins )
	endif( NOT IS_HOME AND NOT IS_USR AND NOT IS_LOCAL )
endif( NOT MOZPLUGIN_INSTALL_DIR )

message( STATUS "Mozilla plugin install dir is \"${MOZPLUGIN_INSTALL_DIR}\" to change use parm -DMOZPLUGIN_INSTALL_DIR=<directory>" )

#TODO: Check if QtBrowerPlugin (or QtNsPlugin?) installed and use it

set( skypebuttons_SRCS
	skypebuttons.cpp
	qtbrowserplugin/qtbrowserplugin.cpp
	qtbrowserplugin/qtbrowserplugin_x11.cpp
)

QT4_GENERATE_MOC( ${CMAKE_CURRENT_SOURCE_DIR}/skypebuttons.cpp ${CMAKE_CURRENT_BINARY_DIR}/skypebuttons.moc )
{'fraction_non_alphanumeric': 0.10916707737801873, 'fraction_numerical': 0.0014785608674223755, 'mean_word_length': 6.502772643253235, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1358782', 'n_tokens_mistral': 1601, 'n_tokens_neox': 1507, 'n_words': 341}