@@ -4511,184 +4511,187 @@ def output_name(name, type_):
45114511 static_lib_name = lambda name : output_name (name , StaticLibrary )
45124512 exe_name = lambda name : output_name (name , Executable )
45134513
4514+ def get_path (f ):
4515+ return Path (f ).as_posix ()
4516+
45144517 expected = {
45154518 'targets' : {
4516- f'{ self .builddir } /out1-notag.txt' : {
4519+ get_path ( f'{ self .builddir } /out1-notag.txt' ) : {
45174520 'destination' : '{datadir}/out1-notag.txt' ,
45184521 'tag' : None ,
45194522 'subproject' : None ,
45204523 },
4521- f'{ self .builddir } /out2-notag.txt' : {
4524+ get_path ( f'{ self .builddir } /out2-notag.txt' ) : {
45224525 'destination' : '{datadir}/out2-notag.txt' ,
45234526 'tag' : None ,
45244527 'subproject' : None ,
45254528 },
4526- f'{ self .builddir } /libstatic.a' : {
4529+ get_path ( f'{ self .builddir } /libstatic.a' ) : {
45274530 'destination' : '{libdir_static}/libstatic.a' ,
45284531 'tag' : 'devel' ,
45294532 'subproject' : None ,
45304533 },
4531- f '{ self .builddir } /' + exe_name ('app' ): {
4534+ get_path ( '{self.builddir}/' + exe_name ('app' ) ): {
45324535 'destination' : '{bindir}/' + exe_name ('app' ),
45334536 'tag' : 'runtime' ,
45344537 'subproject' : None ,
45354538 },
4536- f '{ self .builddir } /' + exe_name ('app-otherdir' ): {
4539+ get_path ( '{self.builddir}/' + exe_name ('app-otherdir' ) ): {
45374540 'destination' : '{prefix}/otherbin/' + exe_name ('app-otherdir' ),
45384541 'tag' : 'runtime' ,
45394542 'subproject' : None ,
45404543 },
4541- f '{ self .builddir } /subdir/' + exe_name ('app2' ): {
4544+ get_path ( '{self.builddir}/subdir/' + exe_name ('app2' ) ): {
45424545 'destination' : '{bindir}/' + exe_name ('app2' ),
45434546 'tag' : 'runtime' ,
45444547 'subproject' : None ,
45454548 },
4546- f '{ self .builddir } /' + shared_lib_name ('shared' ): {
4549+ get_path ( '{self.builddir}/' + shared_lib_name ('shared' ) ): {
45474550 'destination' : '{libdir_shared}/' + shared_lib_name ('shared' ),
45484551 'tag' : 'runtime' ,
45494552 'subproject' : None ,
45504553 },
4551- f '{ self .builddir } /' + shared_lib_name ('both' ): {
4554+ get_path ( '{self.builddir}/' + shared_lib_name ('both' ) ): {
45524555 'destination' : '{libdir_shared}/' + shared_lib_name ('both' ),
45534556 'tag' : 'runtime' ,
45544557 'subproject' : None ,
45554558 },
4556- f '{ self .builddir } /' + static_lib_name ('both' ): {
4559+ get_path ( '{self.builddir}/' + static_lib_name ('both' ) ): {
45574560 'destination' : '{libdir_static}/' + static_lib_name ('both' ),
45584561 'tag' : 'devel' ,
45594562 'subproject' : None ,
45604563 },
4561- f '{ self .builddir } /' + shared_lib_name ('bothcustom' ): {
4564+ get_path ( '{self.builddir}/' + shared_lib_name ('bothcustom' ) ): {
45624565 'destination' : '{libdir_shared}/' + shared_lib_name ('bothcustom' ),
45634566 'tag' : 'custom' ,
45644567 'subproject' : None ,
45654568 },
4566- f '{ self .builddir } /' + static_lib_name ('bothcustom' ): {
4569+ get_path ( '{self.builddir}/' + static_lib_name ('bothcustom' ) ): {
45674570 'destination' : '{libdir_static}/' + static_lib_name ('bothcustom' ),
45684571 'tag' : 'custom' ,
45694572 'subproject' : None ,
45704573 },
4571- f '{ self .builddir } /subdir/' + shared_lib_name ('both2' ): {
4574+ get_path ( '{self.builddir}/subdir/' + shared_lib_name ('both2' ) ): {
45724575 'destination' : '{libdir_shared}/' + shared_lib_name ('both2' ),
45734576 'tag' : 'runtime' ,
45744577 'subproject' : None ,
45754578 },
4576- f '{ self .builddir } /subdir/' + static_lib_name ('both2' ): {
4579+ get_path ( '{self.builddir}/subdir/' + static_lib_name ('both2' ) ): {
45774580 'destination' : '{libdir_static}/' + static_lib_name ('both2' ),
45784581 'tag' : 'devel' ,
45794582 'subproject' : None ,
45804583 },
4581- f '{ self .builddir } /out1-custom.txt' : {
4584+ get_path ( '{self.builddir}/out1-custom.txt' ) : {
45824585 'destination' : '{datadir}/out1-custom.txt' ,
45834586 'tag' : 'custom' ,
45844587 'subproject' : None ,
45854588 },
4586- f '{ self .builddir } /out2-custom.txt' : {
4589+ get_path ( '{self.builddir}/out2-custom.txt' ) : {
45874590 'destination' : '{datadir}/out2-custom.txt' ,
45884591 'tag' : 'custom' ,
45894592 'subproject' : None ,
45904593 },
4591- f '{ self .builddir } /out3-custom.txt' : {
4594+ get_path ( '{self.builddir}/out3-custom.txt' ) : {
45924595 'destination' : '{datadir}/out3-custom.txt' ,
45934596 'tag' : 'custom' ,
45944597 'subproject' : None ,
45954598 },
4596- f '{ self .builddir } /subdir/out1.txt' : {
4599+ get_path ( '{self.builddir}/subdir/out1.txt' ) : {
45974600 'destination' : '{datadir}/out1.txt' ,
45984601 'tag' : None ,
45994602 'subproject' : None ,
46004603 },
4601- f '{ self .builddir } /subdir/out2.txt' : {
4604+ get_path ( '{self.builddir}/subdir/out2.txt' ) : {
46024605 'destination' : '{datadir}/out2.txt' ,
46034606 'tag' : None ,
46044607 'subproject' : None ,
46054608 },
4606- f '{ self .builddir } /out-devel.h' : {
4609+ get_path ( '{self.builddir}/out-devel.h' ) : {
46074610 'destination' : '{includedir}/out-devel.h' ,
46084611 'tag' : 'devel' ,
46094612 'subproject' : None ,
46104613 },
4611- f '{ self .builddir } /out3-notag.txt' : {
4614+ get_path ( '{self.builddir}/out3-notag.txt' ) : {
46124615 'destination' : '{datadir}/out3-notag.txt' ,
46134616 'tag' : None ,
46144617 'subproject' : None ,
46154618 },
46164619 },
46174620 'configure' : {
4618- f '{ self .builddir } /foo-notag.h' : {
4621+ get_path ( '{self.builddir}/foo-notag.h' ) : {
46194622 'destination' : '{datadir}/foo-notag.h' ,
46204623 'tag' : None ,
46214624 'subproject' : None ,
46224625 },
4623- f '{ self .builddir } /foo2-devel.h' : {
4626+ get_path ( '{self.builddir}/foo2-devel.h' ) : {
46244627 'destination' : '{includedir}/foo2-devel.h' ,
46254628 'tag' : 'devel' ,
46264629 'subproject' : None ,
46274630 },
4628- f '{ self .builddir } /foo-custom.h' : {
4631+ get_path ( '{self.builddir}/foo-custom.h' ) : {
46294632 'destination' : '{datadir}/foo-custom.h' ,
46304633 'tag' : 'custom' ,
46314634 'subproject' : None ,
46324635 },
4633- f '{ self .builddir } /subdir/foo2.h' : {
4636+ get_path ( '{self.builddir}/subdir/foo2.h' ) : {
46344637 'destination' : '{datadir}/foo2.h' ,
46354638 'tag' : None ,
46364639 'subproject' : None ,
46374640 },
46384641 },
46394642 'data' : {
4640- f '{ testdir } /bar-notag.txt' : {
4643+ get_path ( '{testdir}/bar-notag.txt' ) : {
46414644 'destination' : '{datadir}/bar-notag.txt' ,
46424645 'tag' : None ,
46434646 'subproject' : None ,
46444647 },
4645- f '{ testdir } /bar-devel.h' : {
4648+ get_path ( '{testdir}/bar-devel.h' ) : {
46464649 'destination' : '{includedir}/bar-devel.h' ,
46474650 'tag' : 'devel' ,
46484651 'subproject' : None ,
46494652 },
4650- f '{ testdir } /bar-custom.txt' : {
4653+ get_path ( '{testdir}/bar-custom.txt' ) : {
46514654 'destination' : '{datadir}/bar-custom.txt' ,
46524655 'tag' : 'custom' ,
46534656 'subproject' : None ,
46544657 },
4655- f '{ testdir } /subdir/bar2-devel.h' : {
4658+ get_path ( '{testdir}/subdir/bar2-devel.h' ) : {
46564659 'destination' : '{includedir}/bar2-devel.h' ,
46574660 'tag' : 'devel' ,
46584661 'subproject' : None ,
46594662 },
4660- f '{ testdir } /subprojects/subproject/aaa.txt' : {
4663+ get_path ( '{testdir}/subprojects/subproject/aaa.txt' ) : {
46614664 'destination' : '{datadir}/subproject/aaa.txt' ,
46624665 'tag' : None ,
46634666 'subproject' : 'subproject' ,
46644667 },
4665- f '{ testdir } /subprojects/subproject/bbb.txt' : {
4668+ get_path ( '{testdir}/subprojects/subproject/bbb.txt' ) : {
46664669 'destination' : '{datadir}/subproject/bbb.txt' ,
46674670 'tag' : 'data' ,
46684671 'subproject' : 'subproject' ,
46694672 },
46704673 },
46714674 'headers' : {
4672- f '{ testdir } /foo1-devel.h' : {
4675+ get_path ( '{testdir}/foo1-devel.h' ) : {
46734676 'destination' : '{includedir}/foo1-devel.h' ,
46744677 'tag' : 'devel' ,
46754678 'subproject' : None ,
46764679 },
4677- f '{ testdir } /subdir/foo3-devel.h' : {
4680+ get_path ( '{testdir}/subdir/foo3-devel.h' ) : {
46784681 'destination' : '{includedir}/foo3-devel.h' ,
46794682 'tag' : 'devel' ,
46804683 'subproject' : None ,
46814684 },
46824685 },
46834686 'install_subdirs' : {
4684- f '{ testdir } /custom_files' : {
4687+ get_path ( '{testdir}/custom_files' ) : {
46854688 'destination' : '{datadir}/custom_files' ,
46864689 'tag' : 'custom' ,
46874690 'subproject' : None ,
46884691 'exclude_dirs' : [],
46894692 'exclude_files' : [],
46904693 },
4691- f '{ testdir } /excludes' : {
4694+ get_path ( '{testdir}/excludes' ) : {
46924695 'destination' : '{datadir}/excludes' ,
46934696 'tag' : 'custom' ,
46944697 'subproject' : None ,
0 commit comments