-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: fix flatpak builds - added FindHelper.cmake - Bumped Flatpak runtime to 24.08 - Version changes * fixed find helper for libserialport * use variables for find_helper libs * fixed libmpeg2 vs libmpeg2convert * refactor: desktop and metainfo.xml files - Merged files between flatpak and normal Linux packages * Update com.blitterstudio.amiberry.yml * Update Amiberry.desktop
- Loading branch information
Showing
6 changed files
with
81 additions
and
56 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
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,53 @@ | ||
# | ||
# - Try to find a library using pkg-config if available, | ||
# than portable macros FIND_PATH and FIND_LIBRARY | ||
# | ||
# The following variables will be set : | ||
# | ||
# ${prefix}_FOUND - set to 1 or TRUE if found | ||
# ${prefix}_INCLUDE_DIRS - to be used in INCLUDE_DIRECTORIES(...) | ||
# ${prefix}_LIBRARIES - to be used in TARGET_LINK_LIBRARIES(...) | ||
# | ||
# Copyright (c) 2009-2017, Jérémy Zurcher, <[email protected]> | ||
# | ||
# Redistribution and use is allowed according to the terms of the BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
|
||
macro(FIND_HELPER prefix pkg_name header lib) | ||
if(${prefix}_INCLUDE_DIRS AND ${prefix}_LIBRARIES) | ||
# use cached variables | ||
set(${prefix}_FIND_QUIETLY TRUE) | ||
set(${prefix}_FOUND TRUE) | ||
else() | ||
# use pkg-config if available to set find_path and find_library hints | ||
find_package(PkgConfig) | ||
if(PKG_CONFIG_FOUND) | ||
pkg_check_modules(PC_${prefix} ${pkg_name}) | ||
else() | ||
message(STATUS "Checking for module '${pkg_name}' without pkgconfig") | ||
endif() | ||
# find_path | ||
find_path(${prefix}_INCLUDE_DIRS | ||
NAMES ${header} | ||
HINTS ${PC_${prefix}_INCLUDEDIR} ${PC_${prefix}_INCLUDE_DIRS} | ||
ENV ${prefix}_INCLUDE | ||
) | ||
# find_library | ||
find_library(${prefix}_LIBRARIES | ||
NAMES ${lib} | ||
HINTS ${PC_${prefix}_LIBDIR} ${PC_${prefix}_LIBRARY_DIRS} | ||
ENV ${prefix}_PATH | ||
) | ||
include(FindPackageHandleStandardArgs) | ||
if ("${${prefix}_INCLUDE_DIRS}" STREQUAL "") | ||
set(${prefix}_INCLUDE_DIRS "/usr/include") | ||
endif () | ||
find_package_handle_standard_args(${prefix} DEFAULT_MSG ${prefix}_LIBRARIES ${prefix}_INCLUDE_DIRS) | ||
if(NOT "${PC_${prefix}_INCLUDE_DIRS}" STREQUAL "") | ||
set(${prefix}_INCLUDE_DIRS "${${prefix}_INCLUDE_DIRS};${PC_${prefix}_INCLUDE_DIRS}") | ||
endif() | ||
# Update variables in the cache (these are set by find_path/find_library) after modifying | ||
set(${prefix}_INCLUDE_DIRS "${${prefix}_INCLUDE_DIRS}" CACHE PATH "Path to ${pkg_name} include files" FORCE) | ||
set(${prefix}_LIBRARIES "${${prefix}_LIBRARIES}" CACHE FILEPATH "Path to ${pkg_name} libraries" FORCE) | ||
endif() | ||
endmacro() |
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
6 changes: 3 additions & 3 deletions
6
...k/com.blitterstudio.amiberry.metainfo.xml → data/Amiberry.metainfo.xml
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 was deleted.
Oops, something went wrong.
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