<commit_before>{
  "includes": [
      "common.gypi"
  ],
  'variables': {
    'MAPNIK_PLUGINDIR%': '',
    'common_defines' : [
        'MAPNIK_VECTOR_TILE_LIBRARY=1',
        'CLIPPER_INTPOINT_IMPL=mapnik::geometry::point<cInt>',
        'CLIPPER_PATH_IMPL=mapnik::geometry::line_string<cInt>',
        'CLIPPER_PATHS_IMPL=mapnik::geometry::multi_line_string<cInt>',
        'CLIPPER_IMPL_INCLUDE=<mapnik/geometry.hpp>'
    ]
  },
  "targets": [
    {
      'target_name': 'make_vector_tile',
      'type': 'none',
      'hard_dependency': 1,
      'actions': [
        {
          'action_name': 'run_protoc',
          'inputs': [
            '../proto/vector_tile.proto'
          ],
          'outputs': [
            "<(SHARED_INTERMEDIATE_DIR)/vector_tile.pb.cc",
            "<(SHARED_INTERMEDIATE_DIR)/vector_tile.pb.h"
          ],
          'action': ['protoc','-I../proto/','--cpp_out=<(SHARED_INTERMEDIATE_DIR)/','../proto/vector_tile.proto']
        }
      ]
    },

    {
      "target_name": "vector_tile",
      'dependencies': [ 'make_vector_tile' ],
      'hard_dependency': 1,
      "type": "static_library",
      "sources": [
        "<(SHARED_INTERMEDIATE_DIR)/vector_tile.pb.cc"
      ],
      'include_dirs': [
        '<(SHARED_INTERMEDIATE_DIR)/',
        '../deps/protozero/include'
      ],
      'cflags_cc' : [
          '-D_THREAD_SAFE',
          '<!@(mapnik-config --cflags)', # assume protobuf headers are here
          '-Wno-sign-compare',
          '-Wno-sign-conversion'
      ],
      'xcode_settings': {
        'OTHER_CPLUSPLUSFLAGS':[
           '-D_THREAD_SAFE',
           '<!@(mapnik-config --cflags)', # assume protobuf headers are here
           '-Wno-sign-compare',
           '-Wno-sign-conversion'
        ],
      },
      'direct_dependent_settings': {
        'include_dirs': [
          '<(SHARED_INTERMEDIATE_DIR)/',
          '../deps/protozero/include'
        ],
        'libraries':[
          '-lprotobuf-lite'
        ],
        'cflags_cc' : [
            '-D_THREAD_SAFE'
        ],
        'xcode_settings': {
          'OTHER_CPLUSPLUSFLAGS':[
             '-D_THREAD_SAFE',
          ],
        },
      }
    },
    {
      "target_name": "mapnik_vector_tile_impl",
      'dependencies': [ 'vector_tile' ],
      'hard_dependency': 1,
      "type": "static_library",
      "sources": [
        "<!@(find ../src/ -name '*.cpp')",
        "../deps/clipper/cpp/clipper.cpp"
      ],
      'defines' : [
        "<@(common_defines)"
      ],
      'cflags_cc' : [
          '<!@(mapnik-config --cflags)'
      ],
      'include_dirs': [
        '../deps/protozero/include',
        '../deps/clipper/cpp'
      ],
      'xcode_settings': {
        'OTHER_CPLUSPLUSFLAGS':[
           '<!@(mapnik-config --cflags)'
        ],
      },
      'direct_dependent_settings': {
        'include_dirs': [
          '<(SHARED_INTERMEDIATE_DIR)/',
          '../deps/protozero/include',
          '../deps/clipper/cpp'
        ],
        'defines' : [
          "<@(common_defines)"
        ],
        'cflags_cc' : [
            '<!@(mapnik-config --cflags)'
        ],
        'xcode_settings': {
          'OTHER_CPLUSPLUSFLAGS':[
             '<!@(mapnik-config --cflags)'
          ],
        },
        'libraries':[
          '<!@(mapnik-config --libs)',
          '<!@(mapnik-config --ldflags)',
          '-lmapnik-wkt',
          '-lmapnik-json',
          '<!@(mapnik-config --dep-libs)',
          '-lprotobuf-lite',
          '-lz'
        ],
      }
    },
    {
      "target_name": "tests",
      'dependencies': [ 'mapnik_vector_tile_impl' ],
      "type": "executable",
      "defines": [
        "<@(common_defines)",
        "MAPNIK_PLUGINDIR=<(MAPNIK_PLUGINDIR)"
      ],
      "sources": [
        "<!@(find ../test/ -name '*.cpp')"
      ],
      "include_dirs": [
        "../src",
        '../deps/protozero/include'
      ]
    },
    {
      "target_name": "vtile-transform",
      'dependencies': [ 'mapnik_vector_tile_impl' ],
      "type": "executable",
      "defines": [
        "<@(common_defines)",
        "MAPNIK_PLUGINDIR=<(MAPNIK_PLUGINDIR)"
      ],
      "sources": [
        "../bench/vtile-transform.cpp"
      ],
      "include_dirs": [
        "../src",
        '../deps/protozero/include'
      ]
    },
    {
      "target_name": "tileinfo",
      'dependencies': [ 'vector_tile' ],
      "type": "executable",
      "sources": [
        "../examples/c++/tileinfo.cpp"
      ],
      "include_dirs": [
        "../src"
      ],
      'libraries':[
        '-L<!@(mapnik-config --prefix)/lib',
        '<!@(mapnik-config --ldflags)',
        '-lz'
      ],<commit_msg>benchmark of reading multipoints via tile_datasource(_pbf) - refs #119<commit_after>{
  "includes": [
      "common.gypi"
  ],
  'variables': {
    'MAPNIK_PLUGINDIR%': '',
    'common_defines' : [
        'MAPNIK_VECTOR_TILE_LIBRARY=1',
        'CLIPPER_INTPOINT_IMPL=mapnik::geometry::point<cInt>',
        'CLIPPER_PATH_IMPL=mapnik::geometry::line_string<cInt>',
        'CLIPPER_PATHS_IMPL=mapnik::geometry::multi_line_string<cInt>',
        'CLIPPER_IMPL_INCLUDE=<mapnik/geometry.hpp>'
    ]
  },
  "targets": [
    {
      'target_name': 'make_vector_tile',
      'type': 'none',
      'hard_dependency': 1,
      'actions': [
        {
          'action_name': 'run_protoc',
          'inputs': [
            '../proto/vector_tile.proto'
          ],
          'outputs': [
            "<(SHARED_INTERMEDIATE_DIR)/vector_tile.pb.cc",
            "<(SHARED_INTERMEDIATE_DIR)/vector_tile.pb.h"
          ],
          'action': ['protoc','-I../proto/','--cpp_out=<(SHARED_INTERMEDIATE_DIR)/','../proto/vector_tile.proto']
        }
      ]
    },

    {
      "target_name": "vector_tile",
      'dependencies': [ 'make_vector_tile' ],
      'hard_dependency': 1,
      "type": "static_library",
      "sources": [
        "<(SHARED_INTERMEDIATE_DIR)/vector_tile.pb.cc"
      ],
      'include_dirs': [
        '<(SHARED_INTERMEDIATE_DIR)/',
        '../deps/protozero/include'
      ],
      'cflags_cc' : [
          '-D_THREAD_SAFE',
          '<!@(mapnik-config --cflags)', # assume protobuf headers are here
          '-Wno-sign-compare',
          '-Wno-sign-conversion'
      ],
      'xcode_settings': {
        'OTHER_CPLUSPLUSFLAGS':[
           '-D_THREAD_SAFE',
           '<!@(mapnik-config --cflags)', # assume protobuf headers are here
           '-Wno-sign-compare',
           '-Wno-sign-conversion'
        ],
      },
      'direct_dependent_settings': {
        'include_dirs': [
          '<(SHARED_INTERMEDIATE_DIR)/',
          '../deps/protozero/include'
        ],
        'libraries':[
          '-lprotobuf-lite'
        ],
        'cflags_cc' : [
            '-D_THREAD_SAFE'
        ],
        'xcode_settings': {
          'OTHER_CPLUSPLUSFLAGS':[
             '-D_THREAD_SAFE',
          ],
        },
      }
    },
    {
      "target_name": "mapnik_vector_tile_impl",
      'dependencies': [ 'vector_tile' ],
      'hard_dependency': 1,
      "type": "static_library",
      "sources": [
        "<!@(find ../src/ -name '*.cpp')",
        "../deps/clipper/cpp/clipper.cpp"
      ],
      'defines' : [
        "<@(common_defines)"
      ],
      'cflags_cc' : [
          '<!@(mapnik-config --cflags)'
      ],
      'include_dirs': [
        '../deps/protozero/include',
        '../deps/clipper/cpp'
      ],
      'xcode_settings': {
        'OTHER_CPLUSPLUSFLAGS':[
           '<!@(mapnik-config --cflags)'
        ],
      },
      'direct_dependent_settings': {
        'include_dirs': [
          '<(SHARED_INTERMEDIATE_DIR)/',
          '../deps/protozero/include',
          '../deps/clipper/cpp'
        ],
        'defines' : [
          "<@(common_defines)"
        ],
        'cflags_cc' : [
            '<!@(mapnik-config --cflags)'
        ],
        'xcode_settings': {
          'OTHER_CPLUSPLUSFLAGS':[
             '<!@(mapnik-config --cflags)'
          ],
        },
        'libraries':[
          '<!@(mapnik-config --libs)',
          '<!@(mapnik-config --ldflags)',
          '-lmapnik-wkt',
          '-lmapnik-json',
          '<!@(mapnik-config --dep-libs)',
          '-lprotobuf-lite',
          '-lz'
        ],
      }
    },
    {
      "target_name": "tests",
      'dependencies': [ 'mapnik_vector_tile_impl' ],
      "type": "executable",
      "defines": [
        "<@(common_defines)",
        "MAPNIK_PLUGINDIR=<(MAPNIK_PLUGINDIR)"
      ],
      "sources": [
        "<!@(find ../test/ -name '*.cpp')"
      ],
      "include_dirs": [
        "../src",
        '../deps/protozero/include'
      ]
    },
    {
      "target_name": "vtile-transform",
      'dependencies': [ 'mapnik_vector_tile_impl' ],
      "type": "executable",
      "defines": [
        "<@(common_defines)",
        "MAPNIK_PLUGINDIR=<(MAPNIK_PLUGINDIR)"
      ],
      "sources": [
        "../bench/vtile-transform.cpp"
      ],
      "include_dirs": [
        "../src",
        '../deps/protozero/include'
      ]
    },
    {
      "target_name": "multi-point-decode",
      'dependencies': [ 'mapnik_vector_tile_impl' ],
      "type": "executable",
      "defines": [
        "<@(common_defines)",
        "MAPNIK_PLUGINDIR=<(MAPNIK_PLUGINDIR)"
      ],
      "sources": [
        "../bench/multi-point-decode.cpp"
      ],
      "include_dirs": [
        "../src",
        '../deps/protozero/include'
      ]
    },
    {
      "target_name": "tileinfo",
      'dependencies': [ 'vector_tile' ],
      "type": "executable",
      "sources": [
        "../examples/c++/tileinfo.cpp"
      ],
      "include_dirs": [
        "../src"
      ],
      'libraries':[
        '-L<!@(mapnik-config --prefix)/lib',
        '<!@(mapnik-config --ldflags)',
        '-lz'
      ],
{'fraction_non_alphanumeric': 0.18778719493515778, 'fraction_numerical': 0.0011232513019503727, 'mean_word_length': 1.6884435904474335, 'pattern_counts': {'":': 49, '<': 65, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4758007', 'n_tokens_mistral': 3436, 'n_tokens_neox': 3456, 'n_words': 367}