# add_configure_flags **Repository Path**: yushi-Icy/add_configure_flags ## Basic Information - **Project Name**: add_configure_flags - **Description**: 支持编译选项格式的转换。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-08-21 - **Last Updated**: 2023-12-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: Spec ## 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) ``` 3. test_add_macros.spec,将test_add.sh改为宏函数的功能实现 4. glibc.spec,add_configure_flags宏函数加入后修改的spec,可直接用于glibc软件包的编译 5. help.txt,glibc的configure --help输出,测试匹配使用,在spec中直接赋值至字符串变量 6. openEuler_macro,支持分层定制解析configure option的预置宏 7. macros.patch,提供add_configure_flags相关功能的patch #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)