Skip to content

Commit

Permalink
Fix compilation error on MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: Kakadu <[email protected]>
  • Loading branch information
Kakadu committed Jan 27, 2024
1 parent 1b9c981 commit 8189297
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions dune_test/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
(env(_(flags (-w -34))))
; (env
; (_
; (flags
; (:standard -w -34))))

(copy_files ui/Root.qml)

(library
Expand All @@ -7,7 +11,14 @@
(modules)
(foreign_stubs
(language cxx)
(names controller_c moc_controller_c c_c moc_c_c dataItem_c moc_dataItem_c qrc_resources)
(names
controller_c
moc_controller_c
c_c
moc_c_c
dataItem_c
moc_dataItem_c
qrc_resources)
(flags
((:include %{project_root}/config/c_flags.sexp)
-fPIC
Expand All @@ -28,8 +39,6 @@
Controller)))
(link_flags
(-ccopt
-Wl,-no-as-needed
-ccopt
-fPIC
-cclib
-lstdc++
Expand Down Expand Up @@ -58,7 +67,13 @@
(run moc %{deps} -o %{targets})))

(rule
(targets controller_c.cpp controller.h c_c.cpp c.h dataItem.h dataItem_c.cpp)
(targets
controller_c.cpp
controller.h
c_c.cpp
c.h
dataItem.h
dataItem_c.cpp)
(deps Controller.ml)
(action
(run ../ppx/pp/pp_qt.exe -ext cpp %{deps})))
Expand Down

0 comments on commit 8189297

Please sign in to comment.