summaryrefslogtreecommitdiff
path: root/kf5-deps.hs
blob: 637d3525f0bd21f4a607be943516cd77c5d12d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# LANGUAGE OverloadedStrings #-}

module Main where

import Control.Monad.State
import Data.Monoid

import Autonix.Analyze
import Autonix.Args
import Autonix.Deps
import Autonix.Generate
import Autonix.KF5

main :: IO ()
main = withArgs $ \manifest renames -> flip evalStateT mempty $ do
    rename "ECM" "extra-cmake-modules"
    analyzePackages (analyzeFiles kf5Analyzers) manifest renames
    kf5PostAnalyze
    get >>= writeDeps
    get >>= writeRenames