blob: 052253639ee524932785420241460c84dff3028f [file] [log] [blame]
# Copyright 2018 The Fuchsia Authors. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
config("sfcc_private_config") {
visibility = [ ":*" ]
defines = [ "HAVE_CONFIG_H" ]
include_dirs = [ target_gen_dir ]
}
copy("copy_sfcc_config") {
visibility = [ ":*" ]
if (is_fuchsia) {
sources = [
"config.h.fuchsia",
]
} else {
sources = [
"config.h",
]
}
outputs = [
"$target_gen_dir/config.h",
]
}
group("sfcc_settings") {
visibility = [ ":*" ]
public_configs = [ ":sfcc_private_config" ]
deps = [
":copy_sfcc_config",
]
}
static_library("cimcClientXML") {
include_dirs = [
"backend/cimxml/sfcUtil",
"backend/cimxml",
"cimc",
"frontend/sfcc",
]
sources = [
"backend/cimxml/args.c",
"backend/cimxml/array.c",
"backend/cimxml/cimXmlParser.c",
"backend/cimxml/cimXmlParser.h",
"backend/cimxml/client.c",
"backend/cimxml/constClass.c",
"backend/cimxml/datetime.c",
"backend/cimxml/enumeration.c",
"backend/cimxml/genericlist.c",
"backend/cimxml/genericlist.h",
"backend/cimxml/grammar.c",
"backend/cimxml/grammar.h",
"backend/cimxml/indicationlistener.c",
"backend/cimxml/instance.c",
"backend/cimxml/method.c",
"backend/cimxml/nativeCimXml.h",
"backend/cimxml/objectpath.c",
"backend/cimxml/parameter.c",
"backend/cimxml/parserUtil.c",
"backend/cimxml/parserUtil.h",
"backend/cimxml/property.c",
"backend/cimxml/qualifier.c",
"backend/cimxml/sfcUtil/hashtable.c",
"backend/cimxml/sfcUtil/hashtable.h",
"backend/cimxml/sfcUtil/utilFactory.c",
"backend/cimxml/sfcUtil/utilHashtable.c",
"backend/cimxml/sfcUtil/utilStringBuffer.c",
"backend/cimxml/sfcUtil/utilft.h",
"backend/cimxml/string.c",
"backend/cimxml/utilStringBuffer.h",
"backend/cimxml/value.c",
]
deps = [
"//third_party/curl",
]
}
config("cimcclient_config") {
include_dirs = [ "cimc" ]
}
static_library("cimcclient") {
defines = [ "SFCB_LIBDIR=\"\"" ]
public_configs = [ ":cimcclient_config" ]
public = [
"cimc/cimc.h",
"cimc/cimcdt.h",
"cimc/cimcft.h",
]
sources = [
"cimc/cimcclient.c",
]
deps = [
":sfcc_settings",
]
}
config("sfcc_config") {
visibility = [ ":*" ]
cflags = [
"-Wno-unused-variable",
"-Wno-implicit-function-declaration",
"-Wno-int-conversion",
]
}
static_library("cmpisfcc") {
configs += [ ":sfcc_config" ]
public = [
"frontend/sfcc/cmci.h",
"frontend/sfcc/cmcidt.h",
"frontend/sfcc/cmcift.h",
"frontend/sfcc/cmcimacs.h",
"frontend/sfcc/conn.h",
"frontend/sfcc/native.h",
]
sources = [
"frontend/sfcc/sfcclient.c",
]
deps = [
":cimcclient",
":sfcc_settings",
]
}