[glade] Move build/linux64 -> build/linux



commit 434785caae1efc015e216af4d9a906294c88faf1
Author: Tristan Van Berkom <tristan upstairslabs com>
Date:   Sat Dec 14 22:06:43 2013 +0900

    Move build/linux64 -> build/linux
    
    Modified AppRun and jhbuildrc so that the build is 32/64 bit capable.

 build/{linux64 => linux}/AppRun                    |    8 ++--
 build/{linux64 => linux}/LibcWrapGenerator.vala    |    0
 build/{linux64 => linux}/PrepareAppDir.sh          |    0
 build/{linux64 => linux}/README                    |    0
 build/{linux64 => linux}/README.lfs                |    0
 build/linux/jhbuildrc                              |   57 ++++++++++++++++++++
 build/{linux64 => linux}/libcwrap.h                |    0
 build/{linux64 => linux}/modulesets/bundle.modules |    0
 .../modulesets/patches/cairo-avoid-longjmp.patch   |    0
 .../modulesets/patches/pango-old-fontconfig.patch  |    0
 .../modulesets/patches/pango-relative-paths.patch  |    0
 build/{linux64 => linux}/pangorc                   |    0
 .../{linux64 => linux}/triggers/gdk-pixbuf.trigger |    0
 build/{linux64 => linux}/triggers/glib.trigger     |    0
 build/{linux64 => linux}/triggers/gtk+.trigger     |    0
 .../triggers/mime-database.trigger                 |    0
 build/{linux64 => linux}/triggers/pango.trigger    |    0
 build/linux64/jhbuildrc                            |   32 -----------
 18 files changed, 61 insertions(+), 36 deletions(-)
---
diff --git a/build/linux64/AppRun b/build/linux/AppRun
similarity index 82%
rename from build/linux64/AppRun
rename to build/linux/AppRun
index 6ff9c88..237f464 100755
--- a/build/linux64/AppRun
+++ b/build/linux/AppRun
@@ -4,7 +4,7 @@
 INSTALL_PREFIX=/home/tristan/AppImages/Install
 
 # Base environment variables
-LD_LIBRARY_PATH=${APPDIR}${INSTALL_PREFIX}/lib64:${APPDIR}${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}
+LD_LIBRARY_PATH=${APPDIR}${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}
 PATH=${APPDIR}${INSTALL_PREFIX}/bin:${PATH}
 XDG_DATA_DIRS=${APPDIR}${INSTALL_PREFIX}/share:${XDG_DATA_DIRS}
 export LD_LIBRARY_PATH PATH XDG_DATA_DIRS
@@ -20,15 +20,15 @@ export PANGO_RC_FILE
 # GTK+/GIO/GdkPixbuf environment variables
 # http://askubuntu.com/questions/251712/how-can-i-install-a-gsettings-schema-without-root-privileges
 GSETTINGS_SCHEMA_DIR=${APPDIR}${INSTALL_PREFIX}/share/glib-2.0/schemas/:${GSETTINGS_SCHEMA_DIR}
-GDK_PIXBUF_MODULE_FILE=${APPDIR}${INSTALL_PREFIX}/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
-GTK_PATH=${APPDIR}${INSTALL_PREFIX}/lib64/gtk-3.0
+GDK_PIXBUF_MODULE_FILE=${APPDIR}${INSTALL_PREFIX}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
+GTK_PATH=${APPDIR}${INSTALL_PREFIX}/lib/gtk-3.0
 GTK_DATA_PREFIX=${APPDIR}${INSTALL_PREFIX}
 GTK_THEME=Adwaita
 export GSETTINGS_SCHEMA_DIR GDK_PIXBUF_MODULE_FILE GTK_PATH GTK_DATA_PREFIX GTK_THEME
 
 # Glade environment variables
 GLADE_CATALOG_SEARCH_PATH=${APPDIR}${INSTALL_PREFIX}/share/glade/catalogs
-GLADE_MODULE_SEARCH_PATH=${APPDIR}${INSTALL_PREFIX}/lib64/glade/modules
+GLADE_MODULE_SEARCH_PATH=${APPDIR}${INSTALL_PREFIX}/lib/glade/modules
 GLADE_PIXMAP_DIR=${APPDIR}${INSTALL_PREFIX}/share/glade/pixmaps
 GLADE_BUNDLED=1
 export GLADE_CATALOG_SEARCH_PATH GLADE_MODULE_SEARCH_PATH GLADE_PIXMAP_DIR GLADE_BUNDLED
diff --git a/build/linux64/LibcWrapGenerator.vala b/build/linux/LibcWrapGenerator.vala
similarity index 100%
rename from build/linux64/LibcWrapGenerator.vala
rename to build/linux/LibcWrapGenerator.vala
diff --git a/build/linux64/PrepareAppDir.sh b/build/linux/PrepareAppDir.sh
similarity index 100%
rename from build/linux64/PrepareAppDir.sh
rename to build/linux/PrepareAppDir.sh
diff --git a/build/linux64/README b/build/linux/README
similarity index 100%
rename from build/linux64/README
rename to build/linux/README
diff --git a/build/linux64/README.lfs b/build/linux/README.lfs
similarity index 100%
rename from build/linux64/README.lfs
rename to build/linux/README.lfs
diff --git a/build/linux/jhbuildrc b/build/linux/jhbuildrc
new file mode 100644
index 0000000..52dd7fb
--- /dev/null
+++ b/build/linux/jhbuildrc
@@ -0,0 +1,57 @@
+# -*- mode: python -*-
+# -*- coding: utf-8 -*-
+
+use_local_modulesets = True
+modulesets_dir = os.getenv('GLADE_DIR') + '/build/linux/modulesets'
+moduleset = 'bundle.modules'
+
+# Unset autogenargs (screws with some modules like freetype)
+autogenargs = ''
+
+build_cflags = ''
+
+# For 32bit builds, build for 32bit arches
+if os.environ.get('BUILD_32BIT') is not None:
+    build_cflags = ' -m32'
+
+# _FORTIFY_SOURCE can be defined by default in some compilers
+# we want to unset this because glibc's runtime checkers are only
+# available in recent versions of glibc
+build_cflags += ' -U_FORTIFY_SOURCE'
+
+# Special case for cairo compilation, with libcwrap.h applied cairo
+# is unable to do it's mutexes properly
+build_cflags += ' -DCAIRO_NO_MUTEX=1'
+
+# Include the libcwrap.h before anything else for every source, this
+# ensures we are targetting the right version of glibc
+build_cflags += ' -include ' + os.getenv('GLADE_DIR') + '/build/linux/libcwrap.h'
+
+# Set the compiler flags for both C and C++ sources, overriding CC and CXX
+# ensures that they come before any flags that any buildscripts might add
+os.environ['CC']  = 'gcc ' + build_cflags
+os.environ['CXX'] = 'g++ ' + build_cflags
+build_cflags = None
+
+# Enable our custom triggers
+os.environ['JHBUILD_TRIGGERS'] = os.getenv('GLADE_DIR') + '/build/linux/triggers'
+
+# A list of the modules to build.
+modules = [ 'glade' ]
+
+# Where to put the tarballs
+tarballdir = "~/AppImages/Tarballs"
+
+# Where to unpack sources
+checkoutroot = '~/AppImages/Sources'
+
+# the prefix to configure/install modules to (must have write access)
+prefix = '~/AppImages/Install'
+
+# Dont put anything into a lib64 directory, whether we build for
+# 32bit linux or 64bit linux, we want a constant path for the libraries
+use_lib64 = False
+
+# Uncomment this for verbose builds
+makeargs = "V=1"
+
diff --git a/build/linux64/libcwrap.h b/build/linux/libcwrap.h
similarity index 100%
rename from build/linux64/libcwrap.h
rename to build/linux/libcwrap.h
diff --git a/build/linux64/modulesets/bundle.modules b/build/linux/modulesets/bundle.modules
similarity index 100%
rename from build/linux64/modulesets/bundle.modules
rename to build/linux/modulesets/bundle.modules
diff --git a/build/linux64/modulesets/patches/cairo-avoid-longjmp.patch 
b/build/linux/modulesets/patches/cairo-avoid-longjmp.patch
similarity index 100%
rename from build/linux64/modulesets/patches/cairo-avoid-longjmp.patch
rename to build/linux/modulesets/patches/cairo-avoid-longjmp.patch
diff --git a/build/linux64/modulesets/patches/pango-old-fontconfig.patch 
b/build/linux/modulesets/patches/pango-old-fontconfig.patch
similarity index 100%
rename from build/linux64/modulesets/patches/pango-old-fontconfig.patch
rename to build/linux/modulesets/patches/pango-old-fontconfig.patch
diff --git a/build/linux64/modulesets/patches/pango-relative-paths.patch 
b/build/linux/modulesets/patches/pango-relative-paths.patch
similarity index 100%
rename from build/linux64/modulesets/patches/pango-relative-paths.patch
rename to build/linux/modulesets/patches/pango-relative-paths.patch
diff --git a/build/linux64/pangorc b/build/linux/pangorc
similarity index 100%
rename from build/linux64/pangorc
rename to build/linux/pangorc
diff --git a/build/linux64/triggers/gdk-pixbuf.trigger b/build/linux/triggers/gdk-pixbuf.trigger
similarity index 100%
rename from build/linux64/triggers/gdk-pixbuf.trigger
rename to build/linux/triggers/gdk-pixbuf.trigger
diff --git a/build/linux64/triggers/glib.trigger b/build/linux/triggers/glib.trigger
similarity index 100%
rename from build/linux64/triggers/glib.trigger
rename to build/linux/triggers/glib.trigger
diff --git a/build/linux64/triggers/gtk+.trigger b/build/linux/triggers/gtk+.trigger
similarity index 100%
rename from build/linux64/triggers/gtk+.trigger
rename to build/linux/triggers/gtk+.trigger
diff --git a/build/linux64/triggers/mime-database.trigger b/build/linux/triggers/mime-database.trigger
similarity index 100%
rename from build/linux64/triggers/mime-database.trigger
rename to build/linux/triggers/mime-database.trigger
diff --git a/build/linux64/triggers/pango.trigger b/build/linux/triggers/pango.trigger
similarity index 100%
rename from build/linux64/triggers/pango.trigger
rename to build/linux/triggers/pango.trigger


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]