Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
macos examples build file added
Browse files Browse the repository at this point in the history
  • Loading branch information
morghan committed Aug 28, 2018
1 parent 4589dc9 commit d726c86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions ExamplesBuildMacOs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
mkdir bin
cp mod.io-sdk-v0.8.0/lib/macos/x64/libmodio.dylib bin/
clang++ -shared -L./mod.io-sdk-v0.8.0/lib/macos/x64 -lmodio ./src/modioWrapper.cpp ./src/modioWrapperCallbacks.cpp ./src/modioWrapperObjects.cpp -o ./bin/modioWrapperMacOS.ndll -I./include -I./mod.io-sdk-v0.8.0/include -std=c++11
haxe -cp src/examples -main Ex01_Authentication -cpp bin -D macos
haxe -cp src/examples -main Ex02_BrowseMods -cpp bin -D macos
haxe -cp src/examples -main Ex03_SubscribeToMod -cpp bin -D macos
haxe -cp src/examples -main Ex04_UnsubscribeFromMod -cpp bin -D macos
haxe -cp src/examples -main Ex05_AutomaticDownloads -cpp bin -D macos
haxe -cp src/examples -main Ex06_AddMod -cpp bin -D macos
haxe -cp src/examples -main Ex07_EditMod -cpp bin -D macos

# Run an individual example by typing the following
# LD_LIBRARY_PATH=./bin ./bin/Ex01_Authentication

0 comments on commit d726c86

Please sign in to comment.