Blob Blame History Raw
# !/usr/env/python
# Simple script to generate libpsl.pc from
# for Visual Studio builds

import sys
import argparse

from replace import replace_multi
from pc_base import BasePCItems

def main(argv):
    parser = argparse.ArgumentParser(description='Setup basic libpsl.pc file info')
    parser.add_argument('--name', help='Name of package', required=True)
    parser.add_argument('--url', help='Package Home Page URL', required=True)

    base_pc = BasePCItems()
    base_pc.setup(argv, parser)
    args = parser.parse_args()

    pc_replace_items = {'@PACKAGE_NAME@':,
                        '@PACKAGE_VERSION@': args.version,
                        '@PACKAGE_URL@': args.url}


    # Generate libpsl.pc
    replace_multi(base_pc.top_srcdir + '/',
                  base_pc.srcdir + '/libpsl.pc',

if __name__ == '__main__':