llvm.org GIT mirror llvm / 4c4b71c
ocaml bindings: add findlib META support This makes it easier to link against LLVM libs, especially if you are using _oasis. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141992 91177308-0d34-0410-b5e6-96231b3b80d8 Torok Edwin 7 years ago
4 changed file(s) with 88 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
15621562 dnl Do the first stage of configuration for llvm-config.in.
15631563 AC_CONFIG_FILES([tools/llvm-config/llvm-config.in])
15641564
1565 dnl OCaml findlib META file
1566 AC_CONFIG_FILES([bindings/ocaml/llvm/META.llvm])
1567
15651568 dnl Do special configuration of Makefiles
15661569 AC_CONFIG_COMMANDS([setup],,[llvm_src="${srcdir}"])
15671570 AC_CONFIG_MAKEFILE(Makefile)
0 name = "llvm"
1 version = "@PACKAGE_VERSION@"
2 description = "Low Level Virtual Machine OCaml bindings"
3 archive(byte) = "llvm.cma"
4 archive(native) = "llvm.cmxa"
5 directory = "."
6 linkopts = "-ccopt -lstdc++"
7
8 package "analysis" (
9 requires = "llvm"
10 version = "@PACKAGE_VERSION@"
11 description = "Intermediate representation analysis for LLVM"
12 archive(byte) = "llvm_analysis.cma"
13 archive(native) = "llvm_analysis.cmxa"
14 )
15
16 package "bitreader" (
17 requires = "llvm"
18 version = "@PACKAGE_VERSION@"
19 description = "Bitcode reader for LLVM"
20 archive(byte) = "llvm_bitreader.cma"
21 archive(native) = "llvm_bitreader.cmxa"
22 )
23
24 package "bitwriter" (
25 requires = "llvm,unix"
26 version = "@PACKAGE_VERSION@"
27 description = "Bitcode writer for LLVM"
28 archive(byte) = "llvm_bitwriter.cma"
29 archive(native) = "llvm_bitwriter.cmxa"
30 )
31
32 package "executionengine" (
33 requires = "llvm,llvm.target"
34 version = "@PACKAGE_VERSION@"
35 description = "JIT and Interpreter for LLVM"
36 archive(byte) = "llvm_executionengine.cma"
37 archive(native) = "llvm_executionengine.cmxa"
38 )
39
40 package "ipo" (
41 requires = "llvm"
42 version = "@PACKAGE_VERSION@"
43 description = "IPO Transforms for LLVM"
44 archive(byte) = "llvm_ipo.cma"
45 archive(native) = "llvm_ipo.cmxa"
46 )
47
48 package "scalar_opts" (
49 requires = "llvm"
50 version = "@PACKAGE_VERSION@"
51 description = "Scalar Transforms for LLVM"
52 archive(byte) = "llvm_scalar_opts.cma"
53 archive(native) = "llvm_scalar_opts.cmxa"
54 )
55
56 package "target" (
57 requires = "llvm"
58 version = "@PACKAGE_VERSION@"
59 description = "Target Information for LLVM"
60 archive(byte) = "llvm_target.cma"
61 archive(native) = "llvm_target.cmxa"
62 )
1616 UsedOcamLibs := llvm
1717
1818 include ../Makefile.ocaml
19
20 all-local:: copy-meta
21 install-local:: install-meta
22 uninstall-local:: uninstall-meta
23
24 DestMETA := $(PROJ_libocamldir)/META.llvm
25
26 # Easy way of generating META in the objdir
27 copy-meta: $(OcamlDir)/META.llvm
28
29 $(OcamlDir)/META.llvm: META.llvm
30 $(Verb) $(CP) -f $< $@
31
32 install-meta:: $(ObjDir)/META.llvm
33 $(Echo) "Install $(BuildMode) $(DestMETA)"
34 $(Verb) $(MKDIR) $(PROJ_libocamldir)
35 $(Verb) $(DataInstall) META.llvm "$(DestMETA)"
36
37 uninstall-meta::
38 $(Echo) "Uninstalling $(DestMETA)"
39 -$(Verb) $(RM) -f "$(DestMETA)"
2105121051
2105221052 ac_config_files="$ac_config_files Makefile.config"
2105321053
21054
2105521054 ac_config_files="$ac_config_files llvm.spec"
2105621055
2105721056
2106421063
2106521064 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
2106621065
21066 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
2106721067
2106821068 ac_config_commands="$ac_config_commands setup"
2106921069