-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.ocp
47 lines (40 loc) · 1.53 KB
/
config.ocp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(*******************************************************************)
(* *)
(* wxOCaml *)
(* *)
(* Fabrice LE FESSANT *)
(* *)
(* Copyright 2013, INRIA/OCamlPro. *)
(* Licence LGPL v3.0 with linking exception. *)
(* *)
(*******************************************************************)
if include "autoconf/config.ocpgen" then {} else {
wx_version = "@WX_VERSION@";
cxx = "@CXX";
cppflags = "@CPPFLAGS@";
cxxflags = "@CXXFLAGS@";
ocamllib = "@OCAMLLIB@";
libs = "@LIBS@"
}
exe_ext = ""
obj_ext = ".o"
lib_ext = ".a"
binannot = false;
wx_version = conf_wx_version
cxx = conf_cxx;
cppflags = conf_cppflags;
ocamllib = conf_ocamllib;
cxxflags = conf_cxxflags;
libs = conf_libs;
cxx = [ cxx "-std=c++11" ]
cppflags = [ %split_simplify( s = cppflags ) "-I" ocamllib "-I" "../wxConfig" "-g" "-fPIC" ]
cxxflags = %split_simplify( s = cxxflags )
cxxlibs = %split_simplify(s = libs )
begin config "link-with-wxOCaml"
custom = true
bytelink += [ "-custom" ]
link += [ "-cclib" "-lwxOCaml_api" "-cclib" libs "-cclib" "-lstdc++" "-cclib" "-L wxWidgets_cpp" ]
end
begin config "compile-c-with-wxWidget"
ccopt = [ cxxflags cppflags ]
end