From a4e3a1191949449d1fda319771c725fdaa6f8b75 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 5 May 2018 15:11:17 +0200 Subject: Build compilation database (clangdb) when compiling --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 441ec2f..db57648 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -79,12 +79,16 @@ using namespace std::chrono; // This is to include lgpl dependencies as dynamic libraries and give error if you are using gpl dependencies in a non gpl project. // If the license type is custom, then the ways the library can be used should be defined in such a way that dependent projects can determinate // if the dependency can be used without breaking compatibility between licenses. +// License notice has to be in a file called LICENSE or COPYING in the root directory of the project and these files will be combined automatically +// for all dependencies when releasing your software, as including license with software is often required. // TODO: Dynamically link libgit2 (sibs dependency) since it's under lgpl license. Optionally implement git clone/pull with MIT license. // TODO: Auto export all symbols under windows (https://stackoverflow.com/questions/225432/export-all-symbols-when-creating-a-dll) // TODO: Fix issue where when you have a dependency on a cmake project with dynamic library, the dynamic library wont be found at runtime for whatever reason +// TODO: Add program command for generating compile_commands.json without compiling code, without using Ninja + #if OS_FAMILY == OS_FAMILY_POSIX #define ferr std::cerr #else @@ -259,7 +263,7 @@ int buildProject(const FileString &projectPath, const FileString &projectConfFil } backend::BackendUtils::collectSourceFiles(projectPath.c_str(), &ninja, sibsConfig); - + sibsConfig.setMainProject(true); Result buildFileResult = ninja.build(sibsConfig, buildPath.c_str()); if(buildFileResult.isErr()) { -- cgit v1.2.3