Permalink
Browse files

Removed Mac OS X dependencies.

  • Loading branch information...
1 parent 8a0df9b commit 58394960b0ef96ba098d5a395455f0ff2e36aa7f @kench committed Jun 17, 2011
Showing with 16 additions and 0 deletions.
  1. +14 −0 npapi_plugin/build-linux.sh
  2. +2 −0 npapi_plugin/npp_entry.cc
@@ -0,0 +1,14 @@
+#!/bin/sh
+echo "Assuming homebrew install of libusb and libfreenect"
+mkdir -p depthjs.plugin/Contents/MacOS
+cp -f Info.plist depthjs.plugin/Contents
+g++ -Wno-write-strings -lresolv \
+ -I/usr/local/include \
+ -I/usr/local/include/libusb-1.0 -I/usr/local/include/libfreenect \
+ `pkg-config --cflags libusb-1.0` \
+ `pkg-config --cflags opencv` \
+ -lz \
+ -Wall \
+ -o depthjs \
+ np_entry.cc npp_entry.cc plugin.cc depthjs.cc \
+ ocv_freenect.cpp bg_fg_blobs.cpp
@@ -131,6 +131,7 @@ NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason) {
}
int16_t NPP_HandleEvent(NPP instance, void* event) {
+#ifdef __APPLE__
EventRecord* carbonEvent = (EventRecord*)event;
if (carbonEvent && carbonEvent->what != 0) {
std::cout << "DepthJS Plugin: NPP_HandleEvent type: " << carbonEvent->what << "\n";
@@ -139,6 +140,7 @@ int16_t NPP_HandleEvent(NPP instance, void* event) {
NPCocoaEvent* cocoaEvent = (NPCocoaEvent*)event;
std::cout << "DepthJS: NPP_HandleEvent type: " << cocoaEvent->type << "\n";
*/
+#endif
return 0;
}

0 comments on commit 5839496

Please sign in to comment.