src: Removed everything license key related
* removed license check * removed license from ApplicationSettings * removed LicenseGenerator * removed license tests * removed lib_license * removed dependency on Botan * removed license generation in all scripts
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
#ifndef PRIVATE_KEY_H
|
||||
#define PRIVATE_KEY_H
|
||||
|
||||
// This File(PrivateKey.h) is generated with CMake
|
||||
|
||||
#include <string>
|
||||
|
||||
const char PRIVATE_KEY[] = "@KEY@";
|
||||
|
||||
#endif // PRIVATE_KEY_H
|
||||
@@ -1,10 +0,0 @@
|
||||
#ifndef PUBLIC_KEY_H
|
||||
#define PUBLIC_KEY_H
|
||||
|
||||
// This File(PublicKey.h) is generated with CMake
|
||||
|
||||
#include <string>
|
||||
|
||||
const char PUBLIC_KEY[] = "@KEY@";
|
||||
|
||||
#endif // PUBLIC_KEY_H
|
||||
@@ -22,7 +22,6 @@ endfunction(AddLicense)
|
||||
|
||||
|
||||
AddLicense("Boost" "1.64" "http://www.boost.org" "${LICENSEFOLDER}/license_boost.txt")
|
||||
AddLicense("Botan" "2.1.0" "http://botan.randombit.net/" "${LICENSEFOLDER}/license_botan.txt")
|
||||
AddLicense("Clang" "7.0.0" "http://clang.llvm.org/" "${LICENSEFOLDER}/license_clang.txt")
|
||||
AddLicense("CppSQLite" "3.2" "http://www.codeproject.com/Articles/6343/CppSQLite-C-Wrapper-for-SQLite" "${LICENSEFOLDER}/license_cpp_sqlite.txt")
|
||||
AddLicense("Eclipse" "" "https://github.com/eclipse/eclipse.jdt.core" "${LICENSEFOLDER}/license_eclipse.txt")
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
# searching for private key file of the Sourcetrail version in setup/RSA_keys
|
||||
# if found the file will be put into a const string into the PrivateKey.h file
|
||||
|
||||
string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" VERSION_MAJOR "${GIT_VERSION_NUMBER}")
|
||||
message(STATUS "Get Public Key for Sourcetrail version: ${VERSION_MAJOR}")
|
||||
|
||||
message(STATUS "${CMAKE_SOURCE_DIR}/setup/RSA_keys/private-sourcetrail.pem")
|
||||
|
||||
set(privateKeyFile "${CMAKE_SOURCE_DIR}/setup/RSA_keys/private-sourcetrail.pem")
|
||||
|
||||
if(EXISTS ${privateKeyFile})
|
||||
file(READ ${privateKeyFile} KEY)
|
||||
STRING(REGEX REPLACE "\"" "\\\\\"" KEY "${KEY}")
|
||||
STRING(REGEX REPLACE "\n" "\\\\n\"\n\t\"" KEY "${KEY}")
|
||||
else()
|
||||
message(FATAL_ERROR "private keyfile for Sourcetrail not found")
|
||||
endif()
|
||||
|
||||
configure_file(
|
||||
${CMAKE_SOURCE_DIR}/cmake/PrivateKey.h.in
|
||||
${CMAKE_BINARY_DIR}/src/license_generator/PrivateKey.h
|
||||
)
|
||||
@@ -1,23 +0,0 @@
|
||||
# searching for public key file of the Sourcetrail version in setup/RSA_keys
|
||||
# if found the file will be put into a const string into the PubicKey.h file
|
||||
|
||||
string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" VERSION_MAJOR "${GIT_VERSION_NUMBER}")
|
||||
message(STATUS "Get Public Key for Sourcetrail version: ${VERSION_MAJOR}")
|
||||
|
||||
message(STATUS "${CMAKE_SOURCE_DIR}/setup/RSA_keys/public-sourcetrail.pem")
|
||||
|
||||
set(pubKeyFile "${CMAKE_SOURCE_DIR}/setup/RSA_keys/public-sourcetrail.pem")
|
||||
|
||||
if(EXISTS ${pubKeyFile})
|
||||
file(READ ${pubKeyFile} KEY)
|
||||
STRING(REGEX REPLACE "\"" "\\\\\"" KEY "${KEY}")
|
||||
STRING(REGEX REPLACE "\n" "\\\\n\"\n\t\"" KEY "${KEY}")
|
||||
else()
|
||||
message(FATAL_ERROR "public keyfile for Sourcetrail not found")
|
||||
#message(WARNING "public keyfile for Sourcetrail not found")
|
||||
endif()
|
||||
|
||||
configure_file(
|
||||
${CMAKE_SOURCE_DIR}/cmake/PublicKey.h.in
|
||||
${CMAKE_BINARY_DIR}/src/lib_license/PublicKey.h
|
||||
)
|
||||
Reference in New Issue
Block a user