Igor Gnatenko
8268eb4959
tree-wide: remove unused imports
...
./setup.py:17:1: F401 'os' imported but unused
import os
^
./setup.py:37:1: F401 'stat.ST_MODE' imported but unused
from stat import ST_MODE
^
./run_tests.py:17:1: F401 'os' imported but unused
import subprocess, sys, os
^
./run_tests.py:18:1: F401 'shutil' imported but unused
import shutil
^
./run_unittests.py:23:1: F401 'mesonbuild.dependencies.Qt5Dependency' imported but unused
from mesonbuild.dependencies import PkgConfigDependency, Qt5Dependency
^
./mesonbuild/build.py:15:1: F401 '.coredata' imported but unused
from . import coredata
^
./mesonbuild/interpreter.py:32:1: F401 'subprocess' imported but unused
import os, sys, subprocess, shutil, uuid, re
^
./mesonbuild/interpreter.py:32:1: F401 're' imported but unused
import os, sys, subprocess, shutil, uuid, re
^
./mesonbuild/dependencies.py:23:1: F401 'subprocess' imported but unused
import os, stat, glob, subprocess, shutil
^
./mesonbuild/mesonlib.py:17:1: F401 'sys' imported but unused
import platform, subprocess, operator, os, shutil, re, sys
^
./mesonbuild/modules/qt5.py:15:1: F401 'subprocess' imported but unused
import os, subprocess
^
./mesonbuild/modules/pkgconfig.py:15:1: F401 '..coredata' imported but unused
from .. import coredata, build
^
./mesonbuild/scripts/scanbuild.py:15:1: F401 'sys' imported but unused
import sys, os
^
./mesonbuild/scripts/meson_exe.py:20:1: F401 'subprocess' imported but unused
import subprocess
^
./mesonbuild/scripts/meson_exe.py:22:1: F401 '..mesonlib.MesonException' imported but unused
from ..mesonlib import MesonException, Popen_safe
^
./mesonbuild/scripts/symbolextractor.py:23:1: F401 'subprocess' imported but unused
import os, sys, subprocess
^
./mesonbuild/scripts/symbolextractor.py:25:1: F401 '..mesonlib.MesonException' imported but unused
from ..mesonlib import MesonException, Popen_safe
^
./mesonbuild/scripts/meson_install.py:19:1: F401 '..mesonlib.MesonException' imported but unused
from ..mesonlib import MesonException, Popen_safe
^
./mesonbuild/scripts/yelphelper.py:15:1: F401 'sys' imported but unused
import sys, os
^
./mesonbuild/scripts/yelphelper.py:20:1: F401 '..mesonlib.MesonException' imported but unused
from ..mesonlib import MesonException
^
./mesonbuild/backend/vs2010backend.py:17:1: F401 're' imported but unused
import re
^
./test cases/vala/8 generated sources/src/copy_file.py:3:1: F401 'os' imported but unused
import os
^
./test cases/common/107 postconf/postconf.py:3:1: F401 'sys' imported but unused
import sys, os
^
./test cases/common/129 object only target/obj_generator.py:5:1: F401 'shutil' imported but unused
import sys, shutil, subprocess
^
./test cases/common/57 custom target chain/usetarget/subcomp.py:3:1: F401 'os' imported but unused
import sys, os
^
./test cases/common/95 dep fallback/subprojects/boblib/genbob.py:3:1: F401 'os' imported but unused
import os
^
./test cases/common/98 gen extra/srcgen.py:4:1: F401 'os' imported but unused
import os
^
./test cases/common/113 generatorcustom/gen.py:3:1: F401 'os' imported but unused
import sys, os
^
./test cases/common/113 generatorcustom/catter.py:3:1: F401 'os' imported but unused
import sys, os
^
./test cases/common/59 object generator/obj_generator.py:5:1: F401 'shutil' imported but unused
import sys, shutil, subprocess
^
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Nirbheek Chauhan
ff8cdf86f4
tests/vala/14: Disable running of GTK+ test
...
There's no X on the Travis CI, so disable this for now.
8 years ago
Nirbheek Chauhan
de0ce7f25c
Add a test that uses hand-written vapi files
...
To use these, you just need to add the .vapi file to your target as
a source.
This test specifically tests that hand-written vapis referring to
C headers work.
8 years ago
Nirbheek Chauhan
330d9ba7fe
Test target glib version and gresources in Vala
...
Test that the --target-glib= argument while compiling Vala files is set
properly by using a feature (GtkTemplate) that requires glib >=2.38.
At the same time, also test that the appropriate gresource arguments are
also set for Vala targets. For each gresource.xml that is compiled, we
must pass --gresources=path/to/gresource.xml to valac.
8 years ago
Sam Thursfield
627faa0d39
Add a testcase for 'Duplicate outputs' bug
...
With current Meson, this fails to configure with the following error:
Duplicate output 'dependency-generated/enum-types.h' from
'CustomTarget' 'enum-types.h'; conflicts with
'dependency-generated/enum-types.h' from 'CustomTarget'
'enum-types.h'
8 years ago
Jussi Pakkanen
0c22b8f707
Renamed dirs to plug holes in numbering.
8 years ago
Elliott Sales de Andrade
d45db903ac
Rename test cases to remove duplicate numbers.
8 years ago
Guillaume Poirier-Morency
b2a39dd06e
vala: Generate GIR into the build directory ( fix #185 )
...
Add a Vala test generating GIR and typelib files.
8 years ago
Nirbheek Chauhan
085650a1e3
vala: Implement valac.find_library
...
Move CCompiler.compile to Compiler.compile so that ValaCompiler can use
it. Also rewrite ValaCompiler.sanity_check to use it since it does
a simple compile check.
At the same time, it enhances ExternalLibrary to support arguments for
languages other than C-like.
Includes a test for this that links against zlib through Vala.
Closes #983
8 years ago
Jussi Pakkanen
1e0ae0a083
Revert "vala: Build with '--nostdpkg'", MR #920
...
This reverts commit 0f098c37ae
.
8 years ago
Nirbheek Chauhan
45996b0f92
vala: Fix compiled object extraction
...
Fixes #791
8 years ago
Guillaume Poirier-Morency
0f098c37ae
vala: Build with '--nostdpkg'
...
Since Vala require 'glib-2.0' and 'gobject-2.0' dependencies, it's
better to fail at 'valac' step with meaningful error.
Add missing 'gobject-2.0' dependency on the mixed source test case.
8 years ago
Guillaume Poirier-Morency
ff6b3c7a2d
vala: Custom header and vapi name ( fix #892 )
8 years ago
Patrick Griffis
bae7d7b3d7
gnome: Add generate_vapi() function
...
This allows C projects to generate vapi bindings from
gir files and returns a dependency that can be used by
Vala.
8 years ago
Nirbheek Chauhan
57ce7d4618
Add support for extracting objects in unity builds
...
Not only does extract_all_objects() now work properly again,
extract_objects() also works if you specify a subset of sources all of
which have been compiled into a single unified object.
So, for instance, this allows you to extract all the objects
corresponding to the C sources compiled into a target consisting of
C and C++ sources.
8 years ago
Nirbheek Chauhan
d59f5f8620
Add a test that contains only generated Vala files
...
Demonstrates that the Vala detection is broken when all the files are
generated.
8 years ago
Nirbheek Chauhan
3032c2b580
Add generated C file to mixed sources Vala test
...
This tests that generated C files make it past the filtering in
generate_vale_compile().
8 years ago
Nirbheek Chauhan
65e9761cb1
Support all kinds of generated vala and vapi sources
...
This is the first step in making Vala support have feature-parity with
C/C++ support. Vala and Vapi sources generated with Generators and
CustomTargets are no longer ignored. Dependencies are setup properly and
they are added to the commandline.
8 years ago
Nirbheek Chauhan
9ac98040ae
Add a unittest using the Vala and C warnings test
...
This actually tests that -Wall, -Werror, and -w are set in the right
targets.
8 years ago
Nirbheek Chauhan
5dcb8daaf3
vala tests: Test no-warnings code with werror in default_options
...
If the no-warnings code is working properly, -Werror will do nothing
because there's no warnings to error out with.
8 years ago
Guillaume Poirier-Morency
a0b04e730e
Add a Vala test case for mixed sources
8 years ago
Nirbheek Chauhan
f42d0f5063
Add a vala test for generated sources in subdirs
...
Modified from a test case provided by @benwaffle on
https://github.com/mesonbuild/meson/issues/815
8 years ago
Jussi Pakkanen
d6b2053146
Can build Vala shared libraries.
9 years ago
Jussi Pakkanen
2d1aa395e8
Dumped fastvapi and made library linking with Vala work.
9 years ago
Igor Gnatenko
d7ca9eee5a
vala: add support for --target-glib
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
ab1c35dd0b
tests: add negative test against #117
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
2c65b1f0c3
Renamed deps -> dependencies.
11 years ago
Jussi Pakkanen
0322579329
Can use external dependencies in Vala.
11 years ago
Jussi Pakkanen
cdee05082b
Can parallel compile a Vala target with multiple files.
11 years ago
Jussi Pakkanen
7edd58f591
Now can compile Vala executables.
11 years ago
Jussi Pakkanen
9c2364b515
Started work on Vala compilation.
11 years ago