skywind3000 / skywind3000/emake

怎样实现条件编译?

Open
#18 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
909
Forks
122
PR merge metrics
No merged PRs in 30d

Description

比如那些 -DXXXXX 的条件,在CMake以及别的很多make中,可以通过这样的条件选项使用不同的头文件啊源码文件啊以及不同的库和选项。从emake的readme看,和这种比较类似的是name? 那么这个怎么使用呢?在不写ini的情况下。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with emake's README and the issue's reference to the name? form, then determine how conditional compilation should correspond to -DXXXXX options in CMake and other make tools. The issue does not name files or tests; done would require a defined approach for selecting headers, source files, libraries, and options without an INI file.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake, cpp
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.