forked from CherryUSB/cherryusb_esp32
-
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.
- Loading branch information
Showing
19 changed files
with
2,340 additions
and
17 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ sdkconfig.old | |
build | ||
managed_components | ||
dependencies.lock | ||
.vscode |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
idf_component_register(SRCS | ||
"device_cdc_main.c" | ||
INCLUDE_DIRS | ||
"." | ||
idf_component_register(SRCS "device_cdc_main.c" | ||
INCLUDE_DIRS "." | ||
) | ||
|
||
# Determine whether esp_cherryusb is fetched from the component registry or from the local path | ||
idf_build_get_property(build_components BUILD_COMPONENTS) | ||
if(esp_cherryusb IN_LIST build_components) | ||
set(esp_cherryusb_name esp_cherryusb) # Local component | ||
else() | ||
set(esp_cherryusb_name udoudou__esp_cherryusb) # Managed component | ||
endif() | ||
|
||
# Pass usb_config.h.h from this component to esp_cherryusb | ||
idf_component_get_property(_esp_cherryusb_lib ${esp_cherryusb_name} COMPONENT_LIB) | ||
cmake_policy(SET CMP0079 NEW) | ||
target_link_libraries(${_esp_cherryusb_lib} PRIVATE ${COMPONENT_LIB}) |
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,6 @@ | ||
# The following lines of boilerplate have to be in your project's | ||
# CMakeLists in this exact order for cmake to work correctly | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(cherryusb_device_mtp) |
4 changes: 4 additions & 0 deletions
4
examples/device/cherryusb_device_mtp/components/esp_mtp/CMakeLists.txt
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,4 @@ | ||
idf_component_register(SRCS "esp_mtp.c" "esp_mtp_helper.c" | ||
INCLUDE_DIRS "include" | ||
PRIV_REQUIRES | ||
) |
Oops, something went wrong.