The embodiment of the invention provides a compilation method, device and terminal equipment, a compiler system which includes the compilation method of compilation system: through the integrated development environment of IDE container, container loading tool chain is matched with the current compilation system compiled demand and dependence on the library container; the tool chain container and rely on the library container. The execution of the current compiler compiler system. The method provided by the embodiment of the invention, the tool chain container through matching the IDE container loading and rely on the library container, you can build different needs of the current compilation system compiler compiler environment, not only to avoid the construction of environment by setting the environment variables and chroot mode, rely heavily on the operating system environment, and based on the the tool chain container and container dependent libraries construct different needs of compiler compiler environment, to achieve the isolation of the compiler environment, and effectively solves the multi branch compiler tool chain low efficiency problem.
【技术实现步骤摘要】
编译系统的编译方法、装置及终端设备
本专利技术涉及计算机
,具体而言,本专利技术涉及一种编译系统的编译方法、装置及终端设备。
技术介绍
当前的操作系统一般由框架层和应用层组成,在框架层上面是用户应用。框架层服务以及用户应用通过集成了pdk(ProgrammerDevelopKit,程序员开发套件)环境的IDE(IntegratedDevelopmentEnvironment,集成开发环境)完成编译。在编译用户应用时,通过设置环境变量的方式构建编译环境,使得IDE能够找到部署在本地的工具链和依赖包;在编译框架层服务时,主要通过运行chroot(changerootdirectory,更改根目录)命令的方式构建部署在本地的工具链和依赖包;在启动IDE时,通过设置环境变量的方式来指定启动IDE所需的特定动态库的版本以及运行时可能加载的工具,例如emulator(仿真工具),gdb(调试工具)等工具。然而,通过设置环境变量及chroot的方式构建编译环境,使得编译系统极度依赖IDE所处操作系统环境,一方面,当IDE所处操作系统环境平台性能受限,会对编译速度造成极大程度的降低;另一方面,很容易对IDE系统环境造成破坏,且极难恢复;再一方面,极大程度的限制了启动IDE所需的操作系统环境,若在非特定操作系统环境下启动编译系统IDE,则可能造成无法成功设置本地环境变量以及启动加载失败的情况,例如,若将为linux环境提供的设置环境变量脚本和定制的QtCreator插件移到windows环境下,则IDE加载就会失败;最后,增加了为不同系统环境定制不同插件的成本。专利技 ...
【技术保护点】
一种编译系统的编译方法,其特征在于,包括:通过集成开发环境IDE容器,加载与当前编译系统的编译需求相匹配的工具链容器及依赖库容器;基于所述工具链容器与所述依赖库容器,执行当前编译系统的编译。
【技术特征摘要】
1.一种编译系统的编译方法,其特征在于,包括:通过集成开发环境IDE容器,加载与当前编译系统的编译需求相匹配的工具链容器及依赖库容器;基于所述工具链容器与所述依赖库容器,执行当前编译系统的编译。2.根据权利要求1所述的方法,其特征在于,在所述通过IDE容器,加载与当前编译系统的编译需求匹配的工具链容器及依赖库容器之前,还包括:基于当前的操作系统,通过预设窗口系统协议与IDE容器内预存储的窗口协议建立连接,以启动所述IDE容器。3.根据权利要求1或2所述的方法,其特征在于,所述通过集成开发环境IDE容器,加载与当前编译系统的编译需求匹配的工具链容器及依赖库容器,包括:基于与IDE容器的编译需求对应的工具链类型和/或版本号,匹配对应的工具链容器;基于与IDE容器的编译需求对应的目标项目分支,匹配对应的依赖库容器;级联IDE容器与工具链容器并级联IDE容器与依赖库容器,以加载与当前编译系统的编译需求相匹配的工具链容器及依赖库容器;其中,工具链容器的容器镜像中包括一种类型和/或版本号的工具链相关信息;依赖库容器的容器镜像中包括一种类型和/或版本号的依赖库相关信息。4.根据权利要求3所述的方法,其特征在于,所述基于与IDE容器的编译需求对应的目标项目分支,匹配对应的依赖库容器,包括:基于与IDE容器的编译需求对应的在IDE容器中预存储的代码仓库的代码分支,匹配对应的依赖库容器。5.根据...
【专利技术属性】
技术研发人员:沙斌,
申请(专利权)人:北京元心科技有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。