scoped bindings
This commit is contained in:
parent
396716de09
commit
858f5c3eed
17 changed files with 1185 additions and 821 deletions
|
@ -6,7 +6,8 @@ set(CMAKE_C_STANDARD_REQUIRED True)
|
|||
string(JOIN " " CMAKE_C_FLAGS
|
||||
"-Wall -Wextra -Wformat=2"
|
||||
"-Wconversion -Wsign-conversion -Wimplicit-fallthrough"
|
||||
"-Werror=implicit -Werror=incompatible-pointer-types"
|
||||
"-Werror=implicit"
|
||||
"-Werror=incompatible-pointer-types"
|
||||
"-Werror=int-conversion")
|
||||
set(CMAKE_VERBOSE_MAKEFILE ON)
|
||||
|
||||
|
@ -21,19 +22,19 @@ set(SRC_DIR src)
|
|||
set(SPHO_HEADER_DIR ${INCLUDE_DIR}/spho)
|
||||
|
||||
set(SPHO_HEADER
|
||||
${SPHO_HEADER_DIR}/bind.h
|
||||
${SPHO_HEADER_DIR}/ctx.h
|
||||
${SPHO_HEADER_DIR}/err.h
|
||||
${SPHO_HEADER_DIR}/scope.h
|
||||
${SPHO_HEADER_DIR}/tp.h
|
||||
${SPHO_HEADER_DIR}/bind.h
|
||||
${SPHO_HEADER_DIR}/spho.h
|
||||
${SPHO_HEADER_DIR}/tp.h
|
||||
)
|
||||
|
||||
set(SPHO_SRC
|
||||
${SRC_DIR}/spho/bind.c
|
||||
${SRC_DIR}/spho/ctx.c
|
||||
${SRC_DIR}/spho/scope.c
|
||||
${SRC_DIR}/spho/tp.c
|
||||
${SRC_DIR}/spho/bind.c
|
||||
)
|
||||
|
||||
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
|
||||
|
@ -54,19 +55,18 @@ target_compile_definitions(devcheck PRIVATE
|
|||
|
||||
|
||||
set(MSPH_SRC
|
||||
${SRC_DIR}/msph/msph.c
|
||||
${SRC_DIR}/msph/sphophi.c
|
||||
${SRC_DIR}/msph/token.c
|
||||
${SRC_DIR}/msph/tree.c
|
||||
${SRC_DIR}/msph/sphophi.c
|
||||
${SRC_DIR}/msph/msph.c
|
||||
)
|
||||
|
||||
set(MSPH_HEADER
|
||||
${INCLUDE_DIR}/msph/token.h
|
||||
${INCLUDE_DIR}/msph/tree.h
|
||||
${INCLUDE_DIR}/msph/common.h
|
||||
${INCLUDE_DIR}/msph/err.h
|
||||
${INCLUDE_DIR}/msph/decor.h
|
||||
${INCLUDE_DIR}/msph/sphophi.h
|
||||
${INCLUDE_DIR}/msph/token.h
|
||||
${INCLUDE_DIR}/msph/tree.h
|
||||
)
|
||||
|
||||
add_executable(msph ${MSPH_SRC} ${MSPH_HEADER})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue