Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linking on mac #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ You can build the binaries using "lime rebuild"

lime rebuild gamecenter ios

For mac you need to add this to ```mac-toolchain.xml``` in ```linker id="dll"```
```
<flag value="-framework"/>
<flag value="Gamekit"/>
```

To return to release builds:

haxelib dev gamecenter
11 changes: 6 additions & 5 deletions project/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
<compilerflag value="-Imacos/include"/>
<compilerflag value="-Iinclude"/>

<flag value="-framework"/>
<flag value="Gamekit"/>

<file name="mac/GameCenter.mm"/>

</files>
Expand All @@ -40,7 +37,11 @@
<files id="common"/>
<files id="iphone" if="iphone"/>
<files id="mac" if="mac"/>


<section if="macos">
<vflag name="-framework" value="GameKit" />
</section>

</target>

<target id="default">
Expand All @@ -49,4 +50,4 @@

</target>

</xml>
</xml>