summaryrefslogtreecommitdiff
path: root/test cases/windows
AgeCommit message (Collapse)Author
2018-06-02test extra paths: move test to windowsMathieu Duponchelle
2018-06-01Add a depend_files: keyword to windows.compile_resources()Jon Turney
Expose depend_files: from the custom_target this creates. This is the change suggested in #2815, with tests and documentation added. Fixes #2789 (duplicate #2830)
2018-01-12Fix test cases/windows/13 resources with custom targetsAndrei Alexeyev
Analogous to #2851
2018-01-12windows.compile_resources: fix compiling multiple resources within one projectAndrei Alexeyev
2018-01-12[windows] make compile_resources use custom targets instead of generatorsAndrei Alexeyev
2017-12-31Fix test cases/windows/5 resourcesJon Turney
Currently, this test only tries to load a predefined icon, so the resource compilation and linking can be completely removed from the meson.build and it still passes. Change to try to load the icon contained in the resources we compile.
2017-07-20Make the name of the executable implib configurableJon Turney
2017-07-20Consolidate windows tests which are divided between mingw and msvcJon Turney
2017-07-20Support implibs for executables on WindowsJon Turney
Add a boolean 'implib' kwarg to executable(). If true, it is permitted to use the returned build target object in link_with: On platforms where this makes sense (e.g. Windows), an implib is generated for the executable and used when linking. Otherwise, it has no effect. (Rather than checking if it is a StaticLibrary or SharedLibary, BuildTarget subclasses gain the is_linkable_target method to test if they can appear in link_with:) Also install any executable implib in a similar way to a shared library implib, i.e. placing the implib in the appropriate place Add tests of: - a shared_module containing a reference to a symbol which is known (at link time) to be provided by the executable - trying to link with non-implib executables (should fail) - installing the implib (This last one needs a little enhancement of the installed file checking as this is the first install test we have which needs to work with either MSVC-style or GCC-style implib filenames)
2017-06-21Consistently use windows.h, not Windows.hJon Turney
This is significant when compiling using gcc on a case-sensitive filesystem.
2017-05-16Allow vs_module_defs to use a custom_targetJon Turney
Allow vs_module_defs to use a custom_target Add a test and update documentation
2017-05-12Make vs_module_defs: do something for gcc on Windows as wellJon Turney
Module definition files may be useful when building with gcc on Windows also (e.g. if the existing build uses them, if exports are aliased, if we were retro enough to export by ordinal, etc.) Add the .def file to the link command line when using gcc on Windows Run the appropriate windows tests irrespective of compiler.
2017-04-10Allow using generated files to shared_library vs_module_defs. Closes #1605Dylan Baker
This detects and allows passing a generated file as a vs_module_def, it also adds a testcase that tests using configure_file to generate the .def file.
2017-04-10tests/windows/7: Fix test on CygwinNirbheek Chauhan
Not sure how this was missed.
2017-04-09Merge pull request #1469 from centricular/install-secondary-outputsJussi Pakkanen
Support multiple install dirs for built/custom targets
2017-04-06Run test cases/windows/ tests on CygwinJon Turney
Also, always run 'test cases/windows/5 resources' on Cygwin since it can handle args containing spaces correctly.
2017-04-06Use correct shared library naming for CygwinJon Turney
Use correct shared library naming for Cygwin when building and installing
2017-04-04Don't generate import library for shared modulesNirbheek Chauhan
Also add a test for this on all platforms.
2017-04-04Fix custom directory installation of import libraryNirbheek Chauhan
When install_dir was set for a shared_library, the import library would not be installed at all, which is unintended. Instead, install it into the custom directory if it is set, otherwise install it in the default import library installation directory. Includes a test for this.
2017-03-28tests/windows/5: Skip if build_to_src has spacesNirbheek Chauhan
In this case, the arguments to MinGW windres will contain spaces and the test will definitely fail, so just skip it. This effectively means that manually running the test will be fine, but running it via run_project_tests.py will always fail (skip).
2017-03-28tests/windows/5: Add more subdirs to the testNirbheek Chauhan
This improves test coverage by testing that resources, includes, and build targets being in separate directories works properly.
2017-03-23use a custom cp.bat for cp on Windows (#1488)Nicolas Schneider
* use cross platform copyfile.py instead of cp.bat msvc can be used on Linux through wine, which might not have support for batch files or cmd.exe.
2017-03-05tests: Minor fixes to the library-usage testsNirbheek Chauhan
Actually use the myFunc() symbol from the library, and actually run the built executable on macOS.
2017-03-04Add manual-linking tests to Linux and WindowsNirbheek Chauhan
In this test, we try to manually link against the generated library to create an executable and then run it to verify that it works. Also test for all possible library versioning in the versioning tests on Windows. Even though they yield the same dll naming, we should still test it.
2017-03-03tests/windows: Tests for #1444Nirbheek Chauhan
Check that pdb files are installed
2017-02-18find_program: Correctly use scripts found in PATHNirbheek Chauhan
We also need to check whether the program found in PATH can be executed directly by Windows or if we need to figure out what the interpreter is and add it to the list. Also add `msc` to the list of extensions that can be executed natively Includes a project test and a unit test for this and all expected behaviours on Windows.
2017-01-04tests: Use the new test skipping facility everywhereNirbheek Chauhan
2016-12-28Add include_directories to windows.compile_resources.Elliott Sales de Andrade
2016-07-30Add test for the new find program workaround for WindowsNirbheek Chauhan
2016-07-01Fix tests for the new library/executable naming schemeNirbheek Chauhan
Also add new tests for the platform-specific and compiler-specific versioning scheme. A rough summary is: 1. A bug in how run_tests.py:validate_install checked for files has been fixed. Earlier it wasn't checking the install directory properly. 2. Shared libraries are no longer installed in common tests, and the library name/path testing is now done in platform-specific tests. 3. Executables are now always called something?exe in the installed_files.txt file, and the suffix automatically corrected depending on the platform. 4. If a test installs a file called 'no-installed-files', the installed files for that test are not validated. This is required to implement compiler-specific tests for library names/paths such as MSVC vs MinGW 5. The platform-specific file renaming in run_tests.py has been mostly removed since it is broken for shared libraries and isn't needed for static libraries. 6. run_tests.py now reports all missing and extra files. The logic for finding these has been reworked.
2016-03-30Add shared_library argument for a Visual Studio module definitions fileNirbheek Chauhan
On MSVC, shared libraries only export symbols that have been explicitly exported either as part of the symbol prototype or via a module definitions file. On compilers other than MSVC, all symbols are exported in the shared library by default and the format for the list of symbols to export is different, so this is only used with the VisualStudio compiler. The module defs file path can either be relative to the current source directory or an absolute path using meson.source_root() + '/some/path'
2015-12-17Compile Windows resources. Closes #333.Jussi Pakkanen
2014-03-22Can define entry symbol type.Jussi Pakkanen
2013-06-02C++ is now called cpp rather than cxx.Jussi Pakkanen
2013-06-02Renamed add_test to test.Jussi Pakkanen
2013-04-19Fixed Windows garbage line endings.Jussi Pakkanen
2013-04-19Added test case for C++ app using winmain.Jussi Pakkanen
2013-04-19Added test case for Windows cpp building.Jussi Pakkanen
2013-04-19Added a test using winmain.Jussi Pakkanen
2013-04-19Added a Windows test.Jussi Pakkanen