forked from neovim/neovim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove unused code - Use consistent casing. Variable names such as LibLuV_LIBRARIES is needlessly jarring, even if the name might be technically correct. - Use title casing for packages. find_package(unibilium) requires the find_module to be named "Findunibilium.cmake", which makes it harder to spot when scanning the files. Instead, use "Unibilium".
- Loading branch information
Showing
22 changed files
with
140 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
find_path(LIBTERMKEY_INCLUDE_DIR termkey.h) | ||
find_library(LIBTERMKEY_LIBRARY NAMES termkey) | ||
find_package_handle_standard_args(Libtermkey DEFAULT_MSG | ||
LIBTERMKEY_LIBRARY LIBTERMKEY_INCLUDE_DIR) | ||
mark_as_advanced(LIBTERMKEY_INCLUDE_DIR LIBTERMKEY_LIBRARY) | ||
|
||
add_library(libtermkey INTERFACE) | ||
target_include_directories(libtermkey SYSTEM BEFORE INTERFACE ${LIBTERMKEY_INCLUDE_DIR}) | ||
target_link_libraries(libtermkey INTERFACE ${LIBTERMKEY_LIBRARY}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
find_path(TREESITTER_INCLUDE_DIR tree_sitter/api.h) | ||
find_library(TREESITTER_LIBRARY NAMES tree-sitter) | ||
find_package_handle_standard_args(Treesitter DEFAULT_MSG | ||
TREESITTER_LIBRARY TREESITTER_INCLUDE_DIR) | ||
mark_as_advanced(TREESITTER_LIBRARY TREESITTER_INCLUDE_DIR) | ||
|
||
add_library(treesitter INTERFACE) | ||
target_include_directories(treesitter SYSTEM BEFORE INTERFACE ${TREESITTER_INCLUDE_DIR}) | ||
target_link_libraries(treesitter INTERFACE ${TREESITTER_LIBRARY}) | ||
|
||
list(APPEND CMAKE_REQUIRED_INCLUDES "${TREESITTER_INCLUDE_DIR}") | ||
list(APPEND CMAKE_REQUIRED_LIBRARIES "${TREESITTER_LIBRARY}") | ||
check_c_source_compiles(" | ||
#include <tree_sitter/api.h> | ||
int | ||
main(void) | ||
{ | ||
TSQueryCursor *cursor = ts_query_cursor_new(); | ||
ts_query_cursor_set_match_limit(cursor, 32); | ||
return 0; | ||
} | ||
" TS_HAS_SET_MATCH_LIMIT) | ||
if(TS_HAS_SET_MATCH_LIMIT) | ||
target_compile_definitions(treesitter INTERFACE NVIM_TS_HAS_SET_MATCH_LIMIT) | ||
endif() | ||
check_c_source_compiles(" | ||
#include <stdlib.h> | ||
#include <tree_sitter/api.h> | ||
int | ||
main(void) | ||
{ | ||
ts_set_allocator(malloc, calloc, realloc, free); | ||
return 0; | ||
} | ||
" TS_HAS_SET_ALLOCATOR) | ||
if(TS_HAS_SET_ALLOCATOR) | ||
target_compile_definitions(treesitter INTERFACE NVIM_TS_HAS_SET_ALLOCATOR) | ||
endif() | ||
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES "${TREESITTER_INCLUDE_DIR}") | ||
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES "${TREESITTER_LIBRARY}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.