J
Jakob Simon-Gaarde
Some project includes files from different libraries lib1,lib2 and
lib3 all having each there own version header file. I need to be able
to pick up these values in a single define value DEP_PROJECT. pseudo
preprocessor code would look like this:
1. Lib1 version header is included:
#define PROJ_NAME "Lib1"
#define PROJ_VERSION 102
#define DEP_PROJECTS DEP_PROJECTS,PROJ_NAME PROJ_VERSION,
(DEP_PROJECTS = "Lib1",102,)
2. Lib2 version header is included:
#define PROJ_NAME "Lib2"
#define PROJ_VERSION 422
#define DEP_PROJECTS DEP_PROJECTS,PROJ_NAME PROJ_VERSION,
(DEP_PROJECTS = "Lib1",102,"Lib2",422,)
3. Lib3 version header is included:
#define PROJ_NAME "Lib3"
#define PROJ_VERSION 865
#define DEP_PROJECTS DEP_PROJECTS,PROJ_NAME PROJ_VERSION,
(DEP_PROJECTS = "Lib1",102,"Lib2",422,"Lib3",865,)
But can it be done somehow?
Best regards Jakob
lib3 all having each there own version header file. I need to be able
to pick up these values in a single define value DEP_PROJECT. pseudo
preprocessor code would look like this:
1. Lib1 version header is included:
#define PROJ_NAME "Lib1"
#define PROJ_VERSION 102
#define DEP_PROJECTS DEP_PROJECTS,PROJ_NAME PROJ_VERSION,
(DEP_PROJECTS = "Lib1",102,)
2. Lib2 version header is included:
#define PROJ_NAME "Lib2"
#define PROJ_VERSION 422
#define DEP_PROJECTS DEP_PROJECTS,PROJ_NAME PROJ_VERSION,
(DEP_PROJECTS = "Lib1",102,"Lib2",422,)
3. Lib3 version header is included:
#define PROJ_NAME "Lib3"
#define PROJ_VERSION 865
#define DEP_PROJECTS DEP_PROJECTS,PROJ_NAME PROJ_VERSION,
(DEP_PROJECTS = "Lib1",102,"Lib2",422,"Lib3",865,)
But can it be done somehow?
Best regards Jakob