Skip to content

Commit 0435320

Browse files
author
letouzey
committed
Win32 cross-compilation from debian: build of coqide.exe and other binaries
Details will follow. In a word, we use a gtk+ win32 bundle from gtk.org to build some (unofficial) mingw32-liblablgtk2 debian packages. Then ./configure -local && ./build win32 is enough to get all native win32 binaries and plugin cmxs from a confortable linux box. Next step: an auto-installer :-) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12804 85f007b7-540e-0410-9357-904b9bb8a0f7
1 parent d7534f6 commit 0435320

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

build

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rule() {
1818
case $1 in
1919
win32) check_config
2020
sed -i 's/let arch = .*$/let arch = "win32"/' config/coq_config.ml && \
21-
$OCAMLBUILD toplevel/coqtop.native plugins/pluginsopt.otarget;;
21+
$OCAMLBUILD coq-win32.otarget;;
2222
clean) ocb -clean && rm -rf bin/* && rm -f myocamlbuild_config.ml;;
2323
all) ocb coq.otarget;;
2424
*) ocb $1;;

coq-win32.itarget

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
binariesopt
2+
plugins/pluginsdyn.otarget

myocamlbuild.ml

+4-2
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ let binaries_deps =
202202
| (_,bin,_)::l -> (bin^best_oext) :: deps l
203203
in deps all_binaries
204204

205+
let binariesopt_deps =
206+
List.filter (fun s -> Filename.check_suffix s ".native") binaries_deps
207+
205208
let ln_sf toward f =
206209
Command.execute ~quiet:true (Cmd (S [A"ln";A"-sf";P toward;P f]))
207210

@@ -240,6 +243,7 @@ let extra_rules () = begin
240243
(** Virtual target for building all binaries *)
241244

242245
rule "binaries" ~stamp:"binaries" ~deps:binaries_deps (fun _ _ -> Nop);
246+
rule "binariesopt" ~stamp:"binariesopt" ~deps:binariesopt_deps (fun _ _ -> Nop);
243247

244248
(** We create a special coq_config which mentions _build *)
245249

@@ -324,8 +328,6 @@ let extra_rules () = begin
324328
Seq [Cmd (S [P w32ocamlc;cflags;A"-c";Px c]);
325329
mv (Filename.basename o) o]);
326330

327-
if w32 then flag [ "ocamlmklib"; "c" ] (S[A"-ldopt";A ("-I "^w32lib)]);
328-
329331
(** VM: Generation of coq_jumbtbl.h and copcodes.ml from coq_instruct.h *)
330332

331333
rule "coqinstrs" ~dep:coqinstrs ~prods:[coqjumps;copcodes]

plugins/pluginsdyn.itarget

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
field/field_plugin.cmxs
2+
setoid_ring/newring_plugin.cmxs
3+
extraction/extraction_plugin.cmxs
4+
firstorder/ground_plugin.cmxs
5+
rtauto/rtauto_plugin.cmxs
6+
fourier/fourier_plugin.cmxs
7+
romega/romega_plugin.cmxs
8+
omega/omega_plugin.cmxs
9+
micromega/micromega_plugin.cmxs
10+
dp/dp_plugin.cmxs
11+
xml/xml_plugin.cmxs
12+
subtac/subtac_plugin.cmxs
13+
ring/ring_plugin.cmxs
14+
cc/cc_plugin.cmxs
15+
groebner/groebner_plugin.cmxs
16+
funind/recdef_plugin.cmxs
17+
syntax/ascii_syntax_plugin.cmxs
18+
syntax/nat_syntax_plugin.cmxs
19+
syntax/numbers_syntax_plugin.cmxs
20+
syntax/r_syntax_plugin.cmxs
21+
syntax/string_syntax_plugin.cmxs
22+
syntax/z_syntax_plugin.cmxs
23+
quote/quote_plugin.cmxs

0 commit comments

Comments
 (0)