Creating a cross-platform C ++ library

I wanted to create a cross-platform 2D game engine, and I would like to know how to create a cross-platform project with a Makefile, so I can compile it to the platforms that I choose using a custom rule for any platform. I am working on a Windows environment with Visual C ++ Express 2008, so it would be nice if I can use Visual C ++ Express as an IDE.

My platforms are YET Nintendo DS and PC.

Please explain to me what to do.

Thanks Tamir.

+3
source share
2 answers

make, - , cmake, . Windows, Visual Studio; Linux GNU make . . Cmake .

CMake ( make) - - . , , , . , . , "-" - . , , Boost. Boost , .

+5

, Makefiles #defines, , , . , Mac/Windows/Linux.

, , , ; make -, , .

0

Source: https://habr.com/ru/post/1735185/


All Articles