-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract virtual library for build-info for JS compatibility
- Loading branch information
Showing
10 changed files
with
40 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
; goblint.build-info implementation which properly uses dune-build-info | ||
(library | ||
(name goblint_build_info_dune) | ||
(public_name goblint.build-info.dune) | ||
(implements goblint.build-info) | ||
(libraries dune-build-info)) |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
let statically_linked_libraries = | ||
List.map (fun lib -> | ||
let name = Build_info.V1.Statically_linked_library.name lib in | ||
let version = Option.map Build_info.V1.Version.to_string (Build_info.V1.Statically_linked_library.version lib) in | ||
(name, version) | ||
) (Build_info.V1.Statically_linked_libraries.to_list ()) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
; goblint.build-info implementation which works with js_of_ocaml and doesn't use dune-build-info | ||
(library | ||
(name goblint_build_info_js) | ||
(public_name goblint.build-info.js) | ||
(implements goblint.build-info)) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
let statically_linked_libraries = [] |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(include_subdirs no) | ||
|
||
; virtual library to allow js build (for gobview) without dune-build-info | ||
; dune-build-info seems to be incompatible with js_of_ocaml | ||
; File "gobview/src/.App.eobjs/build_info_data.ml-gen", line 1: | ||
; Error: Could not find the .cmi file for interface | ||
; gobview/src/.App.eobjs/build_info_data.ml-gen. | ||
(library | ||
(name goblint_build_info) | ||
(public_name goblint.build-info) | ||
(virtual_modules goblint_build_info)) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
val statically_linked_libraries: (string * string option) list |
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
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