Skip to content
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

Commit b1add6d

Browse files
committed
Main gca-node code added.
1 parent 407bb52 commit b1add6d

7 files changed

Lines changed: 24 additions & 13 deletions

File tree

.gitignore

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ coverage
2424
.lock-wscript
2525

2626
# Compiled binary addons (http://nodejs.org/api/addons.html)
27-
build/Release
28-
27+
build/
28+
amd64/
29+
ia64/
30+
x86/
2931
# Dependency directories
3032
node_modules
3133
jspm_packages
@@ -55,21 +57,13 @@ jspm_packages
5557
*.mod
5658
*.smod
5759

58-
# Compiled Static libraries
59-
*.lai
60-
*.la
61-
*.a
62-
*.lib
63-
6460
# Executables
6561
*.exe
6662
*.out
6763
*.app
6864

6965
# Test directories
70-
initial_tests/*/dll
71-
initial_tests/*/lib
72-
initial_tests/*/include
66+
initial_tests/
7367

7468
## Ignore Visual Studio temporary files, build results, and
7569
## files generated by popular Visual Studio add-ons.
@@ -346,3 +340,5 @@ __pycache__/
346340
# Cake - Uncomment if you are using it
347341
# tools/**
348342
# !tools/packages.config
343+
344+
lib/libusb-1.0

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
initial_tests/
22
build/
33
node_modules/
4+
amd64/
5+
x86/

GCAdapter.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
#ifdef _WIN32
12
#include "libusb.h"
3+
#else
4+
#include <libusb-1.0/libusb.h>
5+
#endif
26
#include <sstream>
37
#include <nan.h>
48

configure.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set npm_config_arch=x64
2+
set npm_config_target_arch=x64
3+
set npm_config_runtime=node-webkit
4+
set npm_config_build_from_source=true
5+
set npm_config_node_gyp="%APPDATA:\=/%npm/node_modules/nw-gyp/bin/nw-gyp.js"
6+
npm install

lib/libusb-1.0.lib

1.51 MB
Binary file not shown.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "gca-node",
3-
"version": "0.1.1",
3+
"version": "1.0.0",
44
"main": "gca.js",
55
"description": "Nintendo® Wii U GameCube™ Adapter native support for Node.js applications.",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"install": "node-gyp rebuild"
8+
"install": "configure.bat"
99
},
1010
"repository": {
1111
"type": "git",

test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exports.gcaInit = function() {
2+
console.log("GCA Node has been succesfully loaded.");
3+
}

0 commit comments

Comments
 (0)