-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from MK16kawai/dev
add time::ntp_xxx support, add sync_time example
- Loading branch information
Showing
24 changed files
with
3,879 additions
and
411 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
################# Add include ################# | ||
list(APPEND ADD_INCLUDE "ntp_client") | ||
# list(APPEND ADD_PRIVATE_INCLUDE "include_private") | ||
############################################### | ||
|
||
############## Add source files ############### | ||
# list(APPEND ADD_SRCS "src/lib1.c" | ||
# ) | ||
aux_source_directory("ntp_client" ADD_SRCS) # collect all source file in src dir, will set var ADD_SRCS | ||
# append_srcs_dir(ADD_SRCS "src") # append source file in src dir to var ADD_SRCS | ||
# list(REMOVE_ITEM COMPONENT_SRCS "src/test.c") | ||
############################################### | ||
|
||
###### Add required/dependent components ###### | ||
# list(APPEND ADD_REQUIREMENTS component1) | ||
############################################### | ||
|
||
###### Add link search path for requirements/libs ###### | ||
# list(APPEND ADD_LINK_SEARCH_PATH "${CONFIG_TOOLCHAIN_PATH}/lib") | ||
# list(APPEND ADD_REQUIREMENTS m) # add system libs, pthread or m(math) lib for example | ||
############################################### | ||
|
||
############ Add static libs ################## | ||
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) | ||
# list(APPEND ADD_STATIC_LIB "lib/libtest.a") | ||
# endif() | ||
############################################### | ||
|
||
############ Add dynamic libs ################## | ||
# list(APPEND ADD_DYNAMIC_LIB "lib/arch/v831/libmaix_nn.so" | ||
# "lib/arch/v831/libmaix_cam.so" | ||
# ) | ||
############################################### | ||
|
||
#### Add compile option for this component #### | ||
#### Just for this component, won't affect other | ||
#### modules, including component that depend | ||
#### on this component | ||
# list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) | ||
|
||
#### Add compile option for this component | ||
#### and components denpend on this component | ||
# list(APPEND ADD_DEFINITIONS -DAAAAA222=1 | ||
# -DAAAAA333=1) | ||
############################################### | ||
|
||
############ Add static libs ################## | ||
#### Update parent's variables like CMAKE_C_LINK_FLAGS | ||
# set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -Wl,--start-group libmaix/libtest.a -ltest2 -Wl,--end-group" PARENT_SCOPE) | ||
############################################### | ||
|
||
# register component, DYNAMIC or SHARED flags will make component compiled to dynamic(shared) lib | ||
register_component() | ||
|
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.