Best folder structure for C++ cross-platform library and bindings

前端 未结 4 1493
迷失自我
迷失自我 2021-01-29 18:44

I am about to begin work on a cross-platform library to be written in C++. Down the road, I intend to implement bindings for other languages such as Python, Java, etc. The lib

4条回答
  •  时光取名叫无心
    2021-01-29 19:26

    I recently posted a question about packaging headers in just one directory, decided to go with a small number of include directories.

    Are you going to cater for Win64? That will be an increasingly important target.

    Do not put your build intermediate files anywhere under a tree being checked into svn. If you do so, depending on your svn client tools, they will generate a lot of noise as files which are not in the repository. That makes it hard to see files you've added that should be in the repository.

    Instead, if your compiler allows it, put the intermediate directories off to one side.

    Otherwise, make sure you add the entire intermediate directories to your svn exclusion properties. Some GUI's make that easier than others (Tortoise on Windows, Cornerstone or Versions on OS/X).

提交回复
热议问题