summaryrefslogtreecommitdiff
path: root/tools/build/src/tools/types/objc.jam
blob: 709cbd0c7d2145d6d82a8005497c2f091c32bc80 (plain)
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
# Copyright Rene Rivera 2008, 2010.
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import type ;
import scanner ;
import types/cpp ;

class objc-scanner : c-scanner
{
    rule __init__ ( includes * )
    {
        c-scanner.__init__ $(includes) ;
    }

    rule pattern ( )
    {
        return "#[ \t]*include|import[ ]*(<(.*)>|\"(.*)\")" ;
    }
}

scanner.register objc-scanner : include ;

type.register OBJECTIVE_C : m ;
type.register OBJECTIVE_CPP : mm ;
type.set-scanner OBJECTIVE_C : objc-scanner ;
type.set-scanner OBJECTIVE_CPP : objc-scanner ;