#!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import specs.folly as folly
import specs.fizz as fizz
import specs.sodium as sodium
import specs.wangle as wangle


def fbcode_builder_spec(builder):
    return {
        'depends_on': [folly, wangle, fizz, sodium],
        'steps': [
            builder.fb_github_autoconf_install('proxygen/proxygen'),
        ],
    }

@@ -270,16 +270,44 @@
 as fizz%0A
+import specs.mvfst as mvfst%0A
 import s
@@ -358,16 +358,42 @@
  wangle%0A
+import specs.zstd as zstd%0A
 %0A%0Adef fb
@@ -420,16 +420,141 @@
 ilder):%0A
+    builder.add_option(%0A        'proxygen/proxygen:cmake_defines',%0A        %7B%0A            'BUILD_QUIC': 'ON',%0A        %7D%0A    )%0A
     retu
@@ -608,16 +608,29 @@
 , sodium
+, zstd, mvfst
 %5D,%0A     
@@ -643,16 +643,193 @@
 eps': %5B%0A
+            # CMake build with QUIC/HTTP3%0A            builder.fb_github_cmake_install(%0A                'proxygen/proxygen', '..'),%0A            # Legacy build with no QUIC/HTTP3%0A
         

enable CMake build (with HTTP/3)