-
Notifications
You must be signed in to change notification settings - Fork 1
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
18 changed files
with
89 additions
and
62 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "external/quill"] | ||
path = external/quill | ||
url = https://github.com/odygrd/quill | ||
[submodule "external/tracy"] | ||
path = external/tracy | ||
url = https://github.com/wolfpld/tracy |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_executable(fiber fiber.cpp) | ||
target_link_libraries(fiber PRIVATE libflux external) |
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,8 +0,0 @@ | ||
find_package(Boost COMPONENTS context REQUIRED) | ||
message(STATUS "Boost include dir: ${Boost_INCLUDE_DIRS}") | ||
|
||
add_subdirectory(quill) | ||
|
||
add_library(external INTERFACE) | ||
target_link_libraries(external INTERFACE ${Boost_LIBRARIES} quill::quill) | ||
target_include_directories(external INTERFACE ${Boost_INCLUDE_DIRS}) | ||
Submodule quill
deleted from
ea0e0e
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,44 @@ | ||
cmake_minimum_required(VERSION 3.9) | ||
project(libflux) | ||
include(FetchContent) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# Boost | ||
find_package(Boost COMPONENTS context REQUIRED) | ||
message(STATUS "Boost include dir: ${Boost_INCLUDE_DIRS}") | ||
|
||
# Tracy | ||
set(TRACY_ENABLE ON) | ||
set(TRACY_FIBERS ON) # pdf page 38 | ||
FetchContent_Declare( | ||
tracy | ||
GIT_REPOSITORY https://github.com/wolfpld/tracy.git | ||
GIT_TAG master | ||
GIT_SHALLOW TRUE | ||
GIT_PROGRESS TRUE | ||
) | ||
FetchContent_MakeAvailable(tracy) | ||
|
||
# Quill | ||
FetchContent_Declare( | ||
quill | ||
GIT_REPOSITORY https://github.com/odygrd/quill.git | ||
GIT_TAG master | ||
GIT_SHALLOW TRUE | ||
GIT_PROGRESS TRUE | ||
) | ||
FetchContent_MakeAvailable(quill) | ||
|
||
|
||
# specify the source files | ||
set(SOURCES | ||
src/thread.cpp | ||
src/reactor.cpp | ||
src/backends/darwin.cpp) | ||
|
||
# add the library | ||
add_library(${PROJECT_NAME} STATIC ${SOURCES}) | ||
target_include_directories(${PROJECT_NAME} PUBLIC include ${Boost_INCLUDE_DIRS}) | ||
target_link_libraries(${PROJECT_NAME} PUBLIC ${Boost_LIBRARIES} Tracy::TracyClient quill:quill) |
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
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
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