File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ (jbuild_version 1)
2+
3+ ;; why is this lib internal?
4+ ;; because it doesn't have a public_name
5+ (library
6+ ((name internal_lib)
7+ (libraries (re))))
Original file line number Diff line number Diff line change 1+
2+ (* we can have ocaml as well as reason sources *)
3+ let opt = Re. opt
Original file line number Diff line number Diff line change 1+
2+ let y = "testing"
Original file line number Diff line number Diff line change 1+ opam-version: "1.2"
2+ name: "ReasonNativeProject"
3+ version: "0.0.1"
4+ maintainer: "Jordan Walke <jordojw@gmail.com>"
5+ authors: [
6+ "Jordan Walke <jordojw@gmail.com>"
7+ "Maxwell Bernstein <max@bernsteinbear.com>"
8+ ]
9+ license: "BSD"
10+ homepage: "https://github.com/reasonml/ReasonNativeProject"
11+ doc: "https://reasonml.github.io/ReasonNativeProject/"
12+ bug-reports: "https://github.com/reasonml/ReasonNativeProject/issues"
13+ dev-repo: "git://github.com/reasonml/ReasonNativeProject.git"
14+ tags: [ "reason" "example" ]
15+ build: [
16+ ["jbuilder" "build" "-p" name "-j" jobs]
17+ ]
18+ depends: [
19+ "jbuilder" {build}
20+ "reason" {= "1.13.3"}
21+ ]
22+ available: [ ocaml-version >= "4.02" & ocaml-version < "4.05" ]
Original file line number Diff line number Diff line change 1+ (jbuild_version 1)
2+
3+ (library
4+ ((name reason_native_lib)
5+ (public_name reason-native-lib)
6+ (libraries (re))))
Original file line number Diff line number Diff line change 1+
2+ let answer = 42 ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ build: [
1717]
1818depends: [
1919 "jbuilder" {build}
20+ "reason-native-lib"
2021 "reason" {= "1.13.3"}
2122]
2223available: [ ocaml-version >= "4.02" & ocaml-version < "4.05" ]
Original file line number Diff line number Diff line change 1+ (jbuild_version 1)
2+
3+ (executable
4+ ((libraries (internal_lib reason-native-lib))
5+ (package reason-native-project)
6+ (name test)
7+ (public_name react_native_project)))
Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ print_string msg;
77print_newline () ;
88print_string "!!!!!!\n " ;
99
10+ let a = Reason_native_lib . M1 . answer;
11+ Printf . printf "Answer: % d \n " a
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments