blob: d6fa1d77aa6265f335702223cfbcce09eff753e2 [file] [log] [blame] [edit]
# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Only compile the compiler for the host architecture.
if (current_toolchain == host_toolchain) {
executable("protoc-gen-js") {
sources = [
"src/generator/js_generator.cc",
"src/generator/js_generator.h",
"src/generator/protoc-gen-js.cc",
"src/generator/well_known_types_embed.cc",
"src/generator/well_known_types_embed.h",
]
include_dirs = [ "src" ]
deps = [
"//third_party/protobuf:protoc_lib",
# Default manifest on Windows (a no-op elsewhere).
"//build/win:default_exe_manifest",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
}
}