Skip to content

Commit

Permalink
Merge pull request #3 from hyperk/feature/tool_select
Browse files Browse the repository at this point in the history
Add select step in image building
  • Loading branch information
guiguem authored Feb 7, 2024
2 parents b88b49d + c806ffb commit 8fda827
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ COPY . /usr/local/hk/hk-ToolApp
RUN --mount=type=ssh mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts

WORKDIR /usr/local/hk
# Install hkToopApp, then enable all tools, then reinstall for proper linkage
RUN --mount=type=ssh . /usr/local/hk/hk-pilot/setup.sh &&\
hkp install -r -e hk-ToolApp
hkp install -r -e hk-ToolApp &&\
hkp select --all &&\
hkp install hk-ToolApp
4 changes: 3 additions & 1 deletion UserTools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ ENDMACRO()
SUBDIRLIST(SUBDIRS ${CMAKE_CURRENT_SOURCE_DIR})

MESSAGE(STATUS "List of tools dir to be added: ${SUBDIRS}")
set (HKFACTORY_SRC_TOOLS "")
FOREACH (dir ${SUBDIRS})
hk_add_tool(${dir})
list( APPEND PUBLIC_EXT_LIBS ${dir})
ENDFOREACH ()

MESSAGE("Found cpp tools to link the HK factory against: ${HKFACTORY_SRC_TOOLS}")

include_directories(. BEFORE)
add_subdirectory(Factory)
6 changes: 3 additions & 3 deletions UserTools/Factory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ file(GLOB_RECURSE SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "Factory.cpp")
pbuilder_library(
TARGET HKFactory
SOURCES ${SRC}
PROJECT_LIBRARIES ${TOOLS_LIBS}
PUBLIC_EXTERNAL_LIBRARIES ${PUBLIC_EXT_LIBS} ${EXT_TOOLS_LIBS}
PROJECT_LIBRARIES ${HKFACTORY_SRC_TOOLS}
PUBLIC_EXTERNAL_LIBRARIES ${PUBLIC_EXT_LIBS} ${TOOLS_LIBS}
PRIVATE_EXTERNAL_LIBRARIES ${PRIVATE_EXT_LIBS}
)

pbuilder_install_headers(${HEADERS})
#pbuilder_install_headers(${HEADERS})

# Exporting library
pbuilder_component_install_and_export(
Expand Down
4 changes: 3 additions & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ file(GLOB_RECURSE EXE_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cpp")
pbuilder_executables (
TARGETS_VAR progams
SOURCES ${EXE_SRC}
PROJECT_LIBRARIES ToolFrameworkCore::ToolFrameworkCore HKToolChain
PROJECT_LIBRARIES HKToolChain
PUBLIC_EXTERNAL_LIBRARIES ${PUBLIC_EXT_LIBRARIES} # should contain at least ToolFrameworkCore::ToolFrameworkCore and hk-DataModel::DataModel
PRIVATE_EXTERNAL_LIBRARIES ${PRIVATE_EXT_LIBS}
)

pbuilder_component_install_and_export(
Expand Down

0 comments on commit 8fda827

Please sign in to comment.