Commit Graph

62 Commits

Author SHA1 Message Date
Ron Lee
a1bf307a46 Limit the influence of flavour more strictly to autoconf format.
Remove '-' and '.' from the $release tag for non autoconf platform.
This may like slightly finer tuning than that for some people.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-26 08:46:55 +00:00
Ron Lee
589e20d03c Move the WX_FLAVOUR variables to be defined generally, not just for
autoconf builds, else the wince targets (at least) will complain.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 15:08:33 +00:00
Ron Lee
ceec2216bd wx-config2.6
Designed to be resiliant against future cut and paste coders.  Any
gnarly parts are black boxed away nicely to avoid accidents and have
integrated debugging support for trivial sanity checking in the event
of modification or trouble.  In this way the major operations are all
cleanly separated making any or all of them simply extensible, or
replaceable in the face of future needs.  Functions now all have api
descriptions.  If you rely on a function to act in some way, please
document it to safeguard yourself against inadvertant interface
changes by others.

Everything now runs top top to bottom, we don't try to output things
as fast as we can read them anymore, instead we read everything in,
sort over it just once without the need for 'just in case' temp's, and
then output whatever we were asked for only when we are sure we have
the correct answer.  Almost all key data aims to be constant past the
point of its initialisation so side effect creep and trouble with half
(re)initialised data should be significantly reduced in future.  In
almost every case it is easy and clean to simply delay initialisation
until all required input channels have been emptied.  If you like,
think of it as mostly being one big constructor, with a little
destructor at the end which outputs what you requested.  At core, it
is simply a generated config file -- with some user friendly logic for
extracting its data and finding related files.

Removed references to --gl-libs in --help.  It still exists, but if
its deprecated, no need to fill space in a compact help summary.  It
will remain documented (as deprecated) in the man page.

Removed references to arcane order rules for arguments.  Those
limitations don't exist anymore, though the options are backward
compatible in all other respects from the user pov.

Removed references to --inplace, it doesn't need to be in the summary
help either.  It also is still accepted as an option, but there is no
value in passing it, an uninstalled wx-config will automatically
behave correctly.  When you need --inplace, it will supply that
behaviour for you (but there is no harm in typing it your self in that
case).  If you do type it when you don't need it, bad things will
probably happen just like they always would have.

Along with items above, generally compressed --help text to fit on
even a traditional sized terminal without the need for paging.  If we
want more detailed help built in, it should be broken into separate
pages, and this would be a trivial extension.

Command line input is now controlled by a small generic parser.  You
define what options you want and what groups you want them in by
initialising them as lists.  It runs over all the input and fills
corresponding psuedo-hashes from it for you to use as you please
later.

Added a validator for it to check yes/no options.

Use posix extended regex instead of gnu 'basic' regex extensions,
grep -E is portable, if gmake is not a requirement, we surely can't
push gnu grep on people.

Made --list more user friendly.  It will now always list the current
wx-config if it matches the feature spec, though it will warn if that
config is not in the specified --prefix.  Alternate configs that match
(if any) are listed separately. An unqualified call to wx-config --list
will always return (at least) the config that was called.  We can never
have a 'hanging' wx-config shell with no real implementation to back
it up anymore so we can always return a sensible result for the user.
A wx-config anywhere can list (and hence use) the configs installed in
any (other) prefix.

Delegation.  Too big a topic to remark on in depth here, see the code
for a fuller description.  With everything being nicely constant and
aligned to the respective library build, then aside from delegation,
wx-config really is _just_ a config file (albeit with a layer of logic
around the constants), and each wx-config carries a set of defaults
which match perfectly the library build that it was generated with.
If you choose a set of features that it can match, it will answer all
your queries for them, if it cannot, it will seek to delegate to the
config that is most like itself, but which can supply all the features
you specified.  This should be completely compatible with any set of
options that returned a sensible result previously, and produce a
sensible result in many cases where previously the collating order
of your locale or the nuances of your filesystem operations would
decide which library it thought you wanted.

Sort duplicates out of the list of libraries and trickle shared
dependencies down the list to properly support static builds.

Added the inplace-config tweak for use in the build tree.  This works
like any other config, except it presets the default prefix to point
at the build dir instead of the configured prefix that will become the
default if this build is installed.  It provides the behaviour of
--inplace when $build_dir/wx-config is called without also specifying
a different --{exec-,}prefix or any feature flags that it is
incompatible with.  In that event, it will try to delegate as per the
normal rules.

The inplace wrapper is not installed with the primary config which
cleanly disables it for system installs.  It will be invalidated if
the build (or source) dir is moved, but will be revalidated if the
build tree is subseqently updated with ./config.status --recheck &&
config.status (which it probably would need to be to build anyway for
other reasons at present too)

Enabled full support for static builds again, promoted --static to a
full feature option.  Fixed --ld to return something for them too.

Added --flavour, similar to the existing --vendor, but for autoconf
builds.  These will probably want to be streamlined further.
Broadened the use of release and flavour labels to support better
concurrent installs.

Fix bit rot in make-dist due to new/deleted files.

Whittled down the number of obsolete and duplicated substitution
variables in configure.in, and lowercased some variables we no longer
export for substitution.  Use the autoconf macros to generate files
where we want them instead of making them someplace and then moving
them all about.  Remove extra files and symlinks added for the two
part wx-config version.

Removed the debian -contrib packages.  We'll use multi-lib support
to manage them from now on and indiviual libs can be split out along
functional lines if required.  This means the retained contribs will
now get __WXDEBUG__ versions packaged too.

Removed conflicts from almost packages except i18n and wxPython. All
packages now either update or install alongside any existing ones.

Added support for flavoured debs as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 17:16:29 +00:00
Vadim Zeitlin
32d49041eb added unit tests for wxStringStreams
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-19 22:00:16 +00:00
Vadim Zeitlin
4c27e2faf3 deprecated SetToTheWeek() and GetWeek(); added and documented new and well-defined SetToWeekOfYear()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 22:07:10 +00:00
Vadim Zeitlin
1c5d27e2ab fixed GetWeekOfYear() for first/last week in some cases (patch 908793)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 21:37:28 +00:00
Václav Slavík
67050b6d4a corrected SetPath tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-16 13:29:32 +00:00
Włodzimierz Skiba
3fa8642327 Regenerated makefiles after new filename test by Vadim.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-02 07:34:01 +00:00
Vadim Zeitlin
4524a24b40 added SetPath() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 14:01:36 +00:00
Vadim Zeitlin
f095b1fc57 added wxFileName test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 13:27:42 +00:00
Włodzimierz Skiba
86ca2b4cda wxUSE_LOG fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-20 17:18:49 +00:00
Vadim Zeitlin
329b43f61b added test for Lower()/Upper() with 8bit chars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-28 10:46:07 +00:00
Włodzimierz Skiba
edcccd84c3 Regenerated makefiles.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 08:05:50 +00:00
Włodzimierz Skiba
592f132d04 Removed unused code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 08:00:23 +00:00
Václav Slavík
6b0c752f23 test UNC filenames conversion on MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 22:18:45 +00:00
Václav Slavík
a430a60fd1 compilation fix for gcc-3.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 22:18:11 +00:00
Vadim Zeitlin
e35594251f added Set(jdn) test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 21:54:34 +00:00
Vadim Zeitlin
ccd6aacd5d extracted some wxDateTime tests from console sample to the unit test suite
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 21:18:16 +00:00
Václav Slavík
816b59debf moved wxFontMapper tests to its own file and testcase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-19 14:01:44 +00:00
Włodzimierz Skiba
bc55323bc3 Charsets part moved from console sample to test unit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-18 15:44:46 +00:00
Václav Slavík
ad3fca675f test wxString's char<->wchar_t ctors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-08 20:11:31 +00:00
Václav Slavík
cf8ee08b1b added tests for wx's CRT wrappers (so far only wxGetEnv,wxSetEnv)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-03 19:48:31 +00:00
Václav Slavík
bd7f096d0e added test for wxString::MakeLower,MakeUpper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-31 22:06:52 +00:00
Julian Smart
c4839ccf58 Regenerated makefiles for 2.5.2
Other version updates
Added list of Cocoa files


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-24 14:12:40 +00:00
Mattia Barbon
f9c3d39b21 Regenerated makefiles.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-22 17:52:44 +00:00
Mattia Barbon
cbca1e087b Converted hash tests to CppUnit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-22 17:51:35 +00:00
Włodzimierz Skiba
405b7d914d Recreated makefiles after patch #949276.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-21 07:59:14 +00:00
Włodzimierz Skiba
0a19929958 Patch #949276: Less agresive strings test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-21 07:55:13 +00:00
Václav Slavík
0d95d20c5b more dmc fixes (patch 941830)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-30 20:55:57 +00:00
Václav Slavík
387f829ed1 moved Unicode tests to testsuite (patch 943945)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-30 20:26:14 +00:00
Václav Slavík
ce42615218 another 2.4 compatiblity fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-26 09:22:03 +00:00
Václav Slavík
82073497ad 2.4 backward compatiblity tests should be run only if the library was built in compatibility mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-25 19:26:07 +00:00
Václav Slavík
f69577be06 DMC fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-25 11:06:02 +00:00
Václav Slavík
95762eafc1 make the tests run a little faster
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-21 20:20:48 +00:00
Václav Slavík
bc10103ec8 moved wxRegEx test from console to testsuite (patch 938995)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-21 20:17:18 +00:00
Václav Slavík
0e43839c41 eliminated some warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-20 19:08:55 +00:00
Václav Slavík
1cd53e884b added wxString tests (patch 938082)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-20 18:55:09 +00:00
Václav Slavík
8dae91699c small test suite improvements (patch 937094)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-18 20:04:30 +00:00
Václav Slavík
7735998c2a applied rest of streams test suite patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-18 19:26:20 +00:00
Václav Slavík
08bc54902d made it possible to easily regenerate makefiles with stream suit (temporary, before remaining problems are fixed)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 20:59:46 +00:00
Václav Slavík
08776b0914 stream tests improvements (patch 924438)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 20:59:33 +00:00
Václav Slavík
1b035b8cd0 applied patch: wxLongLong CppUnit test (928257)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-06 12:15:27 +00:00
Václav Slavík
be2c4488bf this code was taken from console sample, preserve its copyright
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-06 12:14:05 +00:00
Václav Slavík
cf1014a2e1 moved arrays tests to testsuite (patch 927475)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 21:10:33 +00:00
Václav Slavík
e3f810a21b forgot to add header file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 12:22:44 +00:00
Václav Slavík
a81f30662b test program improvements (patch 927429)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 11:51:09 +00:00
Václav Slavík
340da6aec0 commited streams test suite (not part of build yet, coming soon)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 10:13:47 +00:00
Václav Slavík
20f46e8dc8 BCC fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 07:17:50 +00:00
Václav Slavík
4827cbd923 added wxFileSystem test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-28 20:44:26 +00:00
Václav Slavík
238fb020fa compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-22 12:53:37 +00:00