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.rsocket as rsocket
import specs.sodium as sodium
import specs.wangle as wangle
import specs.zstd as zstd

from shell_quoting import ShellQuoted


def fbcode_builder_spec(builder):
    # This API should change rarely, so build the latest tag instead of master.
    builder.add_option(
        'no1msd/mstch:git_hash',
        ShellQuoted('$(git describe --abbrev=0 --tags)')
    )
    return {
        'depends_on': [folly, fizz, sodium, rsocket, wangle, zstd],
        'steps': [
            # This isn't a separete spec, since only fbthrift uses mstch.
            builder.github_project_workdir('no1msd/mstch', 'build'),
            builder.cmake_install('no1msd/mstch'),
            builder.fb_github_cmake_install('fbthrift/thrift'),
        ],
    }

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.fmt as fmt
import specs.rsocket as rsocket
import specs.sodium as sodium
import specs.wangle as wangle
import specs.zstd as zstd

from shell_quoting import ShellQuoted


def fbcode_builder_spec(builder):
    # This API should change rarely, so build the latest tag instead of master.
    builder.add_option(
        'no1msd/mstch:git_hash',
        ShellQuoted('$(git describe --abbrev=0 --tags)')
    )
    return {
        'depends_on': [folly, fizz, fmt, sodium, rsocket, wangle, zstd],
        'steps': [
            # This isn't a separete spec, since only fbthrift uses mstch.
            builder.github_project_workdir('no1msd/mstch', 'build'),
            builder.cmake_install('no1msd/mstch'),
            builder.fb_github_cmake_install('fbthrift/thrift'),
        ],
    }

Migrate from Folly Format to fmt
Migrate from Folly Format to fmt

Summary: Migrate from Folly Format to fmt which provides smaller compile times and per-call binary code size.

Reviewed By: alandau

Differential Revision: D14954926

fbshipit-source-id: 9d2c39e74a5d11e0f90c8ad0d71b79424c56747f

  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.fmt as fmt
  import specs.rsocket as rsocket
  import specs.sodium as sodium
  import specs.wangle as wangle
  import specs.zstd as zstd
  
  from shell_quoting import ShellQuoted
  
  
  def fbcode_builder_spec(builder):
      # This API should change rarely, so build the latest tag instead of master.
      builder.add_option(
          'no1msd/mstch:git_hash',
          ShellQuoted('$(git describe --abbrev=0 --tags)')
      )
      return {
-         'depends_on': [folly, fizz, sodium, rsocket, wangle, zstd],
+         'depends_on': [folly, fizz, fmt, sodium, rsocket, wangle, zstd],
          'steps': [
              # This isn't a separete spec, since only fbthrift uses mstch.
              builder.github_project_workdir('no1msd/mstch', 'build'),
              builder.cmake_install('no1msd/mstch'),
              builder.fb_github_cmake_install('fbthrift/thrift'),
          ],
      }
  
Migrate from Folly Format to fmt
## Code Before:
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.rsocket as rsocket
import specs.sodium as sodium
import specs.wangle as wangle
import specs.zstd as zstd

from shell_quoting import ShellQuoted


def fbcode_builder_spec(builder):
    # This API should change rarely, so build the latest tag instead of master.
    builder.add_option(
        'no1msd/mstch:git_hash',
        ShellQuoted('$(git describe --abbrev=0 --tags)')
    )
    return {
        'depends_on': [folly, fizz, sodium, rsocket, wangle, zstd],
        'steps': [
            # This isn't a separete spec, since only fbthrift uses mstch.
            builder.github_project_workdir('no1msd/mstch', 'build'),
            builder.cmake_install('no1msd/mstch'),
            builder.fb_github_cmake_install('fbthrift/thrift'),
        ],
    }

## Instruction:
Migrate from Folly Format to fmt
## Code After:
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.fmt as fmt
import specs.rsocket as rsocket
import specs.sodium as sodium
import specs.wangle as wangle
import specs.zstd as zstd

from shell_quoting import ShellQuoted


def fbcode_builder_spec(builder):
    # This API should change rarely, so build the latest tag instead of master.
    builder.add_option(
        'no1msd/mstch:git_hash',
        ShellQuoted('$(git describe --abbrev=0 --tags)')
    )
    return {
        'depends_on': [folly, fizz, fmt, sodium, rsocket, wangle, zstd],
        'steps': [
            # This isn't a separete spec, since only fbthrift uses mstch.
            builder.github_project_workdir('no1msd/mstch', 'build'),
            builder.cmake_install('no1msd/mstch'),
            builder.fb_github_cmake_install('fbthrift/thrift'),
        ],
    }
