refactor(kernel): move standard and hott kernel instantiations to library

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-07-05 10:31:27 -07:00
parent ab929d7201
commit e445515f2b
10 changed files with 5 additions and 12 deletions

View file

@ -226,10 +226,6 @@ add_subdirectory(kernel)
set(LEAN_LIBS ${LEAN_LIBS} kernel)
add_subdirectory(kernel/inductive)
set(LEAN_LIBS ${LEAN_LIBS} inductive)
add_subdirectory(kernel/standard)
set(LEAN_LIBS ${LEAN_LIBS} standard_kernel)
add_subdirectory(kernel/hott)
set(LEAN_LIBS ${LEAN_LIBS} hott_kernel)
add_subdirectory(library)
set(LEAN_LIBS ${LEAN_LIBS} library)
# add_subdirectory(library/rewriter)

View file

@ -1,2 +0,0 @@
add_library(hott_kernel hott.cpp)
target_link_libraries(hott_kernel ${LEAN_LIBS})

View file

@ -1,2 +0,0 @@
add_library(standard_kernel standard.cpp)
target_link_libraries(standard_kernel ${LEAN_LIBS})

View file

@ -4,6 +4,7 @@ add_library(library deep_copy.cpp expr_lt.cpp io_state.cpp occurs.cpp
normalize.cpp shared_environment.cpp module.cpp coercion.cpp
private.cpp placeholder.cpp aliases.cpp level_names.cpp
update_declaration.cpp choice.cpp scoped_ext.cpp locals.cpp
standard_kernel.cpp hott_kernel.cpp
unifier.cpp unifier_plugin.cpp
explicit.cpp num.cpp string.cpp)
# hop_match.cpp)

View file

@ -22,8 +22,8 @@ Author: Leonardo de Moura
#include "kernel/type_checker.h"
#include "kernel/replace_fn.h"
#include "kernel/inductive/inductive.h"
#include "kernel/standard/standard.h"
#include "kernel/hott/hott.h"
#include "library/standard_kernel.h"
#include "library/hott_kernel.h"
#include "library/occurs.h"
#include "library/io_state_stream.h"
#include "library/expr_lt.h"

View file

@ -20,8 +20,8 @@ Author: Leonardo de Moura
#include "kernel/environment.h"
#include "kernel/kernel_exception.h"
#include "kernel/formatter.h"
#include "kernel/standard/standard.h"
#include "kernel/hott/hott.h"
#include "library/standard_kernel.h"
#include "library/hott_kernel.h"
#include "library/module.h"
#include "library/io_state_stream.h"
#include "library/error_handling/error_handling.h"