Exemplo n.º 1
0
    def _do_koinstall(self, subcmd, opts):
        """${cmd_name}: build and install this extension into a Komodo build

        ${cmd_usage}
        ${cmd_option_list}
        This command is for building *core* Komodo extensions into a Komodo
        build. This is *not* a command for installing an extension into a
        Komodo installation (either install the .xpi for use `koext devinstall`
        for that).
        """
        if opts.source_dir is None:
            opts.source_dir = os.curdir
        ppdefines = {
            "MODE": opts.mode,
        }
        if opts.defines:
            for pp_definition in opts.defines:
                def_split = pp_definition.split("=", 1)
                if len(def_split) == 2:
                    name, value = def_split
                    ppdefines[name] = value
        if opts.disable_preprocessing:
            ppdefines = None
        koextlib.komodo_build_install(opts.source_dir,
            ppdefines=ppdefines, log=log,
            unjarred=opts.unjarred,
            xpi_path=opts.xpi_path,
            distinstall=(subcmd == "distinstall"),
            additional_includes=opts.additional_includes)
Exemplo n.º 2
0
    def _do_koinstall(self, subcmd, opts):
        """${cmd_name}: build and install this extension into a Komodo build

        ${cmd_usage}
        ${cmd_option_list}
        This command is for building *core* Komodo extensions into a Komodo
        build. This is *not* a command for installing an extension into a
        Komodo installation (either install the .xpi for use `koext devinstall`
        for that).
        """
        if opts.source_dir is None:
            opts.source_dir = os.curdir
        ppdefines = {
            "MODE": opts.mode,
        }
        if opts.defines:
            for pp_definition in opts.defines:
                def_split = pp_definition.split("=", 1)
                if len(def_split) == 2:
                    name, value = def_split
                    ppdefines[name] = value
        if opts.disable_preprocessing:
            ppdefines = None
        koextlib.komodo_build_install(
            opts.source_dir,
            ppdefines=ppdefines,
            log=log,
            unjarred=opts.unjarred,
            xpi_path=opts.xpi_path,
            distinstall=(subcmd == "distinstall"),
            additional_includes=opts.additional_includes,
            packed=opts.packed)