Alexis Jeandet
0407fac59e
[Qt module] Add File object support for generated or not qrc files
...
Added missing sub-folder test
Closes #3324
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Jon Turney
7d974cd962
Skip test cases/frameworks/4 qt if Qt5 not found
7 years ago
Alexis Jeandet
4e6630690a
Added failing test case
...
When having Qt resources in a meson subdir, meson prepends twice
the subdir name in resource file dependencies.
Here it will set 'subfolder/subfolder/resources/thing.png' as dependencie
for stuff3.qrc.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Alexis Jeandet
5c5eac3571
[Qt module] Added translation files compilation method
...
- Added a new compile_translations method since preprocess was already quite
full and translations compilation is quite different from ui, qrc, cpp files
preprocessing.
- Updated translation.
- Updated test case.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Markus Theil
875b3bbbe4
tests: fix qt unity build
...
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
7 years ago
Markus Theil
91c07aa301
tests: adapted Qt test for multiple rcc files
...
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
7 years ago
Leif Middelschulte
98e095bd47
extends test case to fail if macro is undefined durcing preprocessing
7 years ago
Alexis Jeandet
94cfb42222
Fixes Qt4 plugin build and mixed Qt4/Qt5 tests builds.
...
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Alexis Jeandet
a9258923fa
Added include directory argument for Qt's Moc which is needed to build plugins.
...
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Nirbheek Chauhan
c1e9c757eb
tests: Increase dependencies coverage a bit more
8 years ago
Aaron Small
76c8491d77
Add an option to dependencies called 'method'. This can be used to
...
configure a detection method, for those types of dependencies that have
more than one means of detection.
The default detection methods are unchanged if 'method' is not
specified, and all dependencies support the method 'auto', which is the
same as not specifying a method.
The dependencies which do support multiple detection methods
additionally support other values, depending on the dependency.
8 years ago
Nirbheek Chauhan
d9c31d4a24
tests/4 qt: Force the use of -std=c++11
...
Qt5 now requires this, and if no -std option is passed to clang, it does
not enable C++ 11 features and we get a build failures.
8 years ago
Nirbheek Chauhan
eaafca6f4a
Qt: Allow passing a name arg to preprocess()
...
This sets a unique name for the CustomTarget and the output cpp file.
Closes #959
8 years ago
Nirbheek Chauhan
0f92b7d97c
tests/4 qt: Test that invalid modules are not found
8 years ago
Nirbheek Chauhan
954038b7c1
tests/4 qt: Don't search for QtWidgets with Qt4
...
Doesn't exist on qt4, and causes the test case to not run at all.
8 years ago
Nirbheek Chauhan
14c5e17b0a
tests: Remove outdated qt4 manual test and rename qt5 automated test
...
qt5 framework test now also tests qt4, and will test qt6 if/when it
comes out.
8 years ago
Nirbheek Chauhan
19a06d9033
qt4, qt5 modules: Improve moc/uic/rcc detection
...
Instead of blindly searching in PATH, use
Qt5Dependency.compilers_detect() (same for qt4) to get moc/uic/rcc.
This is much more robust, and it improves the chances that the correct
ones will be found. We still manually verify for now because the
fallback in dependencies.py for searching is stll to look in PATH for
backwards-compat, and because people probably have setups like that.
Also sync the qt4 module with the qt5 module w.r.t. resource compilation
and make the compiled qrc.cpp file unique in terms of the framework
version used (4 vs 5). This is needed for the test to work properly,
which now covers both Qt4 and 5.
8 years ago
Jussi Pakkanen
cc055387cd
Can have multiple Qt resource files in a single target. Closes #572 .
9 years ago
Jussi Pakkanen
8b6848ebc3
Add dir support for find_library and remove deprecated standalone version. Closes #450 .
9 years ago
Jussi Pakkanen
50663144c3
Can set compiler options, added language versions for Gnu and Clang.
9 years ago
Jussi Pakkanen
698b1c6471
Use QMake to sniff compiler flags on platforms without pkg-config.
10 years ago
Jussi Pakkanen
bfa68aaeaf
Autodetect Qt5 rcc dependencies as well as reasonably possible.
10 years ago
Jussi Pakkanen
1ac00031f9
Persist modules so they are imported only once for the lifetime of a build directory.
10 years ago
Jussi Pakkanen
96839e5893
Made Qt5 module do just preprocessing instead of building full executable, so it is composable with e.g. gettext and flex modules (when they appear).
10 years ago
Jussi Pakkanen
48477102c9
Now can compile all Qt5 tests with module.
10 years ago
Jussi Pakkanen
6e6ac02eaf
Major refactoring to move Qt5 from core into a module. Rules are written but moc/uic/rrc are not generated yet.
10 years ago
Jussi Pakkanen
2c65b1f0c3
Renamed deps -> dependencies.
11 years ago
Jussi Pakkanen
c21637a01d
Fixed unity builds for Qt5.
11 years ago
Jussi Pakkanen
55dba78889
Follow Qt standards w.r.t. moc file including.
11 years ago
Jussi Pakkanen
f23a5a1150
Write generator deps to Ninja files properly. Now can compile 1300+ files of QtCreator without dependency problems.
11 years ago
Jussi Pakkanen
1d36109002
Can have multiple resource files in Qt5.
11 years ago
Jussi Pakkanen
e2e95c7bf2
Allow source files to include moc files manually.
11 years ago
Jussi Pakkanen
ac81594952
Added capability to compile sources files with moc, too.
11 years ago
Jussi Pakkanen
4084e7213e
Renamed resources to qresources to avoid name clashes.
11 years ago
Jussi Pakkanen
c61da0049c
Use a console app for Qt5 unit testing so it can be run headless.
11 years ago
Jussi Pakkanen
0f2d43669d
Added support for Qt resource compiler.
11 years ago
Jussi Pakkanen
89aa4e2233
C++ is now called cpp rather than cxx.
12 years ago
Jussi Pakkanen
11e81618d2
Renamed find_dep to dependency.
12 years ago
Jussi Pakkanen
d4284aae89
Renamed add_test to test.
12 years ago
Jussi Pakkanen
852b774e2e
The default value of required is true for dependencies.
12 years ago
Jussi Pakkanen
abe653e808
Some comments to Qt5 sample.
12 years ago
Jussi Pakkanen
e3184c4f94
Qt5 apps compile with only a slight amount of cheating.
12 years ago
Jussi Pakkanen
9abf5ec89a
Add generated files as dependencies to targets.
12 years ago
Jussi Pakkanen
f856ee0f33
Fixed class hierarchy of dependencies.
12 years ago
Jussi Pakkanen
eea5b961fd
Qt5 test case and some implementation.
12 years ago