Skip to content

Commit

Permalink
make 'shady' target internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugobros3 committed Jul 13, 2024
1 parent b229928 commit 79c45c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/driver/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
add_library(driver driver.c cli.c)
target_link_libraries(driver PUBLIC "api")
target_link_libraries(driver PUBLIC "shady")
target_link_libraries(driver PUBLIC "api" common)
target_link_libraries(driver PRIVATE "$<BUILD_INTERFACE:shady>")
set_target_properties(driver PROPERTIES OUTPUT_NAME "shady_driver")
install(TARGETS driver EXPORT shady_export_set)

Expand Down
4 changes: 2 additions & 2 deletions src/frontend/slim/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
add_library(slim_parser parser.c token.c)
add_library(slim_parser STATIC parser.c token.c)
target_link_libraries(slim_parser PUBLIC common api)
target_link_libraries(slim_parser PRIVATE shady)
target_include_directories(slim_parser PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>)
target_link_libraries(shady PUBLIC "$<BUILD_INTERFACE:slim_parser>")
target_link_libraries(shady PRIVATE "$<BUILD_INTERFACE:slim_parser>")
4 changes: 2 additions & 2 deletions src/shady/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ set(SHADY_SOURCES
passes/spirv_lift_globals_ssbo.c
)

add_library(shady ${SHADY_SOURCES})
add_library(shady STATIC ${SHADY_SOURCES})
target_include_directories(shady PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>)

if (WIN32)
Expand All @@ -118,4 +118,4 @@ target_link_libraries(shady PRIVATE "$<BUILD_INTERFACE:m>")
target_link_libraries(shady PRIVATE "$<BUILD_INTERFACE:SPIRV-Headers::SPIRV-Headers>")

install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/shady DESTINATION include)
install(TARGETS shady EXPORT shady_export_set ARCHIVE DESTINATION ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY})
#install(TARGETS shady EXPORT shady_export_set ARCHIVE DESTINATION ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY})

0 comments on commit 79c45c9

Please sign in to comment.