Skip to content
Snippets Groups Projects
Commit be81c07f authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

getdns API, basic cmake config

parent 47fcc12d
Branches
Tags
No related merge requests found
cmake_minimum_required(VERSION 2.8)
project(resolver C)
set(RESOLVER_VERSION 0.0.1)
set(LIBS_VERSION 0.0.1)
# Compiler flags
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type specified, setting to 'Release'.")
set(CMAKE_BUILD_TYPE "Release")
endif()
set(CMAKE_C_FLAGS "-std=gnu99 -Wall -g")
set(CMAKE_C_FLAGS_DEBUG "-O0")
set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
# Modules compilation
include_directories(include)
set(resolver_sources
lib/context.c
lib/info.c
)
add_library(resolver SHARED ${resolver_sources})
set_target_properties(resolver PROPERTIES VERSION ${LIBS_VERSION})
README 0 → 100644
# Knot DNS Resolver
## Compilation
mkdir _build
cd _build
cmake ..
make
Run cmake with '-DCMAKE_BUILD_TYPE=Debug' parameter to disable optimizations and enable asserts.
This diff is collapsed.
#include "kgetdns.h"
void getdns_context_destroy(getdns_context *context)
{
}
#include <stdlib.h>
#include "kgetdns.h"
getdns_dict *getdns_context_get_api_information(getdns_context *context)
{
/*
* version_string (bindata)
* implementation string (bindata)
* resolver_type (int)
* all_context (dict)
*/
return NULL;
}
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