aboutsummaryrefslogtreecommitdiff
path: root/ide/dune
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-10-09 11:55:05 +0200
committerPierre-Marie Pédrot2018-10-09 11:55:05 +0200
commit59de2827b63b5bc475452bef385a2149a10a631c (patch)
tree875f06667f1568426666b5195b9aede0328b87e7 /ide/dune
parentf3c123ea05660ce393260283d64cc3ff0eba2f8c (diff)
parentfaf6ffc00d91a7cc759ef65f9864d00773c96b19 (diff)
Merge PR #8632: [ide] [dune] [test-suite] Reorganize `fake_ide` build.
Diffstat (limited to 'ide/dune')
-rw-r--r--ide/dune39
1 files changed, 27 insertions, 12 deletions
diff --git a/ide/dune b/ide/dune
index 6931a747ac..037b0fcc9e 100644
--- a/ide/dune
+++ b/ide/dune
@@ -1,11 +1,34 @@
+; IDE Server
(ocamllex utf8_convert config_lexer coq_lex)
(library
(name core)
- (public_name coqide.core)
+ (public_name coqide-server.core)
(wrapped false)
- (modules (:standard \ idetop coqide_main))
- (libraries threads str lablgtk2.sourceview2 coq.lib coqide.protocol))
+ (modules document)
+ (libraries coq.lib))
+
+(executable
+ (name fake_ide)
+ (modules fake_ide)
+ (libraries coqide-server.protocol coqide-server.core))
+
+(executable
+ (name idetop)
+ (public_name coqidetop.opt)
+ (package coqide-server)
+ (modules idetop)
+ (libraries coq.toplevel coqide-server.protocol)
+ (link_flags -linkall))
+
+; IDE Client
+(library
+ (name gui)
+ (public_name coqide.gui)
+ (wrapped false)
+ (modules (:standard \ document fake_ide idetop coqide_main))
+ (optional)
+ (libraries coqide-server.protocol coqide-server.core lablgtk2.sourceview2))
(rule
(targets coqide_main.ml)
@@ -17,12 +40,4 @@
(public_name coqide)
(package coqide)
(modules coqide_main)
- (libraries coqide.core))
-
-(executable
- (name idetop)
- (public_name coqidetop.opt)
- (package coqide)
- (modules idetop)
- (libraries coq.toplevel coqide.protocol)
- (link_flags -linkall))
+ (libraries coqide.gui))