Commit 1ce28741 authored by Stephen Morris's avatar Stephen Morris

[trac745] Build nsasdef.{cc,h} from nsasdef.msg

The logging source files are now built at run-time instead of being
part of the repository.
parent b92cca79
......@@ -21,6 +21,10 @@ if USE_CLANGPP
AM_CXXFLAGS += -Wno-unused-parameter
endif
# Build the logging source files from the message definition
nsasdef.h nsasdef.cc: nsasdef.msg
$(top_builddir)/src/lib/log/compiler/message nsasdef.msg
lib_LTLIBRARIES = libnsas.la
libnsas_la_SOURCES = address_entry.h address_entry.cc
libnsas_la_SOURCES += asiolink.h
......
// File created from nsasdef.msg on Thu Apr 28 09:42:02 2011
#include <cstddef>
#include <log/message_types.h>
#include <log/message_initializer.h>
namespace isc {
namespace nsas {
extern const isc::log::MessageID NSAS_LOOKUPCANCEL = "LOOKUPCANCEL";
extern const isc::log::MessageID NSAS_LOOKUPZONE = "LOOKUPZONE";
} // namespace nsas
} // namespace isc
namespace {
const char* values[] = {
"LOOKUPCANCEL", "lookup for zone %s has been cancelled",
"LOOKUPZONE", "searching NSAS for nameservers for zone %s",
NULL
};
const isc::log::MessageInitializer initializer(values);
} // Anonymous namespace
// File created from nsasdef.msg on Thu Apr 28 09:42:02 2011
#ifndef __NSASDEF_H
#define __NSASDEF_H
#include <log/message_types.h>
namespace isc {
namespace nsas {
extern const isc::log::MessageID NSAS_LOOKUPCANCEL;
extern const isc::log::MessageID NSAS_LOOKUPZONE;
} // namespace nsas
} // namespace isc
#endif // __NSASDEF_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment