mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 21:02:02 +03:00
f321cd8ae6
Removes all Explorer Navigation Pane entries for a given ApplicationName, specified in NavRemove.ini in the working directory. Also compiles a DLL with the same behaviour that exports: - RemoveNavigationPaneEntries Both tool variants are Mutex-protected. Statically linked, optimized for binary size, no Qt dependencies. Signed-off-by: Michael Schuster <michael@schuster.ms>
25 lines
478 B
CMake
25 lines
478 B
CMake
add_definitions(-D_NAVREMOVE_EXPORTS)
|
|
add_definitions(-D_USRDLL)
|
|
add_definitions(-D_WINDLL)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}/../
|
|
)
|
|
|
|
set(TARGET_NAME libNavRemove${BITNESS})
|
|
|
|
add_library(${TARGET_NAME} MODULE
|
|
dllmain.cpp
|
|
NavRemove.cpp
|
|
exports.def
|
|
../ConfigIni.cpp
|
|
${CMAKE_CURRENT_BINARY_DIR}/../version.rc
|
|
)
|
|
|
|
target_link_libraries(${TARGET_NAME}
|
|
NCToolsShared
|
|
)
|
|
|
|
install(TARGETS ${TARGET_NAME}
|
|
DESTINATION tools/NCNavRemove/dll/
|
|
)
|