diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-03-04 12:58:35 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-03-04 13:58:35 +0200 |
commit | 760d1bff9cf7db9886aedb02226e5a7105d5d454 (patch) | |
tree | 96ce685a101fdc479a77e19698f3244a8ff1d5ce /test cases/rewrite | |
parent | 81f0eef2df495872af38a04a4fd792a2b9058c6e (diff) | |
download | meson-760d1bff9cf7db9886aedb02226e5a7105d5d454.zip meson-760d1bff9cf7db9886aedb02226e5a7105d5d454.tar.gz meson-760d1bff9cf7db9886aedb02226e5a7105d5d454.tar.bz2 |
rewriter: Sort source files (#5010)
* rewriter: Sort source files
* rewriter: Natural sorting
* rewriter: Fix flake8
* rewriter: Fixed sorting
* rewriter: Make sorting key more readable
* rewriter: Even simpler key
Diffstat (limited to 'test cases/rewrite')
-rw-r--r-- | test cases/rewrite/1 basic/addSrc.json | 2 | ||||
-rw-r--r-- | test cases/rewrite/5 sorting/meson.build | 33 |
2 files changed, 34 insertions, 1 deletions
diff --git a/test cases/rewrite/1 basic/addSrc.json b/test cases/rewrite/1 basic/addSrc.json index 1a8630f..b8bc439 100644 --- a/test cases/rewrite/1 basic/addSrc.json +++ b/test cases/rewrite/1 basic/addSrc.json @@ -3,7 +3,7 @@ "type": "target", "target": "trivialprog1", "operation": "src_add", - "sources": ["a1.cpp", "a2.cpp", "a1.cpp"] + "sources": ["a2.cpp", "a1.cpp", "a2.cpp"] }, { "type": "target", diff --git a/test cases/rewrite/5 sorting/meson.build b/test cases/rewrite/5 sorting/meson.build new file mode 100644 index 0000000..80934a0 --- /dev/null +++ b/test cases/rewrite/5 sorting/meson.build @@ -0,0 +1,33 @@ +project('rewriter source sorting', ['c', 'cpp']) + +src1 = files([ + 'a1.c', + 'a10.c', + 'a2.c', + 'a3.c', + 'bbb/a/b1.c', + 'bbb/a4.c', + 'bbb/b3.c', + 'bbb/b4.c', + 'bbb/b/b2.c', + 'bbb/c1/b5.c', + 'bbb/c10/b6.c', + 'bbb/c2/b7.c', + 'bbb/b5.c', + 'a110.c', + 'aaa/f1.c', + 'aaa/f2.c', + 'aaa/f3.c', + 'a20.c', + 'b1.c', + 'aaa/b/b1.c', + 'aaa/b/b2.c', + 'a30.c', + 'a100.c', + 'aaa/a/a1.c', + 'a101.c', + 'a210.c', + 'c2.c' +]) + +exe1 = executable('exe1', src1) |