1 Star 0 Fork 1

邱堂珂 / add_configure_flags

forked from 余诗 / add_configure_flags 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

add_configure_flags

介绍

支持build.configure编译选项格式的匹配和转换。

	build.configureFlags:
		--enable-static: false
		--enable-ipv6: true
		--with-libunistring-prefix: ${STAGING_LIBDIR}/..
		-DTEST_NS: ON
		-Dgnome: 'true'
		LZO_SUPPORT: '1'
		(caps|cap|capabilities|linux-caps|libcap|libcap-ng): true
	=>
	%global build_configure_flags \
		--disable-static	\
		--enable-ipv6		\
		--with-libunistring-prefix=${STAGING_LIBDIR}/..	\
		-DTEST_NS=ON		\
		-Dgnome=true		\
		LZO_SUPPORT=1		\
		(caps|cap|capabilities|linux-caps|libcap|libcap-ng)=yes

使用说明

  1. add_configure_flags.sh,shell函数功能实现
  2. test_add.sh,将echo/grep/sed/cut改为bash字符串处理的shell函数功能实现,并加入disable/enable和with/without的相互转换
  item = '--disable-static'
  if item not in 'configure --help':
     item_tmp = '--enable-static'
     if item_tmp in 'configure --help':
        configureFlags.add(item)
  1. test_add_macros.spec,将test_add.sh改为宏函数的功能实现
  2. glibc.spec,add_configure_flags宏函数加入后修改的spec,可直接用于glibc软件包的编译
  3. help.txt,glibc的configure --help输出,测试匹配使用,在spec中直接赋值至字符串变量

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

空文件

简介

支持编译选项格式的转换。 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qiu-tangke/add_configure_flags.git
git@gitee.com:qiu-tangke/add_configure_flags.git
qiu-tangke
add_configure_flags
add_configure_flags
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891