Skip to content

Commit

Permalink
Package the sources as flexdll
Browse files Browse the repository at this point in the history
The flexdll package is intended for use when building OCaml in
"bootstrapped" flexdll mode and installs the required source files to
the share folder in an opam switch.

The .install can be used with both FlexDLL 0.42 and FlexDLL 0.43
  • Loading branch information
dra27 committed Mar 14, 2024
1 parent 5969494 commit 62f20c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ package_src:
rm -Rf flexdll-$(VERSION)
mkdir flexdll-$(VERSION)
mkdir flexdll-$(VERSION)/test
cp -a $(filter-out version.ml,$(OBJS:Compat.ml=Compat.ml.in)) Makefile msvs-detect $(COMMON_FILES) version.rc flexdll-$(VERSION)/
cp -a $(filter-out version.ml,$(OBJS:Compat.ml=Compat.ml.in)) Makefile msvs-detect $(COMMON_FILES) version.rc flexdll.install flexdll-$(VERSION)/
cp -aR test/Makefile test/*.c flexdll-$(VERSION)/test/
tar czf $(PACKAGE) flexdll-$(VERSION)
rm -Rf flexdll-$(VERSION)
Expand Down
8 changes: 1 addition & 7 deletions flexdll.install
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@ share: [
"Makefile"
"cmdline.ml"
"coff.ml"
"?Compat401.ml"
"Compat402.ml"
"Compat403.ml"
"?Compat405.ml"
"?Compat406.ml"
"?Compat407.ml"
"Compat.ml.in"
"create_dll.ml"
"default.manifest"
"default_amd64.manifest"
"?findwinsdk"
"flexdll.c"
"flexdll.h"
"flexdll_initer.c"
Expand Down
11 changes: 11 additions & 0 deletions flexdll.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
opam-version: "2.0"
version: "0.43"
authors: "Alain Frisch"
maintainer: "David Allsopp <[email protected]>"
bug-reports: "https://github.com/ocaml/flexdll/issues"
dev-repo: "git+https://github.com/ocaml/flexdll.git"
homepage: "https://github.com/ocaml/flexdll#readme"
license: "Zlib"
synopsis: "FlexDLL Sources"
description: "Source package for FlexDLL. Installs the required files for
bootstrapping FlexDLL as part of an OCaml build."

0 comments on commit 62f20c3

Please sign in to comment.