Skip to content

Commit

Permalink
Avoid camera
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasuster committed Sep 28, 2023
1 parent 34c6673 commit 6dbc5ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion project/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
<vflag name="-framework" value="OpenGL" />
<vflag name="-framework" value="AppKit" />
<vflag name="-framework" value="OpenAL"/>
<vflag name="-framework" value="AVFoundation" if="NME_CAMERA"/>
<vflag name="-framework" value="AVFoundation" />
<vflag name="-framework" value="CoreMedia" if="NME_CAMERA"/>
<vflag name="-framework" value="CoreVideo" if="NME_CAMERA"/>
</section>
Expand Down
7 changes: 4 additions & 3 deletions project/ToolkitBuild.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@

<set name="NME_OPENAL" value="1" if="emscripten" />

<set name="NME_CAMERA" value="1" unless="emscripten||winrt" />
<!-- <set name="NME_CAMERA" value="1" unless="emscripten||winrt" />-->
<set name="NME_NO_CAMERA" value="1" />

<!-- Built relative to "bin" -->
<set name="NME_ROOT" value="" />
Expand Down Expand Up @@ -561,8 +562,8 @@
<vflag name="-framework" value="OpenGL" if="NME_OGL" />
<vflag name="-framework" value="AppKit" />
<vflag name="-framework" value="OpenAL"/>
<vflag name="-framework" value="AVFoundation" if="NME_CAMERA"/>
<vflag name="-framework" value="CoreMedia" if="NME_CAMERA"/>
<vflag name="-framework" value="AVFoundation" />
<vflag name="-framework" value="CoreMedia" />
<vflag name="-framework" value="CoreVideo" if="NME_CAMERA"/>
<lib name="-liconv" />
</section>
Expand Down
2 changes: 1 addition & 1 deletion project/src/common/ExternalInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ extern "C" void InitIDs()
_tile_rect = FRect(0, 0, 1, 1);

#ifndef NME_NO_CAMERA
InitCamera();
// InitCamera();
#endif
}

Expand Down

0 comments on commit 6dbc5ff

Please sign in to comment.