Tony Theodore
632085f2f7
add `nonetwork` lib to `shell` target dependencies
8 years ago
Boris Nagaev
87163ff7be
add "make shell" command
...
It provides interactive shell with the environment of MXE build.
8 years ago
Boris Nagaev
f11e66f365
fix dependencies of build-matrix.html
...
Dependencies of build-matrix.html were written without
regarding plugins. It resulted in the following error
on Debian Wheezy (which uses plugin "plugins/native/wheezy/"):
$ make build-matrix.html
make: *** No rule to make target `src/autoconf.mk',
needed by `build-matrix.html'. Stop.
8 years ago
Boris Pek
ad883ac8f9
Makefile: fix make clean target when $$WINEPREFIX directory doesn't exist
8 years ago
Tony Theodore
a2e79fec92
automatically set MXE_PLUGIN_DIRS for native requirements
9 years ago
Tony Theodore
dfec326366
Makefile and mxe-conf: create basic non-empty directory hierarchy
...
https://github.com/mxe/mxe/pull/1061/files#r49049496
https://github.com/mxe/mxe/issues/1111#issuecomment-169280181
9 years ago
Boris Nagaev
efc287a8d9
move patching functions and targets to patch.mk
...
See https://github.com/mxe/mxe/pull/1134#issuecomment-168873410
See https://github.com/mxe/mxe/pull/1134#issuecomment-169867926
9 years ago
Boris Nagaev
adb07e2153
patch-tool-mxe can import all patches of a package
9 years ago
Boris Nagaev
a516d920ef
reimplement patch-tool-mxe in Makefile
...
fix #1063
9 years ago
Boris Nagaev
53a92a86df
print Perl version to log
...
See https://github.com/mxe/mxe/issues/1108#issuecomment-169556116
See https://github.com/mxe/mxe/issues/1112
9 years ago
Tony Theodore
7804a5775c
Makefile: don't clean build-matrix.html
9 years ago
Boris Nagaev
d0f9a3df95
print Python version to log
9 years ago
Tony Theodore
0ccb9e2f6b
Add git commit hash to log and build message
...
* use short form for build status
* use full hash and refs for logs
* add `TERM` to env whitelist (`git log` assumes a terminal)
closes #1095
9 years ago
Tony Theodore
5ebcb2ebde
Makefile: error on paths with dollar signs
...
see #1085
9 years ago
Tony Theodore
11aee96888
Makefile: add link to gmake issue with spaces in filenames
9 years ago
Alexande B
8d44c858e7
#782 fix, wrong checksum calculation command for OSX
9 years ago
Tony Theodore
d7a5efbbaa
disable doxygen in MXE_CONFIGURE_OPTS
...
fixes #952 and should provide a general solution
9 years ago
Boris Nagaev
b0f15f8a42
add unpacker for .deb files
9 years ago
Tony Theodore
46d0d0dac8
Makefile: remove cmake from requirements check
9 years ago
Tony Theodore
c62b62966b
Makefile: build universal nonetwork.dylib
9 years ago
Tony Theodore
768c11246e
cmake wrapper: use common TryRunResults.cmake
9 years ago
Tony Theodore
79f424fb29
Makefile: echo nonetwork build and remove mkdir in recipe
9 years ago
Tony Theodore
8861c392ef
Makefile: fix nonetwork location and `make -t`
9 years ago
Tony Theodore
2944ccde5d
Makefile: remove *_MAKEFILE boilerplate and enable all-<plugin> target
9 years ago
Tony Theodore
70c4d91a07
Makefile: also disable networking during build on OSX
...
closes #986
9 years ago
Tony Theodore
d6e2ad3805
Makefile: only call UPDATE if rule exists
9 years ago
Tony Theodore
d6c4884455
Makefile: add plugins functionality to include makefiles from MXE_PLUGIN_DIRS
9 years ago
Tony Theodore
cdb7e99dd6
remove optional native pkgs and build-requirements target
9 years ago
Tony Theodore
656d5c5066
Merge pull request #998 from LuaAndC/update-gh-packages
...
MXE_GET_GITHUB_TAGS: new argument, stripped prefix
9 years ago
Tony Theodore
51f6aef1f7
update requirement versions
...
fixes #978
9 years ago
Boris Nagaev
b28501f031
MXE_GET_GITHUB_TAGS: new argument, stripped prefix
9 years ago
Tony Theodore
7875b279d9
Makefile: don't echo nonetwork.so recipe
9 years ago
Boris Nagaev
66514d4c96
set WGET=false when build
...
Prevent $(WGET) from downloading on platforms not supporting LD_PRELOAD.
fix #969
9 years ago
Boris Nagaev
8448d43531
disable networking with LD_PRELOAD when build
...
see #969
9 years ago
Tony Theodore
30b7b7164f
enbale MXE_GCC_THREADS and allow target spec <triplet>.<link>.<threads>
...
* enables optional c++11 <thread>, <mutex>, and <future> in libgcc
* avoid double build advice:
http://sigrok.org/gitweb/?p=sigrok-util.git;a=blob;f=cross-compile/mingw/README;h=248af546f939a81855dda33142d834eecf2979c2;hb=HEAD#l44
* not heavily tested but should be released for feedback
9 years ago
Tony Theodore
6b1a7962cf
Makefile: filter out MXE_CONF_PKGS for inter-target deps
9 years ago
Tony Theodore
3a462ae25c
Makefile: clean files created by build-pkg
9 years ago
Tony Theodore
a8ed815d82
Makefile: add print-deps-for-build-pkg target with inter-target deps
9 years ago
Tony Theodore
c8dd7556b4
Makefile: enable target deps and native pkg build rules
9 years ago
Boris Nagaev
08d7f265a1
remove strange quote from comment about MXE_TMP
...
see #929
9 years ago
Uwe Koloska
6fa3b9f986
add variable to define directory for tmp-directories
...
sometimes it's necessary to not build inside the mxe folder. The
variable MXE_TMP can be used to change the base directory for creating
tmp directories that are used for building.
Rationale: when using virtualbox to build the cross-compile environment
and the mxe project is in a shared folder, at least stripping is not
working because of an internal error of the shared filesystem. So the
solution is to change the tmp-directory to a place inside the VM.
9 years ago
Boris Nagaev
94f55814e9
check-requirements: check for native gdk-pixbuf
...
Check with command `gdk-pixbuf-csource --help`.
close #927
9 years ago
Boris Nagaev
530d479b4f
require patch number to start with a digit
...
MXE recongized file src/lua-rapidjson-1-use-unix-file-functions.patch
as a patch for lua, however it was intended to be a patch for lua-rapidjson.
Patch filename pattern was src/$(1)-*.patch.
* captured "rapidjson-1-use-unix-file-functions".
Currently * was replaced with [0-9]* to require patch name starting with
a digit.
close #921
9 years ago
Tony Theodore
6c01c7dc55
Makefile: fix download for script only packages
...
fixes #899
also cleanup download-foo dependencies
9 years ago
Tony Theodore
4cbbcfa0b6
Makefile: add note about WINEPREFIX
9 years ago
Tony Theodore
8e2d0e85c5
set WINEPREFIX to a readonly directory to force wine to fail
...
fixes #841
9 years ago
Tony Theodore
7996642c4b
Revert "Make CHECK_PKG_ARCHIVE return true for packages without files"
...
This reverts commit e474e77244
.
9 years ago
Tony Theodore
8a6a33a48c
Makefile: rename CC/CXX_BUILD --> BUILD_CC/CXX
...
somewhat more aligned to the <target>-<tool> convention
9 years ago
Tony Theodore
3db411ccac
Makefile: add CC/CXX_BUILD portability variables
...
fixes #900
9 years ago
Timothy Gu
e474e77244
Make CHECK_PKG_ARCHIVE return true for packages without files
...
Should fix #899 .
9 years ago
Timothy Gu
252128a30b
add macro MXE_GET_GITHUB_TAGS
...
Source: https://github.com/mxe/mxe/pull/649#issuecomment-143390677
9 years ago
Boris Nagaev
b76e14d777
style: move pipe to new line
9 years ago
Tony Theodore
eb7eaa7b9e
Makefile: add cmake shared/static boolean variables
9 years ago
Tony Theodore
fc0ed34fb9
all packages: really use sha256 checksums
9 years ago
Tony Theodore
df6f8926c2
Makefile: add cleanup-deps-style to reorder deps
9 years ago
Tony Theodore
a228c0488f
all packages: switch to sha256 checksums
...
closes #871
9 years ago
Boris Nagaev
164e7435c9
report downloading from backup
9 years ago
Tony Theodore
19d1be38ae
Move general configuration from pkgconf to mxe-conf and add cmake/mxe-conf.d
9 years ago
Tony Theodore
4d858c468b
Makefile: include mxe-conf as an order-only dep of all packages
...
Order-only deps have the benefit of guaranteed early execution and not requiring full rebuilds. It isn't a real package, so we don't want an entry in index.html.
9 years ago
Tony Theodore
5c62f03175
Makefile: allow script-only packages
...
* Create PREPARE_PKG_SOURCE function to simplify conditional unpacking and patching (possibly future git init)
* Only attempt download if there is a pkg url
* Only prepare source if there is a pkg file - useful for target specific overrides (say gcc on $(BUILD))
9 years ago
Tony Theodore
c97cc62e1a
Makefile: log autoconf and automake versions
9 years ago
Tony Theodore
d1e18ad8cb
Makefile: print package messages during build
9 years ago
Tony Theodore
307efd50da
Makefile: don't remove versions.json on clean
9 years ago
Timothy Gu
34d2cb0286
Fix occasion [done] message weirdness
9 years ago
Timothy Gu
18fafbeb98
Merge pull request #568 from tonytheodore/parallel
...
Makefile: build targets in parallel
9 years ago
Timothy Gu
1c38e8aea5
Mark versions.json as phony
9 years ago
Timothy Gu
8cf0795e34
Merge pull request #638 from TobiX/index-versions-cache
...
index.html versions cache
9 years ago
Volker Grabsch
34f6fac9a5
Use command "7za" instead of "7z"
...
The "7za" command is available on more Unix systems.
9 years ago
Martin Gerhardy
3559d54844
new package box2d
...
this introduces a new dependency for unpacking the 7z archive from Box2D
9 years ago
Timothy Gu
465131a2b6
Add LD_LIBRARY_PATH & ACLOCAL_PATH to safe envvars
...
Fixes #697 .
9 years ago
Timothy Gu
1bd25fc0ec
MXE_GET_GITHUB_SHA: simplify regex and make the hash longer
9 years ago
Tobias Gruetzmacher
06747eaca2
Add a new makefile target to cache versions.
...
All package versions are written int one JSON file.
9 years ago
Volker Grabsch
eaac1a873f
Merge branch 'stable'
10 years ago
Volker Grabsch
0c6cc9c91c
Split cleanup-style into even smaller commands
10 years ago
Volker Grabsch
dacd2ba109
Do not execute too many shell commands at once in "cleanup-style"
...
Otherwise, the argument to "bash -c ..." is very large, resulting in
the following error message on systems with small ARG_MAX:
make: execvp: bash: Argument list too long
10 years ago
Volker Grabsch
40fd96e236
Remove empty line at EOF
10 years ago
Volker Grabsch
8fb5da24f5
Merge branch 'stable'
10 years ago
Volker Grabsch
27d37c27e7
Add missing .PHONY entry for cleanup-style
10 years ago
Timothy Gu
47c3d0c170
Remove extraneous comma
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
73898524ea
Print config.log when build succeeded as well
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Tony Theodore
fde591f2c4
Makefile: build targets in parallel
...
I was never really happy with the way targets are serialized, it's fighting against `make` (causing issues like #234 and #219 ), and the target header isn't particularly informative. This fixes #234 and should also provide a speedup when building all targets simultaneously.
Download rules are now pre-requisites of build rules to stop multiple download attempts, and all build logs have a target suffix.
More work is needed on #219 , since download rules are always outdated unless a marker file is used. I'll look at this separately as I also want to allow script only packages.
10 years ago
Timothy Gu
b06795b831
Add a $(BITS) convenience variable
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Tony Theodore
a063f823e8
Makefile: remove check for pkg-config since we build pkgconf
10 years ago
Timothy Gu
bcdc828e1c
Fix display of "autodetected jobs" when $(JOBS) is set in settings.mk
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
df1b36c387
Show autodetected cores when no $(JOBS) is specified
...
If there is a more readable way of doing this, please point out.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
9ebd3cedf7
update: Add "UPDATE_DRYRUN" mode
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
981b2c1d9b
Add message when i686-pc-mingw32 is used
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
978fed72ed
Fix target name check
...
This makes it error out when
make MXE_TARGETS=i686-w64-mingw32.stati
etc.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
0d612118bc
build-matrix: Speed up with unary notation
...
4.6s -> 3.9s.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
d87240eb7b
Remove i686-pc-mingw32
...
Fixes #400 and #492 .
See #453 .
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
30d33ef5db
Fix counting of build-only packages
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
2bf824b5a7
build-matrix: use $(words $(BUILD_PKGS)) instead of counting
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
1f24f22085
build-matrix: Add missing </html>
...
Odd the W3C HTML5 validator didn't catch that (although the XHTML
1.1 one did).
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
1ea2349833
build-matrix: make each tag a new line
...
Dunno how to fix the indentation, but this already looks way better
than before.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Tobias Gruetzmacher
67cd70bebb
Add package versions to build-matrix.
...
This is a bit ugly at the moment, since there are some pretty long
version numbers in MXE...
10 years ago
Tobias Gruetzmacher
c9bdb7adf6
build-matrix: Split huge command into smaller ones
...
Just outputting each line on its own doesn't impact performance that
much (7s to 7.5s on my system).
On my system: 3.5s -> 4.5s, which is not to bad. --TG
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
e8b457a582
Revert "build-matrix: use $(newline) instead of ; to enter command"
...
This reverts commits e21b7281
and f3a7e0f2d0
.
The performance penalty is not worth it. On a relatively slow box
the time spent went from 4.6s to 15s.
10 years ago
TimothyGu
e21b728194
build-matrix: use $(newline) instead of ; to enter command
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
f3a7e0f2d0
Partially revert "Make build matrix output a bit nicer."
...
I have found a better solution.
The change to check/cross sign is not reverted.
This partially reverts commit 3797d4eb03
.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Tobias Gruetzmacher
3797d4eb03
Make build matrix output a bit nicer.
...
This swithes the "Y" and "N" in the cells with nice symbols (✓ and ✗).
This also tries to shorten the cammand line a bit since this still runs
into "Argument list too long" errors on some systems...
10 years ago
Tony Theodore
4835619559
Makefile: add $(BUILD) to allowed targets
10 years ago
Timothy Gu
8dbc665ea1
Check if specified target is valid
...
See #518 .
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Tony Theodore
500f27d10b
Makefile: update default target to i686-w64-mingw32.static (see #492 )
10 years ago
Timothy Gu
c693d0496d
Silent the echoing of comment in build-matrix.html
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
93f5573c6f
Explicitly disallow paths with whitespace
...
It didn't work anyway even before this commit.
Workarounds #490 .
10 years ago
Timothy Gu
9279bedac0
Change default sf mirror to auto-select
10 years ago
Timothy Gu
3209c45566
Add MXE_NO_BACKUP_DL mode for regression testing
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
30d2e78632
Add target download-only-* to ease developing
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Conflicts:
Makefile
10 years ago
Timothy Gu
55558ecdd3
Add target download-only-* to ease developing
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Uwe Hermann
fd1dc823ed
Makefile: Add MXE_DISABLE_{PROGRAMS,DOCS,CRUFT}.
10 years ago
Timothy Gu
754f485bd2
Support .tbz2 and .txz
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
8b2e5e1bac
Fix GitHub update routine
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
b075a5ca1e
Fix autoconf version test since b9c230dd
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
77238e0175
Remove the usr/ directory in addition to its contents
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Tony Theodore
128adcdac8
Makefile: reduce wget timeouts and retries
10 years ago
Timothy Gu
f341eb3780
Makefile: fix whitespace
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
3a506a2c61
Merge branch 'native'
10 years ago
Tony Theodore
7e59569dcd
Makefile: style cleanups
10 years ago
Timothy Gu
1eadfb66ec
Makefile: style cleanup
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
14375a38ff
show-*deps-%: check if package exists before attempting to show deps
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
d632bcd7cb
Use set_is_member from GMSL for $(PKGS)
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
20969b9645
Fix per-target dep calculation
...
For example `make show-downstream-deps-winpthreads` didn't show any deps
even though i686-w64-mingw32.static target is set.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
d68838f924
Check all requirements before exiting on error
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
1bf5679e1a
Separate out native-only packages in build matrix (& cosmetics)
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
cc00a4b039
Count "virtual" packages seperately in total in build-matrix.html
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
0f30d73e37
Add package count per target
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
2b02ee7a90
Add build matrix generation target
...
Based on a patch by Tobias Gruetzmacher <tobias-git@23.gs> (@TobiX).
Fixes #346 .
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
681921c815
Increase $(BUILD_PKG) accuracy by checking build rules
...
This eliminates false-positive with packages with explicit empty build rules
like binutils. gcc is another false-positive, but it is another matter and is
harder to fix.
Also use set_create function from GMSL to make the list sorted and uniq'd.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
b7ef1855fc
Move up LOOKUP_PKG_RULE
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
5eccb2f4db
Move whitespace variables up to where all the other variables are
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Tony Theodore
a90a7252e2
silence deprecated target name warning for build-requirements
10 years ago
Tony Theodore
89a6f46b21
add requirements for gperf python ruby
10 years ago
Tony Theodore
6d6e255dbf
Merge pull request #359 from TimothyGu/temp-rem
...
Add convenience target clean-junk
10 years ago
Timothy Gu
130116224d
Squalch deprecated target name warning for build-requirements
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
c155dd7c8d
Merge commit 'd3adb06a1383a1454e95d58400c520454a61a716'
10 years ago
Timothy Gu
b89c4d4703
Add documentation for default settings.mk
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
d3adb06a13
Sort $(MXE_TARGET_LIST) by triplets instead of lib types
...
Nothing in the Makefile is affected else than the generation of default
settings.mk.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
6a099a0403
Add convenience target clean-junk
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
8d877bdc75
Always symlink to log/PKG_TARGET
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
99aea29c01
Use tmp-PKG-TARGET as temporary dir
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Timothy Gu
97402e08de
Make download-* targets display "[download] *" instead of log
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years ago
Tony Theodore
0ff238e882
Makefile: add support for make-shared-from-static tool with default args
10 years ago
Tony Theodore
801cda3b53
Makefile: add MXE_VERBOSE variable to echo full logs
...
closes #309 and resolves #299
11 years ago
Tony Theodore
723241e085
Makefile: speedup LOOKUP_PKG_RULE function
...
Use gmsl `memoize` function and associative arrays to cache results
11 years ago
Tony Theodore
c950f3635c
various packages: enable shared builds
11 years ago
Tony Theodore
837ecd6648
Makefile and pkgconf: move external tools separate directory
11 years ago
Tony Theodore
47361fa750
Makefile docs and pkgconf: add support for shared|static variants
11 years ago
Tony Theodore
5a18b2786b
Merge pull request #320 from tonytheodore/lookup-pkg-rule
...
Makefile: refactor lookup of pkg build rules and deps
11 years ago
Tony Theodore
4bba59627e
Makefile: refactor lookup of pkg build rules and deps
...
Introduces a LOOKUP_PKG_RULE function that matches generic rules
from targets specified along the lines of:
triplet.lib-type.debug.treading.exceptions.my.experimental.version
Current build rules will be matched according to the current logic
(pkg-target --> pkg) and future variants can use "targets" as both
functionality determinants and a directory separator for multiple
side-by-side variants.
11 years ago
Tony Theodore
1a9ad29fe6
mxe configury: build native pkgconf and centralise various conf files
...
Since we need pkgconf for Cflags.private support, it seems like a
logical place for these types of config files instead of being
spread over Makefile, binutils, and gcc.
11 years ago