Skip to content

Commit

Permalink
🥅 try debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
H0R5E committed Dec 2, 2024
1 parent f2b9803 commit 977dfed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -yq clang ninja-build rpm
sudo apt-get install -yq clang libespeak-ng1 ninja-build rpm
- name: Configure runner (Windows)
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
Expand Down Expand Up @@ -97,5 +97,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "packages/*.rpm; packages/*.exe"
file: "packages/*.deb; packages/*.rpm; packages/*.exe"
tag_name: ${{ needs.release.outputs.tag }}
15 changes: 11 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ endif ()
configure_file(${CMAKE_SOURCE_DIR}/src/pathconfig.h.in
${CMAKE_SOURCE_DIR}/src/pathconfig.h)

# Path for vended code
SET(VENDOR_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/vendor)

# RPATH handling

if (UNIX)
Expand All @@ -100,7 +103,7 @@ if (UNIX)
# when building, don't use the install RPATH already
# (but later on when installing)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH "${VENDOR_PREFIX}/lib")

endif ()

Expand Down Expand Up @@ -220,10 +223,14 @@ set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING)

if (UNIX)

# RPM
# Shared
set(CPACK_PACKAGE_NAME "louis-work")
set(CPACK_GENERATOR "RPM")
set(CPACK_RPM_PACKAGE_RELEASE 1)
set(CPACK_GENERATOR "DEB;RPM")

# DEB
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS YES)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Mathew Topper")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS YES)

elseif(WIN32)

Expand Down
5 changes: 2 additions & 3 deletions vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ if (CMAKE_COMPILER_IS_GNUCXX)
REQUIRED)
endif()

# espeak
SET(VENDOR_PREFIX ${CMAKE_CURRENT_SOURCE_DIR})

if (ESPEAKNG_BUILD)

add_library(libespeak-ng SHARED IMPORTED GLOBAL)
Expand Down Expand Up @@ -73,6 +70,8 @@ if (ESPEAKNG_BUILD)
add_dependencies(libespeak-ng libespeak-ng-nix)
set_property(TARGET libespeak-ng PROPERTY
IMPORTED_LOCATION ${VENDOR_PREFIX}/lib/libespeak-ng.so)
set_property(TARGET libespeak-ng PROPERTY
SOVERSION 1)
endif()

# include
Expand Down

0 comments on commit 977dfed

Please sign in to comment.