2015-01-12 16:48:11 +03:00
|
|
|
# copy the python nautilus plugin to build dir as it is going to
|
|
|
|
# be changed.
|
|
|
|
if( UNIX AND NOT APPLE )
|
|
|
|
|
|
|
|
configure_file(syncstate.py syncstate.py COPYONLY)
|
2015-12-22 13:05:00 +03:00
|
|
|
configure_file(syncstate.py syncstate_nemo.py COPYONLY)
|
2016-10-24 16:36:23 +03:00
|
|
|
configure_file(syncstate.py syncstate_caja.py COPYONLY)
|
2015-01-12 16:48:11 +03:00
|
|
|
|
|
|
|
# Call the setupappname.sh script to set the custom app name.
|
|
|
|
set (cmd "${CMAKE_CURRENT_SOURCE_DIR}/setappname.sh")
|
|
|
|
execute_process(COMMAND ${cmd} ${APPLICATION_SHORTNAME}
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
ERROR_VARIABLE errors OUTPUT_VARIABLE out)
|
|
|
|
|
2015-12-22 13:05:00 +03:00
|
|
|
# Create a nemo plugin script from the nautilus one.
|
|
|
|
# nemocmd copies the syncstate.py and performs string replacement.
|
|
|
|
set (nemocmd "${CMAKE_CURRENT_SOURCE_DIR}/createnemoplugin.sh")
|
|
|
|
execute_process(COMMAND ${nemocmd}
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
ERROR_VARIABLE errors OUTPUT_VARIABLE out)
|
|
|
|
|
2016-10-24 16:36:23 +03:00
|
|
|
# Create a caja plugin script from the nautilus one.
|
|
|
|
# cajacmd copies the syncstate.py and performs string replacement.
|
|
|
|
set (cajacmd "${CMAKE_CURRENT_SOURCE_DIR}/createcajaplugin.sh")
|
|
|
|
execute_process(COMMAND ${cajacmd}
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
ERROR_VARIABLE errors OUTPUT_VARIABLE out)
|
|
|
|
|
2015-12-22 13:05:00 +03:00
|
|
|
|
2016-09-28 14:09:15 +03:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/syncstate.py DESTINATION ${DATADIR}/nautilus-python/extensions RENAME syncstate-${APPLICATION_SHORTNAME}.py)
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/syncstate_nemo.py DESTINATION ${DATADIR}/nemo-python/extensions RENAME syncstate-${APPLICATION_SHORTNAME}.py)
|
2016-10-24 16:36:23 +03:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/syncstate_caja.py DESTINATION ${DATADIR}/caja-python/extensions RENAME syncstate-${APPLICATION_SHORTNAME}.py)
|
2015-12-22 13:05:00 +03:00
|
|
|
|
|
|
|
|
2015-01-12 16:48:11 +03:00
|
|
|
|
|
|
|
endif()
|
2014-08-29 22:01:39 +04:00
|
|
|
|