From 7aff31171eb3e756fc6ac6ff4bb4db6dcc96e42a Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 15 Jul 2013 10:50:15 +0200 Subject: Handle "indirect" changes to a product's file list. If the list of source files in a product changed without the respective file having been touched (e.g. because the list was dependent on an environment variable), we re-resolved the product, but we did not touch the build data, so the new file was not compiled. Change-Id: Ib63020339aa0bbc2a858ed22f938ab76fb0611c5 Reviewed-by: Joerg Bornemann --- .../testdata/trackExternalProductChanges/environmentChange.cpp | 1 + .../auto/blackbox/testdata/trackExternalProductChanges/fileList.js | 1 + .../blackbox/testdata/trackExternalProductChanges/jsFileChange.cpp | 1 + tests/auto/blackbox/testdata/trackExternalProductChanges/main.cpp | 1 + .../auto/blackbox/testdata/trackExternalProductChanges/project.qbs | 6 ++++++ 5 files changed, 10 insertions(+) create mode 100644 tests/auto/blackbox/testdata/trackExternalProductChanges/environmentChange.cpp create mode 100644 tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js create mode 100644 tests/auto/blackbox/testdata/trackExternalProductChanges/jsFileChange.cpp create mode 100644 tests/auto/blackbox/testdata/trackExternalProductChanges/main.cpp create mode 100644 tests/auto/blackbox/testdata/trackExternalProductChanges/project.qbs (limited to 'tests/auto/blackbox/testdata/trackExternalProductChanges') diff --git a/tests/auto/blackbox/testdata/trackExternalProductChanges/environmentChange.cpp b/tests/auto/blackbox/testdata/trackExternalProductChanges/environmentChange.cpp new file mode 100644 index 000000000..dd3c37880 --- /dev/null +++ b/tests/auto/blackbox/testdata/trackExternalProductChanges/environmentChange.cpp @@ -0,0 +1 @@ +void environmentChange() { } diff --git a/tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js b/tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js new file mode 100644 index 000000000..0d540d82e --- /dev/null +++ b/tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js @@ -0,0 +1 @@ +function fileList() { return []; } diff --git a/tests/auto/blackbox/testdata/trackExternalProductChanges/jsFileChange.cpp b/tests/auto/blackbox/testdata/trackExternalProductChanges/jsFileChange.cpp new file mode 100644 index 000000000..a23a409ae --- /dev/null +++ b/tests/auto/blackbox/testdata/trackExternalProductChanges/jsFileChange.cpp @@ -0,0 +1 @@ +void jsFileChange() { } diff --git a/tests/auto/blackbox/testdata/trackExternalProductChanges/main.cpp b/tests/auto/blackbox/testdata/trackExternalProductChanges/main.cpp new file mode 100644 index 000000000..8b8d58de0 --- /dev/null +++ b/tests/auto/blackbox/testdata/trackExternalProductChanges/main.cpp @@ -0,0 +1 @@ +int main() { } diff --git a/tests/auto/blackbox/testdata/trackExternalProductChanges/project.qbs b/tests/auto/blackbox/testdata/trackExternalProductChanges/project.qbs new file mode 100644 index 000000000..cfd897447 --- /dev/null +++ b/tests/auto/blackbox/testdata/trackExternalProductChanges/project.qbs @@ -0,0 +1,6 @@ +import qbs +import "fileList.js" as FileList + +CppApplication { + files: ["main.cpp"].concat(FileList.fileList()).concat(qbs.getenv("QBS_TEST_PULL_IN_FILE_VIA_ENV") ? ["environmentChange.cpp"] : []) +} -- cgit v1.2.3