Skip to content

Commit 898028f

Browse files
committed
first cut
0 parents  commit 898028f

File tree

6 files changed

+143
-0
lines changed

6 files changed

+143
-0
lines changed

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
_build
2+
*.native
3+
*.byte
4+
*.docdir
5+
6+
tests/*.cmi
7+
tests/*.cmt
8+
tests/*.cmo
9+
tests/*.cma
10+
11+
setup.data
12+
setup.log
13+
README.org
14+
scratch
15+
notes.txt
16+
dump_stats.ml
17+
scratch.c
18+
T

Makefile

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# OASIS_START
2+
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)
3+
4+
SETUP = ocaml setup.ml
5+
6+
build: setup.data
7+
$(SETUP) -build $(BUILDFLAGS)
8+
9+
doc: setup.data build
10+
$(SETUP) -doc $(DOCFLAGS)
11+
12+
test: setup.data build
13+
$(SETUP) -test $(TESTFLAGS)
14+
15+
all:
16+
$(SETUP) -all $(ALLFLAGS)
17+
18+
install: setup.data
19+
$(SETUP) -install $(INSTALLFLAGS)
20+
21+
uninstall: setup.data
22+
$(SETUP) -uninstall $(UNINSTALLFLAGS)
23+
24+
reinstall: setup.data
25+
$(SETUP) -reinstall $(REINSTALLFLAGS)
26+
27+
clean:
28+
$(SETUP) -clean $(CLEANFLAGS)
29+
30+
distclean:
31+
$(SETUP) -distclean $(DISTCLEANFLAGS)
32+
33+
setup.data:
34+
$(SETUP) -configure $(CONFIGUREFLAGS)
35+
36+
configure:
37+
$(SETUP) -configure $(CONFIGUREFLAGS)
38+
39+
.PHONY: build doc test all install uninstall reinstall clean distclean configure
40+
41+
# OASIS_STOP

_oasis

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
OASISFormat: 0.4
2+
Name: nodejs
3+
Version: 0.1.0
4+
Synopsis: OCaml bindings for nodejs
5+
Authors: Edgar Aroutiounian <[email protected]>
6+
Maintainers: Edgar Aroutiounian <[email protected]>
7+
Homepage: https://github.com/fxfactorial/ocaml-nodejs
8+
License: BSD-3-clause
9+
Plugins: META (0.4), DevFiles (0.4)
10+
BuildTools: ocamlbuild
11+
12+
Library nodejs
13+
Path: src
14+
Modules: Nodejs
15+
BuildDepends: js_of_ocaml, js_of_ocaml.ppx

configure

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/sh
2+
3+
# OASIS_START
4+
# DO NOT EDIT (digest: dc86c2ad450f91ca10c931b6045d0499)
5+
set -e
6+
7+
FST=true
8+
for i in "$@"; do
9+
if $FST; then
10+
set --
11+
FST=false
12+
fi
13+
14+
case $i in
15+
--*=*)
16+
ARG=${i%%=*}
17+
VAL=${i##*=}
18+
set -- "$@" "$ARG" "$VAL"
19+
;;
20+
*)
21+
set -- "$@" "$i"
22+
;;
23+
esac
24+
done
25+
26+
ocaml setup.ml -configure "$@"
27+
# OASIS_STOP

setup.ml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
(* setup.ml generated for the first time by OASIS v0.4.5 *)
2+
3+
(* OASIS_START *)
4+
(* DO NOT EDIT (digest: 9852805d5c19ca1cb6abefde2dcea323) *)
5+
(******************************************************************************)
6+
(* OASIS: architecture for building OCaml libraries and applications *)
7+
(* *)
8+
(* Copyright (C) 2011-2013, Sylvain Le Gall *)
9+
(* Copyright (C) 2008-2011, OCamlCore SARL *)
10+
(* *)
11+
(* This library is free software; you can redistribute it and/or modify it *)
12+
(* under the terms of the GNU Lesser General Public License as published by *)
13+
(* the Free Software Foundation; either version 2.1 of the License, or (at *)
14+
(* your option) any later version, with the OCaml static compilation *)
15+
(* exception. *)
16+
(* *)
17+
(* This library is distributed in the hope that it will be useful, but *)
18+
(* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *)
19+
(* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *)
20+
(* details. *)
21+
(* *)
22+
(* You should have received a copy of the GNU Lesser General Public License *)
23+
(* along with this library; if not, write to the Free Software Foundation, *)
24+
(* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *)
25+
(******************************************************************************)
26+
27+
let () =
28+
try
29+
Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
30+
with Not_found -> ()
31+
;;
32+
#use "topfind";;
33+
#require "oasis.dynrun";;
34+
open OASISDynRun;;
35+
36+
(* OASIS_STOP *)
37+
let () = setup ();;

src/nodejs.ml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
4+
let () =
5+
print_endline "123"

0 commit comments

Comments
 (0)