diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-01-31 20:44:25 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-01-31 21:43:59 +0200 |
commit | c5b1441ede3c58f1fe92372cbb48864f9d4df6ec (patch) | |
tree | c86b771e67121fe3ff1711f403bd633c02e93ec4 /config_host/config_version.h.in | |
parent | Add vcl.atsui and vcl.coretext (diff) | |
download | core-c5b1441ede3c58f1fe92372cbb48864f9d4df6ec.tar.gz core-c5b1441ede3c58f1fe92372cbb48864f9d4df6ec.zip |
Use separate config_*.h files for BUILD and HOST when cross-compiling
We have only been lucky so far that there hasn't been any compilation errors
caused by using the HOST platform config_*.h files also for the BUILD
platform. But as more and more information found out during configury is
stored in config_*.h files, sooner or later it will be a problem.
Move config/* to config_host/*. When not cross-compiling, the config_*.h files
in config_host expanded from config_*.h.in are all there is. When
cross-compiling, the generated config_*.h files for the BUILD platform are
put into a config_build folder.
Then use config_build when building the cross_toolset and config_host
otherwise.
Change-Id: I3c28cc83866bffd696b45d00dfb68e00bc2ae538
Diffstat (limited to 'config_host/config_version.h.in')
-rw-r--r-- | config_host/config_version.h.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/config_host/config_version.h.in b/config_host/config_version.h.in new file mode 100644 index 000000000000..736c578afc8c --- /dev/null +++ b/config_host/config_version.h.in @@ -0,0 +1,26 @@ +/* +Version settings + version 4.0.0.1 is Major.Minor.Micro.Patch +*/ + +#ifndef CONFIG_VERSION_H +#define CONFIG_VERSION_H + +#define LIBO_VERSION_STRINGIFY_inner(s) #s +#define LIBO_VERSION_STRINGIFY(s) LIBO_VERSION_STRINGIFY_inner(s) + +#undef LIBO_VERSION_MAJOR +#undef LIBO_VERSION_MINOR +#undef LIBO_VERSION_MICRO +#undef LIBO_VERSION_PATCH + +#define LIBO_VERSION_DOTTED \ + (LIBO_VERSION_STRINGIFY(LIBO_VERSION_MAJOR) "." \ + LIBO_VERSION_STRINGIFY(LIBO_VERSION_MINOR) "." \ + LIBO_VERSION_STRINGIFY(LIBO_VERSION_MICRO) "." \ + LIBO_VERSION_STRINGIFY(LIBO_VERSION_PATCH)) + +#define LIBO_VERSION_ENCODED_IN_32BITS \ + ((LIBO_VERSION_MAJOR << 24) | (LIBO_VERSION_MINOR << 16) | (LIBO_VERSION_MICRO << 8) | LIBO_VERSION_PATCH) + +#endif |