-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nathan Rebours <[email protected]>
- Loading branch information
Showing
27 changed files
with
175 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
|
||
(alias | ||
(name runtest) | ||
(deps (alias_rec lint))) | ||
(deps | ||
(alias_rec lint))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
(alias | ||
(name runtest) | ||
(deps (alias_rec all))) | ||
(deps | ||
(alias_rec all))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
(library | ||
(name ppxlib_metaquot) | ||
(name ppxlib_metaquot) | ||
(public_name ppxlib.metaquot) | ||
(kind ppx_rewriter) | ||
(flags (:standard -safe-string)) | ||
(libraries | ||
ppxlib | ||
ppxlib_traverse_builtins | ||
ppxlib_metaquot_lifters)) | ||
(flags | ||
(:standard -safe-string)) | ||
(libraries ppxlib ppxlib_traverse_builtins ppxlib_metaquot_lifters)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
(library | ||
(name ppxlib_metaquot_lifters) | ||
(name ppxlib_metaquot_lifters) | ||
(public_name ppxlib.metaquot_lifters) | ||
(flags (:standard -safe-string)) | ||
(libraries ppxlib ppxlib_traverse_builtins)) | ||
(flags | ||
(:standard -safe-string)) | ||
(libraries ppxlib ppxlib_traverse_builtins)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
(library | ||
(name ppxlib_print_diff) | ||
(public_name ppxlib.print_diff) | ||
(flags (:standard -safe-string))) | ||
(flags | ||
(:standard -safe-string))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
;; This library just contain the entry point for ppx drivers. It must | ||
;; be linked after all other libraries and units. | ||
|
||
(library | ||
(name ppxlib_runner_as_ppx) | ||
(public_name ppxlib.runner_as_ppx) | ||
(library_flags -linkall) | ||
(flags (:standard -safe-string)) | ||
(flags | ||
(:standard -safe-string)) | ||
(libraries ppxlib)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
(library | ||
(name ppxlib) | ||
(public_name ppxlib) | ||
(libraries | ||
ocaml-compiler-libs.common | ||
compiler-libs.common | ||
ocaml-compiler-libs.shadow | ||
ppxlib_ast | ||
ppxlib_print_diff | ||
ppx_derivers | ||
ppxlib_traverse_builtins | ||
stdppx) | ||
(flags (:standard -open Ocaml_shadow -safe-string)) | ||
(libraries ocaml-compiler-libs.common compiler-libs.common | ||
ocaml-compiler-libs.shadow ppxlib_ast ppxlib_print_diff ppx_derivers | ||
ppxlib_traverse_builtins stdppx) | ||
(flags | ||
(:standard -open Ocaml_shadow -safe-string)) | ||
(ppx.driver | ||
(main Ppxlib.Driver.standalone) | ||
(flags (-corrected-suffix %{corrected-suffix} -diff-cmd - -dump-ast)) | ||
(lint_flags (-corrected-suffix %{corrected-suffix} -diff-cmd - -null )))) | ||
(main Ppxlib.Driver.standalone) | ||
(flags | ||
(-corrected-suffix %{corrected-suffix} -diff-cmd - -dump-ast)) | ||
(lint_flags | ||
(-corrected-suffix %{corrected-suffix} -diff-cmd - -null)))) | ||
|
||
(cinaps | ||
(files *.ml *.mli) | ||
(libraries ppxlib_cinaps_helpers)) | ||
|
||
(rule | ||
(targets ast_pattern_generated.ml) | ||
(deps gen/gen_ast_pattern.exe) | ||
(action (run ./gen/gen_ast_pattern.exe %{lib:ppxlib.ast:ast.ml}))) | ||
(deps gen/gen_ast_pattern.exe) | ||
(action | ||
(run ./gen/gen_ast_pattern.exe %{lib:ppxlib.ast:ast.ml}))) | ||
|
||
(rule | ||
(targets ast_builder_generated.ml) | ||
(deps gen/gen_ast_builder.exe) | ||
(action (run ./gen/gen_ast_builder.exe %{lib:ppxlib.ast:ast.ml}))) | ||
(action | ||
(run ./gen/gen_ast_builder.exe %{lib:ppxlib.ast:ast.ml}))) | ||
|
||
;; This is to make the code compatible with different versions of | ||
;; OCaml | ||
|
||
(rule | ||
(targets compiler_specifics.ml) | ||
(deps gen-compiler_specifics) | ||
(action (run %{ocaml} %{deps} %{ocaml_version} %{targets}))) | ||
(deps gen-compiler_specifics) | ||
(action | ||
(run %{ocaml} %{deps} %{ocaml_version} %{targets}))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
(executables | ||
(names gen_ast_pattern gen_ast_builder) | ||
(flags (:standard -safe-string)) | ||
(libraries | ||
ppxlib_ast | ||
compiler-libs.common | ||
compiler-libs.bytecomp | ||
ppxlib_traverse_builtins | ||
stdppx)) | ||
(flags | ||
(:standard -safe-string)) | ||
(libraries ppxlib_ast compiler-libs.common compiler-libs.bytecomp | ||
ppxlib_traverse_builtins stdppx)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
(library | ||
(name stdppx) | ||
(public_name ppxlib.stdppx) | ||
(libraries | ||
ocaml-compiler-libs.shadow | ||
sexplib0 | ||
stdlib-shims) | ||
(flags (:standard -open Ocaml_shadow -safe-string))) | ||
(libraries ocaml-compiler-libs.shadow sexplib0 stdlib-shims) | ||
(flags | ||
(:standard -open Ocaml_shadow -safe-string))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
(rule | ||
(alias runtest) | ||
(enabled_if (>= %{ocaml_version} "4.09.0")) | ||
(enabled_if | ||
(>= %{ocaml_version} "4.09.0")) | ||
(deps | ||
(:test test.ml) | ||
(package ppxlib)) | ||
(action (chdir %{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) | ||
(action | ||
(chdir | ||
%{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
(rule | ||
(alias runtest) | ||
(enabled_if (>= %{ocaml_version} "4.08.0")) | ||
(enabled_if | ||
(>= %{ocaml_version} "4.08.0")) | ||
(deps | ||
(:test test.ml) | ||
(package ppxlib)) | ||
(action (chdir %{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) | ||
(action | ||
(chdir | ||
%{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
(rule | ||
(alias runtest) | ||
(enabled_if (>= %{ocaml_version} "4.10.0")) | ||
(enabled_if | ||
(>= %{ocaml_version} "4.10.0")) | ||
(deps | ||
(:test test.ml) | ||
(package ppxlib)) | ||
(action (chdir %{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) | ||
(action | ||
(chdir | ||
%{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
(library | ||
(name ppx_deriving_example) | ||
(preprocess (pps ppx_foo_deriver)) | ||
) | ||
(name ppx_deriving_example) | ||
(preprocess | ||
(pps ppx_foo_deriver))) | ||
|
||
(alias | ||
(name runtest) | ||
(deps ppx_deriving_example.cma) | ||
) | ||
(name runtest) | ||
(deps ppx_deriving_example.cma)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
(library | ||
(kind ppx_deriver) | ||
(name ppx_foo_deriver) | ||
(libraries ppxlib) | ||
) | ||
(kind ppx_deriver) | ||
(name ppx_foo_deriver) | ||
(libraries ppxlib)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
(rule | ||
(alias runtest) | ||
(enabled_if (>= %{ocaml_version} "4.08.0")) | ||
(enabled_if | ||
(>= %{ocaml_version} "4.08.0")) | ||
(deps | ||
(:test test.ml) | ||
(package ppxlib)) | ||
(action (chdir %{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) | ||
(action | ||
(chdir | ||
%{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
(rule | ||
(alias runtest) | ||
(enabled_if (>= %{ocaml_version} "4.08.0")) | ||
(deps | ||
(:test test.ml) | ||
(package ppxlib)) | ||
(action (chdir %{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) | ||
(alias runtest) | ||
(enabled_if | ||
(>= %{ocaml_version} "4.08.0")) | ||
(deps | ||
(:test test.ml) | ||
(package ppxlib)) | ||
(action | ||
(chdir | ||
%{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
(rule | ||
(alias runtest) | ||
(enabled_if (>= %{ocaml_version} "4.08.0")) | ||
(enabled_if | ||
(>= %{ocaml_version} "4.08.0")) | ||
(deps | ||
(:test test.ml) | ||
(package ppxlib)) | ||
(action (chdir %{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) | ||
(action | ||
(chdir | ||
%{project_root} | ||
(progn | ||
(run expect-test %{test}) | ||
(diff? %{test} %{test}.corrected))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.