Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This project show how to create a software with multiple functions, and you can enable or disable them differentially using a license file.

First clone and download submodules:

git submodule init --recursive
git submodule update --recursive

Check that the folder program_features\extern\licensecc exists. Install the prerequisites for Linux or Windows.

cd build
cmake .. -DCMAKE_INSTALL_PREFIX=.    #in windows you also need to specify -DBOOST_ROOT=`folder where boost is installed`
cmake --build . --target install

When the application is compiled try to run the example executable:

./example

> license ERROR :
>    license file not found 
> pc signature is :
>    AAAW-PqgF-zgA=

Generate a license for the main application running (remember to use your own hardware id!):

bin/lccgen license issue -p ../projects/DEFAULT/ -s AAAW-PqgF-zgA= -o example.lic
./example

> license for main software OK
> MY_AWESOME_FUNC is NOT licensed

Generate a license for the feature:

bin/lccgen license issue -p ../projects/DEFAULT/ -f MY_AWESOME_FUNC -s AAAW-PqgF-zgA= -o example.lic
./example

> license for main software OK
> MY_AWESOME_FUNC is licensed