Avoid relying on symlink for include directories

Symlinks aren't working very well with Git under Windows so better avoid
them.
This commit is contained in:
Martchus 2023-02-27 18:22:28 +01:00
parent 5f44e2b49e
commit 96e92f13a3
169 changed files with 13 additions and 21 deletions

10
.gitignore vendored
View File

@ -32,7 +32,7 @@ Makefile*
*.qmlproject.user.*
# Go modules
/libsyncthing/go/pkg
/syncthing/go/pkg
# Dolphin
.directory
@ -47,12 +47,12 @@ testfiles/output.*
scripts/
# clang-format
/libsyncthing/.clang-format
/syncthing/.clang-format
/cli/.clang-format
/connector/.clang-format
/syncthingconnector/.clang-format
/fileitemactionplugin/.clang-format
/model/.clang-format
/syncthingmodel/.clang-format
/testhelper/.clang-format
/tray/.clang-format
/plasmoid/lib/.clang-format
/widgets/.clang-format
/syncthingwidgets/.clang-format

2
.gitmodules vendored
View File

@ -1,4 +1,4 @@
[submodule "libsyncthing/go/src/github.com/syncthing/syncthing"]
path = libsyncthing/go/src/github.com/syncthing/syncthing
path = syncthing/go/src/github.com/syncthing/syncthing
url = https://github.com/Martchus/syncthing.git
branch = libsyncthing

View File

@ -57,29 +57,26 @@ else()
endif()
endif()
# set the include directory used when building so the headers of the different backend libraries can be found at build time
set(TARGET_INCLUDE_DIRECTORY_BUILD_INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
set(PACKAGE_NAMESPACE "" CACHE STRING "sets the prefix for find_package() calls to packages configured via c++utilities")
if (PACKAGE_NAMESPACE)
set(PACKAGE_NAMESPACE_PREFIX "${PACKAGE_NAMESPACE}-")
endif ()
# add subdirectories
add_subdirectory(connector)
add_subdirectory(syncthingconnector)
add_subdirectory(testhelper)
if (NOT NO_LIBSYNCTHING)
add_subdirectory(libsyncthing)
add_subdirectory(syncthing)
endif()
link_directories(${LIB_SYNCTHING_CONNECTOR_BINARY_DIR})
if(NOT NO_CLI)
add_subdirectory(cli)
endif()
if(NOT NO_MODEL)
add_subdirectory(model)
add_subdirectory(syncthingmodel)
link_directories(${LIB_SYNCTHING_MODEL_BINARY_DIR})
if(NOT NO_WIDGETS)
add_subdirectory(widgets)
add_subdirectory(syncthingwidgets)
if(NOT NO_TRAY)
add_subdirectory(tray)
endif()

View File

@ -13,8 +13,8 @@ set(SRC_FILES main.cpp args.cpp application.cpp)
set(TEST_HEADER_FILES)
set(TEST_SRC_FILES tests/application.cpp)
# use testfiles directory from connector
set(META_SRCDIR_REFS "${CMAKE_CURRENT_SOURCE_DIR}\n${CMAKE_CURRENT_SOURCE_DIR}/../connector")
# use testfiles directory from syncthingconnector
set(META_SRCDIR_REFS "${CMAKE_CURRENT_SOURCE_DIR}\n${CMAKE_CURRENT_SOURCE_DIR}/../syncthingconnector")
# find c++utilities
find_package(${PACKAGE_NAMESPACE_PREFIX}c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.21.0 REQUIRED)

View File

@ -1 +0,0 @@
../libsyncthing

View File

@ -1 +0,0 @@
../connector

View File

@ -1 +0,0 @@
../model

View File

@ -1 +0,0 @@
../widgets

View File

@ -1,6 +1,5 @@
#include "./syncthingprocess.h"
#include <syncthingconnector/syncthingconnection.h>
#include "./syncthingconnection.h"
#include <QEventLoop>
#include <QStringBuilder>

Some files were not shown because too many files have changed in this diff Show More