summaryrefslogtreecommitdiff
path: root/packages/dev-libs/rapidjson/rapidjson.exlib
blob: 701e4b7d88a915de7e1a04d0314c5cbf3bc90525 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>


SCM_EXTERNAL_REFS="
    thirdparty/gtest:gtest
"

SCM_SECONDARY_REPOSITORIES="gtest"

SCM_gtest_REPOSITORY="https://github.com/google/googletest.git"


require github [ user=miloyip ]
require cmake [ api=2 ]

SUMMARY="A fast JSON parser/generator for C++ with both SAX/DOM style API"
HOMEPAGE="http://rapidjson.org/"

LICENCES="MIT"

SLOT="0"

#export_exlib_phases src_configure

MYOPTIONS="
    doc
    examples
"


DEPENDENCIES="
    test:
        dev-cpp/gtest
        dev-util/valgrind
    build:
        doc? ( app-doc/doxygen )
"

CMAKE_SRC_CONFIGURE_TESTS=( '-DRAPIDJSON_BUILD_TESTS=ON -DRAPIDJSON_BUILD_TESTS=OFF' )
CMAKE_SRC_CONFIGURE_OPTIONS=( 
    'doc RAPIDJSON_BUILD_DOC'
    'examples -DRAPIDJSON_BUILD_EXAMPLES'
)

CMAKE_SRC_CONFIGURE_PARAMS+=( -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF )