old_contents: {
    "targets": [
      {
        "target_name": "node_zstd",
        "include_dirs": [
          "<!(node -e \"require('nan')\")",
          "deps/zstd/lib"
        ],
        "dependencies": [
          "<(module_root_dir)/deps/zstd.gyp:zstd"
        ],
        "sources": [
          "src/zstd_wrap.cc"
        ],
        "conditions": [
          [
            "OS == 'mac'", {
              "xcode_settings": {
                "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
                "MACOSX_DEPLOYMENT_TARGET": "10.11"
              }
            }
          ]
        ]
      }
    ]
  }
  
new_contents: {
    "targets": [
      {
        "target_name": "compressor",
        "include_dirs": [
          "<!(node -e \"require('nan')\")",
          "deps/zstd/lib",
          "src/common"
        ],
        "dependencies": [
          "<(module_root_dir)/deps/zstd.gyp:compressor"
        ],
        "sources": [
          "src/common/stream_coder.cc",
          "src/common/allocator.cc",
          "src/enc/compressor_index.cc",
          "src/enc/stream_compressor.cc",
          "src/enc/stream_compress_worker.cc"
        ],
        "conditions": [
          [
            "OS == 'mac'", {
              "xcode_settings": {
                "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
                "MACOSX_DEPLOYMENT_TARGET": "10.12"
              }
            }
          ],
          [
            "OS=='linux'", {
              "cflags_cc": [ "-std=c++11" ]
            }
          ]
        ]
      }
    ]
  }
  
subject: add target compressor