Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ fixQtBuild verb lbi build = do
createDirectoryIfMissingVerbose verb True (takeDirectory o)
runProgram verb moc $ [i,"-o",o] ++ args) $ zip incs cpps
-- Add the moc generated source files to be compiled
return build {cSources = cpps ++ cSources build,
ccOptions = "-fPIC" : ccOptions build}
return build {cxxSources = cpps ++ cxxSources build,
cxxOptions = "-fPIC" : cxxOptions build}

needsGHCiFix :: PackageDescription -> LocalBuildInfo -> Bool
needsGHCiFix pkgDesc lbi =
Expand Down Expand Up @@ -200,7 +200,7 @@ buildGHCiFix verb pkgDesc lbi lib =
["-shared","-o",bDir </> (mkGHCiFixLibName pkgDesc platform)] ++
(ldOptions bi) ++ (map ("-l" ++) $ extraLibs bi) ++
(map ("-L" ++) $ extraLibDirs bi) ++
(map ((bDir </>) . flip replaceExtension objExtension) $ cSources bi))
(map ((bDir </>) . flip replaceExtension objExtension) $ cxxSources bi))
return ()

mocProgram :: Program
Expand Down
2 changes: 1 addition & 1 deletion hsqml.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Library
Graphics.QML.Internal.Objects
Graphics.QML.Internal.Types
Hs-source-dirs: src
C-sources:
Cxx-sources:
cbits/Canvas.cpp
cbits/Class.cpp
cbits/ClipboardHelper.cpp
Expand Down