chromium/chrome/installer/mac/third_party/bsdiff/BUILD.gn

# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

executable("goobsdiff") {
  # Avoid default deps, which pull in the hermetic libc++, which is not needed
  # for this pure C executable, and which doesn't play well with creating
  # one-off universal binaries, since libc++ is not built as universal.
  no_default_deps = true

  sources = [ "goobsdiff.c" ]

  configs -= [ "//build/config/compiler:chromium_code" ]
  configs += [ "//build/config/compiler:no_chromium_code" ]

  deps = [ "//chrome/installer/mac/third_party/xz:lzma" ]

  cflags = [ "-Os" ]

  libs = [
    "bz2",
    "z",
  ]
}

executable("goobspatch") {
  # Avoid default deps, which pull in the hermetic libc++, which is not needed
  # for this pure C executable, and which doesn't play well with creating
  # one-off universal binaries, since libc++ is not built as universal.
  no_default_deps = true

  sources = [ "goobspatch.c" ]

  configs -= [ "//build/config/compiler:chromium_code" ]
  configs += [ "//build/config/compiler:no_chromium_code" ]

  deps = [ "//chrome/installer/mac/third_party/xz:lzma_decompress" ]

  cflags = [ "-Os" ]

  libs = [
    "bz2",
    "z",
  ]
}