File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# topkg (https://github.com/dbuenzli/topkg) is a small native packager for your lib
2+ # http://erratique.ch/software/topkg/doc/Topkg.html#basics
23build :
34 cp pkg/META.in pkg/META
45 ocamlbuild -package topkg pkg/build.native
Original file line number Diff line number Diff line change @@ -31,10 +31,7 @@ make clean # clean the compiled artifacts
3131A single test file ` ./src/test.re ` is included. Make a simple change to it and
3232then run the commands above to see it effect the output.
3333
34- The built output is in ` /_build ` .
35-
36- The binary output will be in the project root directory -- to run it, type
37- ` ./test.byte ` !
34+ The built output is in ` _build ` . Try running it with ` _build/src/test.native ` .
3835
3936## Developing Your Project
4037
Original file line number Diff line number Diff line change 1- (* Copyright (c) 2015-present, Facebook, Inc. All rights reserved. *)
1+ (* http://erratique.ch/software/topkg/doc/Topkg.html#basics *)
22
33open Topkg
44
@@ -10,7 +10,7 @@ let () =
1010 %% of_list files)
1111 in
1212 let build = Pkg. build ~cmd () in
13- Pkg. describe " ReasonNativeProject" ~build ~change_logs: [] ~licenses: [] ~readmes: [] (fun c ->
13+ Pkg. describe " ReasonNativeProject" ~build ~change_logs: [] ~licenses: [] ~readmes: [] (fun c ->
1414 Ok [
1515 Pkg. lib " pkg/META" ;
1616 Pkg. bin ~auto: true ~dst: " test" " src/test" ;
You can’t perform that action at this time.
0 commit comments