Changeset 45 in flair-src for trunk/tools


Ignore:
Timestamp:
Jul 18, 2016, 4:13:56 PM (5 years ago)
Author:
Sanahuja Guillaume
Message:

added compile info

Location:
trunk/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Dbt2csv/CMakeLists.txt

    r40 r45  
    4040
    4141add_custom_target(
    42         svn_rev
    43         COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/svn_revision.sh $ENV{FLAIR_ROOT}/flair-src ${CMAKE_CURRENT_SOURCE_DIR}/src/svnversion.h
     42        compile_info
     43        COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h
    4444)
    4545
    46 add_dependencies(${PROJECT_NAME} svn_rev)
    47 
     46add_dependencies(${PROJECT_NAME} compile_info)
    4847
    4948SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
  • trunk/tools/Dbt2csv/src/main.cpp

    r16 r45  
    44
    55#include <stdio.h>
    6 #include "svnversion.h"
     6#include "unexported/compile_info.h"
    77#include "file_ui.h"
    88#include <QFileDialog>
    99
    1010int main(int argc, char *argv[]) {
    11   printf(SVN_REV);
     11  compile_info("Dbt2Csv");
    1212
    1313  QLocale::setDefault(QLocale::C);
  • trunk/tools/FlairGCS/CMakeLists.txt

    r40 r45  
    9292
    9393add_custom_target(
    94         svn_rev
    95         COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/svn_revision.sh $ENV{FLAIR_ROOT}/flair-src ${CMAKE_CURRENT_SOURCE_DIR}/src/svnversion.h
     94        compile_info
     95        COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h
    9696)
    9797
    98 add_dependencies(${PROJECT_NAME} svn_rev)
     98add_dependencies(${PROJECT_NAME} compile_info)
    9999
    100100
  • trunk/tools/FlairGCS/src/main.cpp

    r15 r45  
    1010
    1111#include "Manager.h"
    12 #include "svnversion.h"
     12#include "unexported/compile_info.h"
    1313
    1414using namespace TCLAP;
     
    5151  }
    5252
    53   printf(SVN_REV);
     53  compile_info("FlairGCS");
    5454
    5555  parseOptions(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.