Skip to content

automatic import all cppkg package #58

@luoliwoshang

Description

@luoliwoshang
  • Order issues during batch conversion

  • Using llcppg.cfg with trimPrefixes to remove namespaces before importing into the repository; however, the automation process may not correctly identify and populate this configuration automatically

  • Since batch conversion cannot be verified with demos, validation may only be possible via llgo build

  • The auto-generated llcpp.cfg will, by default, include all header files under cflags. For example, libxml2 will include zlib headers as part of its includes, and libxslt will include both libxml2 and zlib headers — which is unintended. In such cases, headers like those from libxml2 and zlib need to be removed.

llpkg.cfg

{
  "upstream": {
    "package": {
      "name": "libxslt",
      "version": "1.1.34"
    },
    "installer":{
      "name": "conan",
      "config" : {
        "options": "libxml2/*:iconv=False"
      }
    }
  }
}
{
	"name": "libxslt_full_package",
	"cflags": "$(pkg-config --cflags libxslt_full_package)",
	"libs": "$(pkg-config --libs libxslt_full_package)",
	"include": [
		"libxslt/variables.h",
		"libxslt/functions.h",
		"libxslt/xsltutils.h",
		"libxslt/templates.h",
		"libxslt/pattern.h",
		"libxslt/preproc.h",
		"libxslt/extra.h",
		"libxslt/documents.h",
		"libxslt/imports.h",
		"libxslt/keys.h",
		"libxslt/transform.h",
		"libxslt/security.h",
		"libxslt/extensions.h",
		"libxslt/xsltInternals.h",
		"libexslt/exslt.h",
		"libxslt/numbersInternals.h",
		"libxslt/attributes.h",
		"libxslt/namespaces.h",
		"libxslt/xslt.h",
		"libxslt/xsltlocale.h",
		"libexslt/exsltexports.h",
		"libxslt/xsltconfig.h",
		"libxslt/xsltexports.h",
		"libexslt/exsltconfig.h",
		"libxml2/libxml/parserInternals.h",
		"libxml2/libxml/xmlschemastypes.h",
		"libxml2/libxml/xmlreader.h",
		"libxml2/libxml/HTMLtree.h",
		"libxml2/libxml/xpointer.h",
		"libxml2/libxml/xpathInternals.h",
		"libxml2/libxml/c14n.h",
		"libxml2/libxml/debugXML.h",
		"libxml2/libxml/threads.h",
		"libxml2/libxml/xlink.h",
		"libxml2/libxml/entities.h",
		"libxml2/libxml/globals.h",
		"libxml2/libxml/hash.h",
		"libxml2/libxml/SAX.h",
		"libxml2/libxml/SAX2.h",
		"libxml2/libxml/xpath.h",
		"libxml2/libxml/parser.h",
		"libxml2/libxml/xmlwriter.h",
		"libxml2/libxml/pattern.h",
		"libxml2/libxml/relaxng.h",
		"libxml2/libxml/schemasInternals.h",
		"libxml2/libxml/schematron.h",
		"libxml2/libxml/HTMLparser.h",
		"libxml2/libxml/tree.h",
		"libxml2/libxml/uri.h",
		"libxml2/libxml/valid.h",
		"libxml2/libxml/xinclude.h",
		"libxml2/libxml/encoding.h",
		"libxml2/libxml/xmlIO.h",
		"libxml2/libxml/catalog.h",
		"libxml2/libxml/xmlerror.h",
		"libxml2/libxml/xmlschemas.h",
		"libxml2/libxml/xmlmemory.h",
		"libxml2/libxml/xmlsave.h",
		"libxml2/libxml/xmlregexp.h",
		"libxml2/libxml/chvalid.h",
		"libxml2/libxml/xmlautomata.h",
		"libxml2/libxml/xmlmodule.h",
		"libxml2/libxml/xmlstring.h",
		"libxml2/libxml/xmlunicode.h",
		"libxml2/libxml/dict.h",
		"libxml2/libxml/nanohttp.h",
		"libxml2/libxml/nanoftp.h",
		"libxml2/libxml/list.h",
		"libxml2/libxml/xmlversion.h",
		"libxml2/libxml/xmlexports.h",
		"libxml2/win32config.h",
		"zlib.h",
		"zconf.h"
	],
	"trimPrefixes": [],
	"cplusplus": false,
	"deps": [],
	"keepUnderScore": false,
	"impl": [
		{
			"files": [],
			"cond": {
				"os": [],
				"arch": []
			}
		}
	],
	"mix": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions