Skip to content

Commit b8b07c2

Browse files
committed
finalizing WIN32 work. readme.
1 parent 3f1ebbd commit b8b07c2

File tree

7 files changed

+107
-8
lines changed

7 files changed

+107
-8
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ DepthJS is a browser extension (currently Chrome & Safari) that allows the Micro
44

55
Current Status
66
--------------
7-
January 2012:
7+
#### March 2012:
8+
Windows plugin now works with Chrome.
9+
Use Firebreath to build (see instructions below), or try to use the precompiled version (but then you must rename/copy chrome-extension/manifest.json.WIN32 to chrome-extension/manifest.json).
10+
11+
#### January 2012:
812
Moving to FireBreath NPAPI plugins for Chrome + Firefox. Mac/Safari verion remains as it is (under webkit-plugin-mac and safari-extension-mac).
913
Mac version of the new NPAPI plugin already exists for Chrome, tested and working. You should just be able to go on to chrome://extensions and add it to your browser. Now working on Linux and Windows support.
1014

11-
September 2011:
15+
#### September 2011:
1216
Moving to OpenNI/NITE based backend, forsaking OpenCV for now. Gesture recognition is thus far better than what we had before.
1317
Finger-based gestures will soon follow as a few projects parallel to DepthJS will merge in coming months.
1418

15-
Current gesture language:
19+
#### Current gesture language:
1620
- Wave to start hand tracking and get "blue pointer".
1721
- Push to click.
1822
- Circle to end tracking and remove "blue pointer".
@@ -56,8 +60,7 @@ Start by downloading Firebreath: http://www.firebreath.org/display/documentation
5660
#### Mac building
5761
cd ${DEPTHJS_DIR}/firebreath-plugin/
5862
${FIREBREATH_DIR}/prepmac.sh . # make sure you run this from the DepthJS/firebreath-plugin directory
59-
cd build
60-
make
63+
open build/FireBreath.xcodeproj # at the point XCode will open, build the project and you should be all set
6164

6265
#### Windows building
6366
cd ${DEPTHJS_DIR}/firebreath-plugin/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"permissions": ["tabs", "http://*/*", "https://*/*","notifications"],
1616

1717
"plugins": [
18-
$PLUGIN_PATH
18+
{ "path": "plugin/depthjsplugin.so" }
1919
],
2020

2121
"browser_action": {
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"version": "1.0.0",
3+
4+
"name": "DepthJS",
5+
6+
"description": "Connecting depth-aware cameras to Javascript",
7+
8+
"background_page": "background.html",
9+
10+
"icons": {
11+
"16": "images/logo_16x16.png",
12+
"128": "images/logo_128x128.png"
13+
},
14+
15+
"permissions": ["tabs", "http://*/*", "https://*/*","notifications"],
16+
17+
"plugins": [
18+
{ "path": "plugin/depthjsplugin.plugin" }
19+
],
20+
21+
"browser_action": {
22+
"default_icon": "images/logo_128x128.png",
23+
"popup": "popup.html",
24+
"default_title": "DepthJS"
25+
},
26+
27+
"content_scripts": [
28+
{ "matches": ["http://*/*"],
29+
"css": ["third_party/vfx/zflow/zflow.css",
30+
"css/selectorBox.css"],
31+
"js": ["third_party/jquery-1.4.4.min.js",
32+
"third_party/underscore-min.js",
33+
"content_script/root.js",
34+
"content_script/depthose.js",
35+
"third_party/vfx/zflow/zflow.js",
36+
"content_script/panner.js",
37+
"content_script/selector_box.js",
38+
"content_script/event_handlers.js",
39+
"content_script/event_link.js",
40+
"chrome.js",
41+
"content_script/init.js"],
42+
"run_at": "document_end" }
43+
]
44+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"version": "1.0.0",
3+
4+
"name": "DepthJS",
5+
6+
"description": "Connecting depth-aware cameras to Javascript",
7+
8+
"background_page": "background.html",
9+
10+
"icons": {
11+
"16": "images/logo_16x16.png",
12+
"128": "images/logo_128x128.png"
13+
},
14+
15+
"permissions": ["tabs", "http://*/*", "https://*/*","notifications"],
16+
17+
"plugins": [
18+
{ "path": "plugin/npdepthjsplugin.dll" }
19+
],
20+
21+
"browser_action": {
22+
"default_icon": "images/logo_128x128.png",
23+
"popup": "popup.html",
24+
"default_title": "DepthJS"
25+
},
26+
27+
"content_scripts": [
28+
{ "matches": ["http://*/*"],
29+
"css": ["third_party/vfx/zflow/zflow.css",
30+
"css/selectorBox.css"],
31+
"js": ["third_party/jquery-1.4.4.min.js",
32+
"third_party/underscore-min.js",
33+
"content_script/root.js",
34+
"content_script/depthose.js",
35+
"third_party/vfx/zflow/zflow.js",
36+
"content_script/panner.js",
37+
"content_script/selector_box.js",
38+
"content_script/event_handlers.js",
39+
"content_script/event_link.js",
40+
"chrome.js",
41+
"content_script/init.js"],
42+
"run_at": "document_end" }
43+
]
44+
}
45+
2.97 MB
Binary file not shown.

firebreath-plugin/Mac/projectDef.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ set(LOCALIZED "Mac/bundle_template/Localized.r")
4646

4747
add_mac_plugin(${PROJECT_NAME} ${PLIST} ${STRINGS} ${LOCALIZED} SOURCES)
4848

49+
add_custom_command(TARGET ${PROJECT_NAME}
50+
POST_BUILD
51+
COMMAND cp ../chrome-extension/manifest.json.MACOSX ../chrome-extension/manifest.json
52+
cp ${CMAKE_CURRENT_BINARY_DIR}/depthjsplugin.plugin ../chrome-extension/plugin/
53+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
54+
)
4955

5056
# add library dependencies here; leave ${PLUGIN_INTERNAL_DEPS} there unless you know what you're doing!
5157
target_link_libraries(${PROJECT_NAME}

firebreath-plugin/copy_binary_win32.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ echo off
33
del /F /Q "..\chrome-extension\plugin"
44
rmdir /S /Q "..\chrome-extension\plugin"
55
mkdir "..\chrome-extension\plugin"
6-
copy "build\bin\depthjsplugin\Debug\npdepthjsplugin.dll" "..\chrome-extension\plugin"
6+
copy build\bin\depthjsplugin\%1\npdepthjsplugin.dll "..\chrome-extension\plugin\"
77

88
del /F /Q ..\chrome-extension\manifest.json
9-
%1\simple_templater.exe ..\chrome-extension\manifest.json.template $PLUGIN_PATH "{ ""path"": ""plugin/npdepthjsplugin.dll"" }" ..\chrome-extension\manifest.json
9+
REM %1\simple_templater.exe ..\chrome-extension\manifest.json.template $PLUGIN_PATH "{ ""path"": ""plugin/npdepthjsplugin.dll"" }" ..\chrome-extension\manifest.json
10+
copy ..\chrome-extension\manifest.json.WIN32 ..\chrome-extension\manifest.json

0 commit comments

Comments
 (0)