fold version macros into runtime functions to avoid cascade rebuilds when modifying the core

This commit is contained in:
Anthony Minessale
2014-01-17 01:54:47 +05:00
parent 104ce2a35f
commit 8dfbd91a3d
22 changed files with 157 additions and 39 deletions

View File

@@ -49,7 +49,6 @@
#endif
#include <switch.h>
#include <switch_version.h>
#include "private/switch_core_pvt.h"
/* pid filename: Stores the process id of the freeswitch process */
@@ -676,7 +675,7 @@ int main(int argc, char *argv[])
}
else if (!strcmp(local_argv[x], "-version")) {
fprintf(stdout, "FreeSWITCH version: %s (%s)\n", SWITCH_VERSION_FULL, SWITCH_VERSION_REVISION_HUMAN);
fprintf(stdout, "FreeSWITCH version: %s (%s)\n", switch_version_full(), switch_version_revision_human());
exit(EXIT_SUCCESS);
}
#endif