Add our own built-in native module system.

This commit is contained in:
Cheng Zhao 2013-04-14 15:36:48 +08:00
parent 3c96007131
commit 0f6ece2d27
12 changed files with 217 additions and 5 deletions

View file

@ -0,0 +1,15 @@
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/api/atom_window.h"
namespace atom {
static void Initialize(v8::Handle<v8::Object> target) {
target->Set(v8::String::New("hello"), v8::String::New("world"));
}
} // namespace atom
NODE_MODULE(atom_window, atom::Initialize)