Marcus Comstedt [Sun, 2 Nov 2014 22:50:03 +0000 (23:50 +0100)]
sigrok-cross-android: Set host platform in PYTHON_FOR_BUILD
Unless _PYTHON_HOST_PLATFORM is set, setup.py will fail to detect
that this is a cross build, leading to dynamic modules being flagged
as "failed" because they don't load on the build system.
Set _PYTHON_HOST_PLATFORM in the same way it is done in the default
setting of PYTHON_FOR_BUILD.
Marcus Comstedt [Sun, 2 Nov 2014 22:46:44 +0000 (23:46 +0100)]
sigrok-cross-android: Prevent glib from running configure with wrong args
The autogen.sh script in glib will run the generated configure script
(for a non-cross build) unless the environment variable NOCONFIGURE is
set. Set it.
Among other things this is required for certain API calls now used in
recent libserialport versions (probably will be required for various
other sigrok-related projects later as well).
Uwe Hermann [Fri, 4 Apr 2014 18:51:45 +0000 (20:51 +0200)]
sigrok-cross-mingw: Update for a more recent MXE.
Newer MXE versions (see www.mxe.cc) have a different directory layout
and naming. The triplet "i686-pc-mingw32" is now "i686-pc-mingw32.static",
various path names now have a ".static" suffix, and the environment variable
"PKG_CONFIG_PATH_i686_pc_mingw32" is now called
"PKG_CONFIG_PATH_i686_pc_mingw32_static".
Uwe Hermann [Fri, 4 Apr 2014 18:24:52 +0000 (20:24 +0200)]
sigrok-cross-mingw: Drop MSI Python installer, ship only libs/modules.
Until now we used to include the official Python MSI Windows installer
in the installers for our frontends (sigrok-cli and PulseView), and it
was run during the installation of the sigrok frontend. Python was also
hardcoded to be installed into c:\python32.
Change this to only ship python32.dll and python32.zip now, which are
simply copied into the install location of the frontend (e.g.
"c:\Program Files (x86)\sigrok\PulseView". The python32.zip file
contains a few DLLs and libs, and all Python stdlib modules.
This has various advantages:
- There are no longer issues if a user has other Python versions
installed on the same OS (e.g. a different Python 3 version and/or
Python 2.x versions). The sigrok frontends will always use _only_ the
local Python from their install dir and ignore any others.
- We (or rather the Python MSI installer) no longer create any registry
entries, potentially change the PATH env. variable, change file
associations, add Python to the Windows "list of installed software",
create a Start Menu entry for Python, or do any other things that affect
the system as a whole. After an uninstall of the respective sigrok
frontend no traces of (our local) Python will be left on the system.
- We no longer need to hardcode any path for the Python install. The
required files will always be installed whereever the sigrok frontend
is installed, no matter wheter it's on c:\ or any other drive.
- The installation time is reduced (we no longer need to run the
official MSI installer) and the size of our NSIS installers is also
reduced quite a bit (python32.dll + python32.zip are a lot smaller
than the full Python MSI installer).
- Frontend load times might even be reduced a bit, since Python will now
only scan for modules in the two locations we provide (the
python32.zip file and the decoders/ subdirectory).
Add srd_decodersdir.patch which replaces the (now obsolete) patches
pulseview_decodersdir.patch and sigrok_cli_decodersdir.patch.
Uwe Hermann [Thu, 30 Jan 2014 21:20:12 +0000 (22:20 +0100)]
sigrok-cross-mingw: Drop -DENABLE_COTIRE=y.
This seems to cause issues on some Ubuntu versions (likely due to an
older cmake version, but we didn't investigate much). We're just
dropping the Cotire use in this script to avoid the problems, since it
is a fully optional thing (only affects compile performance) anyway.
Uwe Hermann [Mon, 13 Jan 2014 23:55:28 +0000 (00:55 +0100)]
sigrok-cross-linux: Add file for simple Linux (cross-)compiles.
This script can be adjusted to build the sigrok components for various
Linux-based targets via various cross-toolchains.
Per default it will do native builds though, i.e. it can also be used
just as a simple "I don't want to type that much" script to clone,
build, and install (e.g. in $HOME/sr) all sigrok components in one go.
Uwe Hermann [Sun, 5 Jan 2014 09:51:06 +0000 (10:51 +0100)]
sigrok-cross-mingw: Also ship zadig.exe and zadig_xp.exe.
This is a helper tool for installing libusb-win32 or WinUSB drivers on
Windows, which is a requirement for USB devices to be recognized by
libsigrok (libusb actually) on Windows.