mirror of
https://github.com/alexkay/spek.git
synced 2025-06-15 14:52:24 +03:00
Remove HOST_OS
We can now detect the OS at compile time.
This commit is contained in:
parent
3c53552789
commit
c32a645954
@ -3,14 +3,6 @@
|
|||||||
AC_INIT([spek],[0.6])
|
AC_INIT([spek],[0.6])
|
||||||
AC_CONFIG_SRCDIR([src/spek.vala])
|
AC_CONFIG_SRCDIR([src/spek.vala])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
# Determine the system type.
|
|
||||||
AC_CANONICAL_HOST
|
|
||||||
AC_SUBST(host_os)
|
|
||||||
AC_DEFINE_UNQUOTED(HOST_OS, "$host_os",
|
|
||||||
[Define the canonical host OS type.]
|
|
||||||
)
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2])
|
AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2])
|
||||||
|
|
||||||
# Enable silent rules is available
|
# Enable silent rules is available
|
||||||
|
@ -43,10 +43,10 @@ namespace Spek {
|
|||||||
private double FONT_SCALE = 1.0;
|
private double FONT_SCALE = 1.0;
|
||||||
|
|
||||||
public Spectrogram () {
|
public Spectrogram () {
|
||||||
|
#if G_OS_DARWIN
|
||||||
// Pango/Quartz fonts are smaller than on X.
|
// Pango/Quartz fonts are smaller than on X.
|
||||||
if (Config.HOST_OS.down ().has_prefix ("darwin")) {
|
|
||||||
FONT_SCALE = 1.4;
|
FONT_SCALE = 1.4;
|
||||||
}
|
#endif
|
||||||
|
|
||||||
// Pre-draw the palette.
|
// Pre-draw the palette.
|
||||||
palette = new ImageSurface (Format.RGB24, RULER, BANDS);
|
palette = new ImageSurface (Format.RGB24, RULER, BANDS);
|
||||||
|
@ -13,7 +13,4 @@ namespace Config {
|
|||||||
public const string LOCALEDIR; /* /usr/local/share/locale */
|
public const string LOCALEDIR; /* /usr/local/share/locale */
|
||||||
public const string PKGDATADIR; /* /usr/local/share/spek */
|
public const string PKGDATADIR; /* /usr/local/share/spek */
|
||||||
public const string PKGLIBDIR; /* /usr/local/lib/spek */
|
public const string PKGLIBDIR; /* /usr/local/lib/spek */
|
||||||
|
|
||||||
/* freebsd*, linux*, mingw*, darwin*, etc. */
|
|
||||||
public const string HOST_OS;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user