Remove __DATE__/__TIME__
Building __DATE__/__TIME__ into the binaries means that every build will
create different binaries, even if all the sources are identical. This
also means that any libraries including this one will need to be patched
during every OTA.
Nothing appears to use the build_date/build_time fields, so just replace
them with empty strings.
Bug: 24204119
Change-Id: I9543eb388a1e8ab9284df9035a62fc8942cdc082
(cherry picked from commit 6e8330732f
)
This commit is contained in:
parent
9f42dfb799
commit
2d435aa433
@ -112,8 +112,13 @@ amm-info@iis.fraunhofer.de
|
|||||||
#define AACDECODER_LIB_VL1 5
|
#define AACDECODER_LIB_VL1 5
|
||||||
#define AACDECODER_LIB_VL2 10
|
#define AACDECODER_LIB_VL2 10
|
||||||
#define AACDECODER_LIB_TITLE "AAC Decoder Lib"
|
#define AACDECODER_LIB_TITLE "AAC Decoder Lib"
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define AACDECODER_LIB_BUILD_DATE ""
|
||||||
|
#define AACDECODER_LIB_BUILD_TIME ""
|
||||||
|
#else
|
||||||
#define AACDECODER_LIB_BUILD_DATE __DATE__
|
#define AACDECODER_LIB_BUILD_DATE __DATE__
|
||||||
#define AACDECODER_LIB_BUILD_TIME __TIME__
|
#define AACDECODER_LIB_BUILD_TIME __TIME__
|
||||||
|
#endif
|
||||||
|
|
||||||
static AAC_DECODER_ERROR
|
static AAC_DECODER_ERROR
|
||||||
setConcealMethod ( const HANDLE_AACDECODER self,
|
setConcealMethod ( const HANDLE_AACDECODER self,
|
||||||
|
@ -100,8 +100,13 @@ amm-info@iis.fraunhofer.de
|
|||||||
#define AACENCODER_LIB_VL1 4
|
#define AACENCODER_LIB_VL1 4
|
||||||
#define AACENCODER_LIB_VL2 12
|
#define AACENCODER_LIB_VL2 12
|
||||||
#define AACENCODER_LIB_TITLE "AAC Encoder"
|
#define AACENCODER_LIB_TITLE "AAC Encoder"
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define AACENCODER_LIB_BUILD_DATE ""
|
||||||
|
#define AACENCODER_LIB_BUILD_TIME ""
|
||||||
|
#else
|
||||||
#define AACENCODER_LIB_BUILD_DATE __DATE__
|
#define AACENCODER_LIB_BUILD_DATE __DATE__
|
||||||
#define AACENCODER_LIB_BUILD_TIME __TIME__
|
#define AACENCODER_LIB_BUILD_TIME __TIME__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "sbr_encoder.h"
|
#include "sbr_encoder.h"
|
||||||
|
@ -95,8 +95,13 @@ amm-info@iis.fraunhofer.de
|
|||||||
#define FDK_TOOLS_LIB_VL1 3
|
#define FDK_TOOLS_LIB_VL1 3
|
||||||
#define FDK_TOOLS_LIB_VL2 2
|
#define FDK_TOOLS_LIB_VL2 2
|
||||||
#define FDK_TOOLS_LIB_TITLE "FDK Tools"
|
#define FDK_TOOLS_LIB_TITLE "FDK Tools"
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define FDK_TOOLS_LIB_BUILD_DATE ""
|
||||||
|
#define FDK_TOOLS_LIB_BUILD_TIME ""
|
||||||
|
#else
|
||||||
#define FDK_TOOLS_LIB_BUILD_DATE __DATE__
|
#define FDK_TOOLS_LIB_BUILD_DATE __DATE__
|
||||||
#define FDK_TOOLS_LIB_BUILD_TIME __TIME__
|
#define FDK_TOOLS_LIB_BUILD_TIME __TIME__
|
||||||
|
#endif
|
||||||
|
|
||||||
int FDK_toolsGetLibInfo(LIB_INFO *info)
|
int FDK_toolsGetLibInfo(LIB_INFO *info)
|
||||||
{
|
{
|
||||||
|
@ -1268,8 +1268,13 @@ TRANSPORTDEC_ERROR transportDec_GetLibInfo( LIB_INFO *info )
|
|||||||
info += i;
|
info += i;
|
||||||
|
|
||||||
info->module_id = FDK_TPDEC;
|
info->module_id = FDK_TPDEC;
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
info->build_date = "";
|
||||||
|
info->build_time = "";
|
||||||
|
#else
|
||||||
info->build_date = __DATE__;
|
info->build_date = __DATE__;
|
||||||
info->build_time = __TIME__;
|
info->build_time = __TIME__;
|
||||||
|
#endif
|
||||||
info->title = TP_LIB_TITLE;
|
info->title = TP_LIB_TITLE;
|
||||||
info->version = LIB_VERSION(TP_LIB_VL0, TP_LIB_VL1, TP_LIB_VL2);
|
info->version = LIB_VERSION(TP_LIB_VL0, TP_LIB_VL1, TP_LIB_VL2);
|
||||||
LIB_VERSION_STRING(info);
|
LIB_VERSION_STRING(info);
|
||||||
|
@ -4,5 +4,10 @@
|
|||||||
#define TP_LIB_VL1 3
|
#define TP_LIB_VL1 3
|
||||||
#define TP_LIB_VL2 4
|
#define TP_LIB_VL2 4
|
||||||
#define TP_LIB_TITLE "MPEG Transport"
|
#define TP_LIB_TITLE "MPEG Transport"
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define TP_LIB_BUILD_DATE ""
|
||||||
|
#define TP_LIB_BUILD_TIME ""
|
||||||
|
#else
|
||||||
#define TP_LIB_BUILD_DATE __DATE__
|
#define TP_LIB_BUILD_DATE __DATE__
|
||||||
#define TP_LIB_BUILD_TIME __TIME__
|
#define TP_LIB_BUILD_TIME __TIME__
|
||||||
|
#endif
|
||||||
|
@ -619,8 +619,13 @@ TRANSPORTENC_ERROR transportEnc_GetLibInfo( LIB_INFO *info )
|
|||||||
info->module_id = FDK_TPENC;
|
info->module_id = FDK_TPENC;
|
||||||
info->version = LIB_VERSION(TP_LIB_VL0, TP_LIB_VL1, TP_LIB_VL2);
|
info->version = LIB_VERSION(TP_LIB_VL0, TP_LIB_VL1, TP_LIB_VL2);
|
||||||
LIB_VERSION_STRING(info);
|
LIB_VERSION_STRING(info);
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
info->build_date = "";
|
||||||
|
info->build_time = "";
|
||||||
|
#else
|
||||||
info->build_date = __DATE__;
|
info->build_date = __DATE__;
|
||||||
info->build_time = __TIME__;
|
info->build_time = __TIME__;
|
||||||
|
#endif
|
||||||
info->title = TP_LIB_TITLE;
|
info->title = TP_LIB_TITLE;
|
||||||
|
|
||||||
/* Set flags */
|
/* Set flags */
|
||||||
|
@ -4,5 +4,10 @@
|
|||||||
#define TP_LIB_VL1 3
|
#define TP_LIB_VL1 3
|
||||||
#define TP_LIB_VL2 4
|
#define TP_LIB_VL2 4
|
||||||
#define TP_LIB_TITLE "MPEG Transport"
|
#define TP_LIB_TITLE "MPEG Transport"
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define TP_LIB_BUILD_DATE ""
|
||||||
|
#define TP_LIB_BUILD_TIME ""
|
||||||
|
#else
|
||||||
#define TP_LIB_BUILD_DATE __DATE__
|
#define TP_LIB_BUILD_DATE __DATE__
|
||||||
#define TP_LIB_BUILD_TIME __TIME__
|
#define TP_LIB_BUILD_TIME __TIME__
|
||||||
|
#endif
|
||||||
|
@ -150,8 +150,13 @@ amm-info@iis.fraunhofer.de
|
|||||||
#define PCMDMX_LIB_VL1 4
|
#define PCMDMX_LIB_VL1 4
|
||||||
#define PCMDMX_LIB_VL2 2
|
#define PCMDMX_LIB_VL2 2
|
||||||
#define PCMDMX_LIB_TITLE "PCM Downmix Lib"
|
#define PCMDMX_LIB_TITLE "PCM Downmix Lib"
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define PCMDMX_LIB_BUILD_DATE ""
|
||||||
|
#define PCMDMX_LIB_BUILD_TIME ""
|
||||||
|
#else
|
||||||
#define PCMDMX_LIB_BUILD_DATE __DATE__
|
#define PCMDMX_LIB_BUILD_DATE __DATE__
|
||||||
#define PCMDMX_LIB_BUILD_TIME __TIME__
|
#define PCMDMX_LIB_BUILD_TIME __TIME__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Fixed and unique channel group indices.
|
/* Fixed and unique channel group indices.
|
||||||
|
@ -139,8 +139,13 @@ amm-info@iis.fraunhofer.de
|
|||||||
#define SBRDECODER_LIB_VL1 2
|
#define SBRDECODER_LIB_VL1 2
|
||||||
#define SBRDECODER_LIB_VL2 6
|
#define SBRDECODER_LIB_VL2 6
|
||||||
#define SBRDECODER_LIB_TITLE "SBR Decoder"
|
#define SBRDECODER_LIB_TITLE "SBR Decoder"
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define SBRDECODER_LIB_BUILD_DATE ""
|
||||||
|
#define SBRDECODER_LIB_BUILD_TIME ""
|
||||||
|
#else
|
||||||
#define SBRDECODER_LIB_BUILD_DATE __DATE__
|
#define SBRDECODER_LIB_BUILD_DATE __DATE__
|
||||||
#define SBRDECODER_LIB_BUILD_TIME __TIME__
|
#define SBRDECODER_LIB_BUILD_TIME __TIME__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2331,8 +2331,13 @@ INT sbrEncoder_GetLibInfo( LIB_INFO *info )
|
|||||||
info->module_id = FDK_SBRENC;
|
info->module_id = FDK_SBRENC;
|
||||||
info->version = LIB_VERSION(SBRENCODER_LIB_VL0, SBRENCODER_LIB_VL1, SBRENCODER_LIB_VL2);
|
info->version = LIB_VERSION(SBRENCODER_LIB_VL0, SBRENCODER_LIB_VL1, SBRENCODER_LIB_VL2);
|
||||||
LIB_VERSION_STRING(info);
|
LIB_VERSION_STRING(info);
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
info->build_date = "";
|
||||||
|
info->build_time = "";
|
||||||
|
#else
|
||||||
info->build_date = __DATE__;
|
info->build_date = __DATE__;
|
||||||
info->build_time = __TIME__;
|
info->build_time = __TIME__;
|
||||||
|
#endif
|
||||||
info->title = "SBR Encoder";
|
info->title = "SBR Encoder";
|
||||||
|
|
||||||
/* Set flags */
|
/* Set flags */
|
||||||
|
@ -101,8 +101,13 @@ amm-info@iis.fraunhofer.de
|
|||||||
#define SYS_LIB_VL1 3
|
#define SYS_LIB_VL1 3
|
||||||
#define SYS_LIB_VL2 6
|
#define SYS_LIB_VL2 6
|
||||||
#define SYS_LIB_TITLE "System Integration Library"
|
#define SYS_LIB_TITLE "System Integration Library"
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define SYS_LIB_BUILD_DATE ""
|
||||||
|
#define SYS_LIB_BUILD_TIME ""
|
||||||
|
#else
|
||||||
#define SYS_LIB_BUILD_DATE __DATE__
|
#define SYS_LIB_BUILD_DATE __DATE__
|
||||||
#define SYS_LIB_BUILD_TIME __TIME__
|
#define SYS_LIB_BUILD_TIME __TIME__
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user