Ejemplo n.º 1
0
    def runargs(self, config, output_dir, prefix=DEFAULT_PREFIX_MACRO):
        if not os.path.exists(output_dir):
            os.makedirs(output_dir)

        for pc in PkgConfig.list_all(env=config.env):
            p2v = PkgConfig2VSProps(pc, prefix=config.prefix,
                    inherit_common=True,
                    prefix_replacement='$(%s)' % prefix, env=config.env)
            p2v.create(output_dir)
            m.action('Created %s.props' % pc)

        common = CommonProps(prefix)
        common.create(output_dir)

        m.message('Property sheets files were sucessfully created in %s' %
                  os.path.abspath(output_dir))
Ejemplo n.º 2
0
    def runargs(self, config, output_dir, prefix=DEFAULT_PREFIX_MACRO):
        if not os.path.exists(output_dir):
            os.makedirs(output_dir)

        for pc in PkgConfig.list_all():
            p2v = PkgConfig2VSProps(pc, prefix=config.prefix,
                    inherit_common=True,
                    prefix_replacement='$(%s)' % prefix)
            p2v.create(output_dir)
            m.action('Created %s.props' % pc)

        common = CommonProps(prefix)
        common.create(output_dir)

        m.message('Property sheets files were sucessfully created in %s' %
                  os.path.abspath(output_dir))
 def testListAll(self):
     expected = ['gobject-2.0', 'gmodule-2.0', 'libxml-2.0', 'gthread-2.0',
             'glib-2.0', 'gmodule-no-export-2.0', 'gstreamer-0.10']
     self.assertEqual(sorted(PkgConfig.list_all()), sorted(expected))
 def testListAll(self):
     expected = [
         'gobject-2.0', 'gmodule-2.0', 'libxml-2.0', 'gthread-2.0',
         'glib-2.0', 'gmodule-no-export-2.0', 'gstreamer-0.10'
     ]
     self.assertEquals(sorted(PkgConfig.list_all()), sorted(expected))