diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-05-15 09:05:51 +0100 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-01 20:21:09 +0000 |
commit | aa27f7cec95fcd02cb5384b7bf1022bad2b4cab0 (patch) | |
tree | 06bfab4c13e7e8a7729a946588f62b255ca9d478 /run_unittests.py | |
parent | bf2e21ec0edeaf8e86ff6fd46c2c2fcfcc4713ed (diff) | |
download | meson-aa27f7cec95fcd02cb5384b7bf1022bad2b4cab0.zip meson-aa27f7cec95fcd02cb5384b7bf1022bad2b4cab0.tar.gz meson-aa27f7cec95fcd02cb5384b7bf1022bad2b4cab0.tar.bz2 |
Add a depend_files: keyword to windows.compile_resources()
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)
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index d6b2619..a359e3c 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2392,6 +2392,16 @@ class WindowsTests(BasePlatformTests): for l in cc.ignore_libs: self.assertEqual(cc.find_library(l, env, []), []) + def test_rc_depends_files(self): + testdir = os.path.join(self.platform_test_dir, '5 resources') + self.init(testdir) + self.build() + # Immediately rebuilding should not do anything + self.assertBuildIsNoop() + # Changing mtime of sample.ico should rebuild everything + self.utime(os.path.join(testdir, 'res', 'sample.ico')) + self.assertRebuiltTarget('prog') + class LinuxlikeTests(BasePlatformTests): ''' |