Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fourcube/crossplatform-cpp
Minimalistic cross platform gyp-powered cpp demo.
https://github.com/fourcube/crossplatform-cpp
Last synced: 4 days ago
JSON representation
Minimalistic cross platform gyp-powered cpp demo.
- Host: GitHub
- URL: https://github.com/fourcube/crossplatform-cpp
- Owner: fourcube
- Created: 2015-01-21T13:41:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-21T15:31:04.000Z (almost 10 years ago)
- Last Synced: 2024-12-22T19:07:36.520Z (29 days ago)
- Language: C++
- Size: 203 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crossplatform-cpp
## Build
Inside the project directory. The default build steps only build the main project.
"With tests" will include a binary which contains all tests as well as separate binaries
for each module.### Win32 (VS 2013)
```
# Only include "crossplatform-demo" target and it's dependencies
$ gyp build.gyp --depth . -R crossplatform-demo
$ cmd.exe "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" "build.sln" /Build "Debug|Win32"$ Debug\crossplatform-demo.exe
Hello World, Windows!
```#### With tests
```
$ gyp build --depth . build.gyp
$ cmd.exe "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" "build.sln" /Build "Debug|Win32"# For all tests
$ Debug\crossplatform-demo-test.exe# Individual test
$ Debug\demolib_test_bin.exe===============================================================================
All tests passed (3 assertions in 1 test case)```
### Linux
```
$ gyp build --depth . build.gyp
$ make crossplatform-demo$ ./out/Debug/crossplatform-demo
Hello World, Linux!
```#### With tests
```
$ gyp build --depth . build.gyp
$ make all# For all tests
$ ./out/Debug/crossplatform-demo-test# Individual test
$ ./out/Debug/demolib_test_bin===============================================================================
All tests passed (3 assertions in 1 test case)```
### MacOS
```
$ gyp --depth . build.gyp
$ xcodebuild -project build.xcodeproj/ -target crossplatform-demo$ ./build/Debug/crossplatform-demo
Hello World, MacOS!
```#### With tests
```
$ xcodebuild -project build.xcodeproj/ -alltargets# For all tests
$ ./build/Debug/crossplatform-demo-test# Individual test
$ ./demolib/build/Debug/demolib_test_bin===============================================================================
All tests passed (3 assertions in 1 test case)```